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]

PING: Fix PR middle-end/18590


Eric Botcazou wrote:

2004-12-05 Eric Botcazou <ebotcazou@libertysurf.fr>

	Fix PR middle-end/18590
	* function.c (fixup_var_refs_insns_with_hash): Do not invoke
	fixup_var_refs_insn on insns marked as deleted if optimization
	is enabled.

This patch is still unreviewed. I'd like it to be also backported to 3.4 to fix this m68k ICE.


Index: function.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/function.c,v
retrieving revision 1.483.4.19
diff -u -p -r1.483.4.19 function.c
--- function.c	13 Oct 2004 23:18:13 -0000	1.483.4.19
+++ function.c	1 Dec 2004 13:02:19 -0000
@@ -1639,7 +1639,8 @@ 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))
+	&& !(optimize && INSN_DELETED_P (XEXP (insn_list, 0))))
       fixup_var_refs_insn (XEXP (insn_list, 0), var, promoted_mode,
 			   unsignedp, 1, may_share);
 }

-- // Bernardo Innocenti - Develer S.r.l., R&D dept. \X/ http://www.develer.com/


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