This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/32935] [4.3 Regression] internal compiler error: in emit_move_insn, at expr.c:3316
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 30 Jul 2007 14:05:41 -0000
- Subject: [Bug middle-end/32935] [4.3 Regression] internal compiler error: in emit_move_insn, at expr.c:3316
- References: <bug-32935-14910@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #6 from pinskia at gcc dot gnu dot org 2007-07-30 14:05 -------
And here is a patch which fixes the ICE:
Index: fold-const.c
===================================================================
--- fold-const.c (revision 127042)
+++ fold-const.c (working copy)
@@ -1382,7 +1382,7 @@
{
tem = strip_float_extensions (t);
if (tem != t && negate_expr_p (tem))
- return negate_expr (tem);
+ return fold_convert (type, negate_expr (tem));
}
break;
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Component|fortran |middle-end
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32935