Bug 18295 - verify_local_live_at_start failed with -O3
Summary: verify_local_live_at_start failed with -O3
Status: RESOLVED DUPLICATE of bug 15342
Alias: None
Product: gcc
Classification: Unclassified
Component: rtl-optimization (show other bugs)
Version: 3.4.3
: P2 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords: ice-on-valid-code
Depends on: 15342
Blocks:
  Show dependency treegraph
 
Reported: 2004-11-04 04:36 UTC by Ralf Corsepius
Modified: 2005-07-23 22:49 UTC (History)
2 users (show)

See Also:
Host:
Target: arm-elf* arm-rtems*
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments
*.i of a real world source files triggering the ICE (29.82 KB, text/plain)
2004-11-04 04:42 UTC, Ralf Corsepius
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ralf Corsepius 2004-11-04 04:36:30 UTC
The code from the attachment causes arm-rtems-gcc/arm-elf-gcc to ICE at -O3:

# arm-rtems4.7-gcc -msoft-float  -O3 -c clnt_tcp.i
../../../../../../../rtems.orig/c/src/../../cpukit/librpc/src/rpc/clnt_tcp.c: In
function `clnttcp_call':
../../../../../../../rtems.orig/c/src/../../cpukit/librpc/src/rpc/clnt_tcp.c:291:
warning: assignment from incompatible pointer type
../../../../../../../rtems.orig/c/src/../../cpukit/librpc/src/rpc/clnt_tcp.c:328:
internal compiler error: in verify_local_live_at_start, at flow.c:546
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.

It does not ice with optimization levels < 3.
# arm-rtems4.7-gcc --version
arm-rtems4.7-gcc (GCC) 3.4.3 20041103 (prerelease)

This is a regression against gcc-3.2.3 which compiles the code without error.
Comment 1 Andrew Pinski 2004-11-04 04:41:15 UTC
This looks close to PR 15342, I am going to assume it works at -O2.
Comment 2 Ralf Corsepius 2004-11-04 04:42:17 UTC
Created attachment 7470 [details]
*.i of a real world source files triggering the ICE
Comment 3 Ralf Corsepius 2004-11-04 05:16:04 UTC
Thanks, yes, 15342 looks very similar.

And yes, it does not ice at -O2 (This is what I had meant by writing "it does
not ice at optimization levels < 3").

 
Comment 4 Joel Sherrill 2005-01-23 23:46:12 UTC
Appears to be fixed in gcc 4.0.0 (20050122).
Comment 5 Andrew Pinski 2005-01-23 23:47:57 UTC

*** This bug has been marked as a duplicate of 15342 ***