Bug 21807 - gcc 4.1.0 20050522 segfaults (internal compiler error) on various GNU/Linux builds
Summary: gcc 4.1.0 20050522 segfaults (internal compiler error) on various GNU/Linux b...
Status: RESOLVED DUPLICATE of bug 21790
Alias: None
Product: gcc
Classification: Unclassified
Component: middle-end (show other bugs)
Version: 4.1.0
: P2 critical
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-29 13:58 UTC by Sean McLinden
Modified: 2005-07-23 22:49 UTC (History)
1 user (show)

See Also:
Host: i686-pc-linux
Target: i696-pc-linux
Build: i686-pc-linux
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sean McLinden 2005-05-29 13:58:27 UTC
Using a host system of Linux 2.6.8.1, binutils version 2.16 and the 
aforementioned GCC, I have observed the following gcc segmentation faults:

util-linux-2.12q: -pipe -O2 -mtune=i486 -fomit-frame-pointer (defaults)
fdiskbsdlabel.c: In function 'bselect' (void):
fdiskbsdlabel.c: 164: internal compiler error: Segmentation fault

sfdisk.c: In function 'do_fdisk (static void)':
sfdisk.c:3006: internal compiler error: Segmentation fault

I have also found that many variations of '-march=pentium4 -OX' segfault when 
compiling different instantiations of quotearg. For example:

patch-2.5.9:
quotearg.c: In function 'quotearg_char'
quotearg.c:619: internal compiler error: Segmentation fault

when -O3 was used, but worked fine with a -O2 optimization.

(I realize that optimizations greater than -O2 are risky but I didn't expect 
the compiler to choke with a segmentation fault).

I marked this as critical because it causes a seg fault and thought that 
someone might want to know.

Sean McLinden
Allegheny County Health Department
Comment 1 Andrew Pinski 2005-05-29 14:09:07 UTC

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