]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
emit-rt.c (emit_copy_of_insn_after): Fix bug causing exponential amount of copies...
authorJan Hubicka <jh@suse.cz>
Sat, 30 Dec 2006 12:00:45 +0000 (13:00 +0100)
committerJan Hubicka <hubicka@gcc.gnu.org>
Sat, 30 Dec 2006 12:00:45 +0000 (12:00 +0000)
* emit-rt.c (emit_copy_of_insn_after): Fix bug causing exponential
amount of copies of INSN_NOTEs list.

Co-Authored-By: Vladimir Yanovsky <volodyan@gmail.com>
From-SVN: r120283

gcc/ChangeLog
gcc/emit-rtl.c

index b728b00e54cdf3f3c3741337d5afae45a53b3762..4c52d7f973aa5fff1525e284cf75e1299f40857e 100644 (file)
@@ -1,3 +1,9 @@
+2006-12-30  Jan Hubicka  <jh@suse.cz>
+           Vladimir Yanovsky <volodyan@gmail.com>
+       
+       * emit-rt.c (emit_copy_of_insn_after): Fix bug causing exponential
+       amount of copies of INSN_NOTEs list.
+
 2006-12-29  Jan Hubicka  <jh@suse.cz>
 
        * cgraph.c (cgraph_exapnd_queue): Rename to...
index e63e138bbb1dea71aa1021f35ab2fde66d687d7c..517c1a37c8cdd65aa4fac5bb37672102b5a11eaa 100644 (file)
@@ -5297,14 +5297,12 @@ emit_copy_of_insn_after (rtx insn, rtx after)
       {
        if (GET_CODE (link) == EXPR_LIST)
          REG_NOTES (new)
-           = copy_insn_1 (gen_rtx_EXPR_LIST (REG_NOTE_KIND (link),
-                                             XEXP (link, 0),
-                                             REG_NOTES (new)));
+               = gen_rtx_EXPR_LIST (REG_NOTE_KIND (link),
+                 copy_insn_1 (XEXP (link, 0)),  REG_NOTES (new));
        else
          REG_NOTES (new)
-           = copy_insn_1 (gen_rtx_INSN_LIST (REG_NOTE_KIND (link),
-                                             XEXP (link, 0),
-                                             REG_NOTES (new)));
+              = gen_rtx_INSN_LIST (REG_NOTE_KIND (link),
+                copy_insn_1 (XEXP (link, 0)),  REG_NOTES (new));
       }
 
   /* Fix the libcall sequences.  */