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]

Re: PING: Fix PR middle-end/18590


On Wed, 15 Dec 2004, Eric Botcazou wrote:

| > Seems to me that we should mind INSN_DELETED_P regardless of optimize.
|
| OK, re-tested on amd64-mandrake-linux-gnu and with a cross to m68k-linux.
|
| Gaby, the regression is also present on the 3.3 branch.  Do you want the patch
| there too (assuming it is approved for 3.4) ?

Yes, please.

Thanks,

-- Gaby
Index: function.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/function.c,v
retrieving revision 1.483.4.21
diff -u -p -r1.483.4.21 function.c
--- function.c	5 Dec 2004 05:21:00 -0000	1.483.4.21
+++ function.c	15 Dec 2004 20:39:49 -0000
@@ -1639,7 +1648,7 @@ fixup_var_refs_insns_with_hash (htab_t h
   tmp.key = var;
   ime = htab_find (ht, &tmp);
   for (insn_list = ime->insns; insn_list != 0; insn_list = XEXP (insn_list, 1))
-    if (INSN_P (XEXP (insn_list, 0)))
+    if (INSN_P (XEXP (insn_list, 0)) && !INSN_DELETED_P (XEXP (insn_list, 0)))
       fixup_var_refs_insn (XEXP (insn_list, 0), var, promoted_mode,
 			   unsignedp, 1, may_share);
 }

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