Bug 184429

Summary: GCC ICE with -ftree-vectorize, -O2, and -march=pentium4
Product: [Fedora] Fedora Reporter: Jerry James <loganjerry>
Component: gccAssignee: Jakub Jelinek <jakub>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 4   
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Linux   
Whiteboard:
Fixed In Version: 4.1.0-3 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-03-14 12:12:50 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Preprocessed source demonstrating the compiler bug none

Description Jerry James 2006-03-08 18:20:58 UTC
Description of problem:
Internal compiler error with -ftree-vectorize

Version-Release number of selected component (if applicable):
gcc-4.0.2-8.fc4

How reproducible:
Every time

Steps to Reproduce:
1. Compiler buffer.c from XEmacs 21.5 CVS with CFLAGS="-ftree-vectorize -O2
-march=pentium4"
2. The compiler reports an internal compiler error
  
Actual results:
The compiler reports an internal compiler error

Expected results:
The compiler should produce an object file

Additional info:
The ICE occurs with both -march=pentium4 and -march=prescott.  It does not
happen with -march=pentium3.  It does not happen with -O1.  It does not happen
if -free-vectorize is omitted.

Comment 1 Jerry James 2006-03-08 18:20:58 UTC
Created attachment 125823 [details]
Preprocessed source demonstrating the compiler bug

Comment 2 Jakub Jelinek 2006-03-14 12:12:50 UTC
-ftree-vectorize in GCC 4 is very new and not in a very good shape, use GCC 4.1+
if you need it, or omit -ftree-vectorize.
I have verified that FC5 gcc-4.1.0-3 doesn't ICE on this.