This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/24284] New: [4.0 4.1 regression] ICE (Segmentation fault)
- From: "debian-gcc at lists dot debian dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 9 Oct 2005 13:11:22 -0000
- Subject: [Bug target/24284] New: [4.0 4.1 regression] ICE (Segmentation fault)
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
[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