gcc 3.2 bug with "-mmmx"
Andreas Steinmetz
ast@domdv.de
Thu Aug 22 13:08:00 GMT 2002
hades:~ # uname -a
Linux hades 2.4.16 #2 Sat Jun 8 19:11:54 CEST 2002 i686 unknown
hades:~ # gcc --version
gcc (GCC) 3.2
gcc 3.2 was configured/built with the following options (system compiler was
a previous gcc 3.2 build):
./configure --prefix=/usr --enable-shared --with-gnu-as --with-gnu-ld --enable-threads=posix --with-cpu=i686 --enable-nls --with-system-zlib --enable-__cxa_atexit --enable-languages=c,c++
CFLAGS=CXXFLAGS=LIBCFLAGS=LIBCXXFLAGS=BOOT_CFLAGS=-O3 -fomit-frame-pointer -funroll-loops -fexpensive-optimizations -fschedule-insns2 -fcse-follow-jumps -fcse-skip-blocks -frerun-cse-after-loop -frerun-loop-opt -fgcse -fgcse-lm -fgcse-sm -fdelete-null-pointer-checks -falign-loops -falign-jumps -falign-functions -mcpu=pentiumpro -march=pentiumpro -mmmx -minline-all-stringops
original source is from xfree86 4.2.0, file:
--------------------------------------------
xc/programs/Xserver/PEX5/ddpex/mi/level1/miPck1Prim.c
command line to trigger the bug and compiler output:
----------------------------------------------------
hades:~ # gcc -O3 -fomit-frame-pointer -funroll-loops -fexpensive-optimizations -fschedule-insns2 -fcse-follow-jumps -fcse-skip-blocks -frerun-cse-after-loop -frerun-loop-opt -fgcse -fgcse-lm -fgcse-sm -fdelete-null-pointer-checks -falign-loops -falign-jumps -falign-functions -mcpu=pentiumpro -march=pentiumpro -mmmx -minline-all-stringops -ansi -pedantic -Wall -Wpointer-arith -c miPck1Prim.i
miPck1Prim.c: In function `CheckFAreaPick1':
miPck1Prim.c:405: unable to find a register to spill in class `FLOAT_REGS'
miPck1Prim.c:405: this is the insn:
(insn 808 807 809 (set (subreg:SF (reg/v:DI 29 rmm0 [64]) 0)
(float:SF (reg:HI 155))) 167 {floathisf2} (insn_list 805 (nil))
(nil))
miPck1Prim.c:405: confused by earlier errors, bailing out
notes and attachment:
---------------------
if "-mmmx" is removed form above command line compilation succeeds.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: miPck1Prim.i.bz2
Type: application/x-bzip2
Size: 25819 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-bugs/attachments/20020822/4f26d8c5/attachment.bz2>
More information about the Gcc-bugs
mailing list