Red Hat Bugzilla – Bug 184429
GCC ICE with -ftree-vectorize, -O2, and -march=pentium4
Last modified: 2007-11-30 17:11:26 EST
Description of problem:
Internal compiler error with -ftree-vectorize
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Compiler buffer.c from XEmacs 21.5 CVS with CFLAGS="-ftree-vectorize -O2
2. The compiler reports an internal compiler error
The compiler reports an internal compiler error
The compiler should produce an object file
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.
Created attachment 125823 [details]
Preprocessed source demonstrating the compiler bug
-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.