Bug 152149 - gcc4 Segmentation fault building vim-6.3
gcc4 Segmentation fault building vim-6.3
Product: Fedora
Classification: Fedora
Component: gcc4 (Show other bugs)
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Jakub Jelinek
Depends On:
  Show dependency treegraph
Reported: 2005-03-25 06:45 EST by Robert Connolly
Modified: 2007-11-30 17:11 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2005-03-25 16:03:44 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
preprocessed os_unix.i (280.76 KB, text/plain)
2005-03-25 07:05 EST, Robert Connolly
no flags Details

External Trackers
Tracker ID Priority Status Summary Last Updated
GNU Compiler Collection 20640 None None None Never

  None (edit)
Description Robert Connolly 2005-03-25 06:45:57 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (compatible; Konqueror/3.3; Linux) (KHTML, like Gecko)

Description of problem:
I'm not a redhat/fedora user, but I pulled the rhl_branch from gcc.gnu.org and 
I was building a system. Everything was well (perfect binutils testsuite, 
decent results from glibc and gcc testsuite) until I got to vim-6.3: 
gcc -c -I. -Iproto -DHAVE_CONFIG_H     -march=i686 -mtune=prescott 
-fomit-frame-pointer -funroll-loops -maccumulate-outgoing-args -O2 -pipe        
-o objects/os_unix.o os_unix.c 
os_unix.c: In function 'mch_settmode': 
os_unix.c:2697: internal compiler error: Segmentation fault 
Try building vim-6.3 with gcc-4.0.0, see what happens. 

Version-Release number of selected component (if applicable):
gcc version 4.0.0 20050323 (Red Hat 4.0.0-0.36)

How reproducible:

Steps to Reproduce:
1. Compile vim with gcc4. 

Actual Results:  os_unix.c: In function 'mch_settmode': 
os_unix.c:2697: internal compiler error: Segmentation fault 

Expected Results:  No segmentation fault  

Additional info:
Comment 1 Jakub Jelinek 2005-03-25 06:54:32 EST
Please provide preprocessed os_unix.i (rerun the above command with -save-temps).
Comment 2 Robert Connolly 2005-03-25 07:05:26 EST
Created attachment 112345 [details]
preprocessed os_unix.i

This is the requested preprocessed os_unix.i, made with:

cd vim63/src &&
cc -c -I. -Iproto -DHAVE_CONFIG_H -march=i686 -mtune=prescott
-fomit-frame-pointer -funroll-loops -maccumulate-outgoing-args -O2 -o
objects/os_unix.o os_unix.c -save-temps
Comment 3 Robert Connolly 2005-03-25 07:08:05 EST
This is caused by -funroll-loops. funroll-loops is fine with gcc-3.4.3 and 
this package. 

Note You need to log in before you can comment on or make changes to this bug.