*** empty log message ***
authorAlan Lehotsky <apl@alum.mit.edu>
Fri, 31 May 2002 12:49:27 +0000 (08:49 -0400)
committerAlan Lehotsky <alehotsky@gcc.gnu.org>
Fri, 31 May 2002 12:49:27 +0000 (08:49 -0400)
From-SVN: r54108

gcc/ChangeLog
gcc/varasm.c

index f2084b304055a60b5a449216dc0c84c10e4c6bbb..c963e6a60fc7dbbbb213eaab308045ed9a810899 100644 (file)
@@ -1,3 +1,7 @@
+2002-05-31  Alan Lehotsky <apl@alum.mit.edu>
+       * varasm.c (mark_constant_pool): Walk epilogue delay list
+       checking the insn, not the chain for potential constants.
+       
 Fri May 31 12:38:43 2002  J"orn Rennecke <joern.rennecke@superh.com>
 
        * config/sh/elf.h (ASM_SPEC): Use subtarget_endian_asm_spec.
index 73ba7cdd11c18c0a2c9448290d5e530eddd054db..dacab19383f2697c6725fa0751caac35d6f09508 100644 (file)
@@ -3893,6 +3893,7 @@ static void
 mark_constant_pool ()
 {
   rtx insn;
+  rtx link;
   struct pool_constant *pool;
 
   if (first_pool == 0 && htab_elements (const_str_htab) == 0)
@@ -3905,11 +3906,15 @@ mark_constant_pool ()
     if (INSN_P (insn))
       mark_constants (PATTERN (insn));
 
-  for (insn = current_function_epilogue_delay_list;
-       insn;
-       insn = XEXP (insn, 1))
-    if (INSN_P (insn))
-      mark_constants (PATTERN (insn));
+  for (link = current_function_epilogue_delay_list;
+       link;
+       link = XEXP (link, 1))
+    {
+      insn = XEXP (link, 0);
+
+      if (INSN_P (insn))
+       mark_constants (PATTERN (insn));
+    }
 }
 
 /* Look through appropriate parts of X, marking all entries in the