[committed] Fix a typed DWARF stack unsigned comparison thinko

Message ID 20110601142308.GV17079@tyan-ft48-01.lab.bos.redhat.com
State New
Headers show

Commit Message

Jakub Jelinek June 1, 2011, 2:23 p.m.

While working on patches I'm going to post momentarily, I've noticed
a buglet in ucompare handling, mode is the mode of the comparison, while
obviously I meant op_mode which is the mode of the comparison operands.
Fixed thusly, bootstrapped/regtested on x86_64-linux and i686-linux,
committed as obvious.

2011-06-01  Jakub Jelinek  <jakub@redhat.com>

	* dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
	base_type_for_mode with op_mode instead of mode.



--- gcc/dwarf2out.c.jj	2011-05-31 21:14:53.000000000 +0200
+++ gcc/dwarf2out.c	2011-06-01 12:34:45.985670994 +0200
@@ -14685,7 +14685,7 @@  mem_loc_descriptor (rtx rtl, enum machin
-	    dw_die_ref type_die = base_type_for_mode (mode, 1);
+	    dw_die_ref type_die = base_type_for_mode (op_mode, 1);
 	    dw_loc_descr_ref cvt;
 	    if (type_die == NULL)