This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug rtl-optimization/49472] [4.7 regression] Compiler segfault on valid code
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 4 Jul 2011 21:12:09 +0000
- Subject: [Bug rtl-optimization/49472] [4.7 regression] Compiler segfault on valid code
- Auto-submitted: auto-generated
- References: <bug-49472-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49472
--- Comment #14 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-07-04 21:09:28 UTC ---
Author: jakub
Date: Mon Jul 4 21:09:26 2011
New Revision: 175828
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=175828
Log:
PR rtl-optimization/49472
* simplify-rtx.c (simplify_unary_operation_1) <case NEG>: When
negating MULT, negate the second operand instead of first.
(simplify_binary_operation_1) <case MULT>: If one operand is
a NEG and the other is MULT, don't attempt to optimize by
negation of the MULT operand if it only moves the NEG operation
around.
* gfortran.dg/pr49472.f90: New test.
Added:
branches/gcc-4_6-branch/gcc/testsuite/gfortran.dg/pr49472.f90
Modified:
branches/gcc-4_6-branch/gcc/ChangeLog
branches/gcc-4_6-branch/gcc/simplify-rtx.c
branches/gcc-4_6-branch/gcc/testsuite/ChangeLog