[forwarded from http://bugs.debian.org/329840]
works with 3.3.6, 3.4 CVS, fails with 4.0.2, CVS HEAD 20050904 When building zinc-compiler on sparc, I'm get: run.nw: In function 'do_run': run.nw:212: internal compiler error: Segmentation fault It seems the following code is what is causing it: void do_run(void *ip) { char dummy[8192]; __asm__("" : : "g"(dummy)); goto *ip; } A file with only that in will generate the ICE too. It happens when using -O* and -g. -O0 or no -g makes it build. Also, making the dummy buffer smaller than 8089 fixes it. 8089 still crashes, 8088 works without problems. Compiling the same with gcc-3.3 or 3.4 works without problems. -- Summary: [4.0 4.1 regression] ICE (Segmentation fault) Product: gcc Version: 4.0.2 Status: UNCONFIRMED Severity: normal Priority: P2 Component: target AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: debian-gcc at lists dot debian dot org GCC host triplet: sparc-linux http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24284