This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug rtl-optimization/10463] -fssa-ccp ICE
- From: "bangerth at dealii dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 25 Aug 2004 13:17:14 -0000
- Subject: [Bug rtl-optimization/10463] -fssa-ccp ICE
- References: <20030423120600.10463.davh@diku.dk>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From bangerth at dealii dot org 2004-08-25 13:17 -------
Steven, Gaby, you wondered whether this is a regression. Indeed it is.
Here is a small testcase:
----------------
bool should_exit;
void foo() {
int i = 0;
while(!should_exit) {
int num = 1;
if (num)
for (int * it; num && it != 0; )
if (*it <= 1)
if (i < 1)
i = 1;
}
}
-------------------------
It compiles with 3.2.3, but ICEs with 3.3.4:
g/x> /home/bangerth/bin/gcc-3.2.3/bin/c++ -c -fssa -fssa-ccp -O2 x.cc
g/x> /home/bangerth/bin/gcc-3.3.4-pre/bin/c++ -c -fssa -fssa-ccp -O2 x.cc
x.cc: In function `void foo()':
x.cc:13: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
Of course the flags were abandoned in 3.4 and later, so it doesn't trigger
there at all.
Steven, you may want to check whether your patch fixes this problem.
W.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10463