]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR middle-end/33318 (fortran/expr.c:305: internal compiler error: internal consist...
authorJan Hubicka <jh@suse.cz>
Thu, 6 Sep 2007 15:10:28 +0000 (17:10 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Thu, 6 Sep 2007 15:10:28 +0000 (15:10 +0000)
PR target/33318
* cse.c (fold_rtx): Avoid invalid sharing.

From-SVN: r128187

gcc/ChangeLog
gcc/cse.c

index d132863abda3ea2b1da7b3aa83ec97dd87346e46..bda9ea2aa6d454cdfb217bc8ddfbfdaf000dcf67 100644 (file)
@@ -1,3 +1,8 @@
+2007-09-06  Jan Hubicka  <jh@suse.cz>
+
+       PR target/33318
+       * cse.c (fold_rtx): Avoid invalid sharing.
+
 2007-09-06  Richard Sandiford  <richard@codesourcery.com>
 
        * config/mips/mips.md (fixuns_truncdfsi2, fixuns_truncdfdi2)
index fc4f895c8b0c12a4b7abd0088699a028c70423f5..590adfad7b4b44c3df95fe92e83cb29fcc63cad5 100644 (file)
--- a/gcc/cse.c
+++ b/gcc/cse.c
@@ -3246,7 +3246,8 @@ fold_rtx (rtx x, rtx insn)
                      /* If we have a cheaper expression now, use that
                         and try folding it further, from the top.  */
                      if (cheapest_simplification != x)
-                       return fold_rtx (cheapest_simplification, insn);
+                       return fold_rtx (copy_rtx (cheapest_simplification),
+                                        insn);
                    }
                }