This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/26961] [4.0/4.1/4.2 Regression] ICE simplify_subreg:3813
- From: "sayle at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 26 Apr 2006 03:21:03 -0000
- Subject: [Bug target/26961] [4.0/4.1/4.2 Regression] ICE simplify_subreg:3813
- References: <bug-26961-4387@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #7 from sayle at gcc dot gnu dot org 2006-04-26 03:21 -------
Subject: Bug 26961
Author: sayle
Date: Wed Apr 26 03:20:56 2006
New Revision: 113266
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=113266
Log:
PR target/26961
* fold-const.c (fold): When converting "A ? B : C" into either
"A op B" or "A op C", we may need to convert A to the type of B and C.
* gcc.dg/fold-cond-1.c: New test case.
* gcc.dg/pr26961-1.c: Likewise.
Added:
branches/gcc-4_0-branch/gcc/testsuite/gcc.dg/fold-cond-1.c
branches/gcc-4_0-branch/gcc/testsuite/gcc.dg/pr26961-1.c
Modified:
branches/gcc-4_0-branch/gcc/ChangeLog
branches/gcc-4_0-branch/gcc/fold-const.c
branches/gcc-4_0-branch/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26961