This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[committed] Fix a typed DWARF stack unsigned comparison thinko


Hi!

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
 	  }
 	else
 	  {
-	    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)

	Jakub


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]