Bug 184429 - GCC ICE with -ftree-vectorize, -O2, and -march=pentium4
Summary: GCC ICE with -ftree-vectorize, -O2, and -march=pentium4
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: gcc
Version: 4
Hardware: i686
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jakub Jelinek
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-03-08 18:20 UTC by Jerry James
Modified: 2007-11-30 22:11 UTC (History)
0 users

Fixed In Version: 4.1.0-3
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2006-03-14 12:12:50 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
Preprocessed source demonstrating the compiler bug (700.83 KB, text/plain)
2006-03-08 18:20 UTC, Jerry James
no flags Details

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.


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