From Bugzilla Helper: User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.4) Gecko/20010918 Description of problem: Compiling kernel 2.4.11/2.4.12 with -O6 stopped at smbfs, causing an "Unrecognizable insn" (the excerpt error log is attached below). It should be noted the compiler I used is rebuilt from the src rpm downloaded from the rawhide FTP site, using -O6 -march=athlon. The same compiler compiled kernel 2.4.10 with the same configuration successfully. Version-Release number of selected component (if applicable): gcc-2.96-99.src.rpm (rebuilt from this src rpm with -O6 -march=athlon) How reproducible: Always Steps to Reproduce: 1. Include smbfs in configuration, with arch=athlon. Modify kernel Makefile to -O6. 2. make bzImage modules 3. The error occurs when compiling proc.c under linux/fs/smbfs Actual Results: make -C smbfs modules make[2]: Entering directory `/usr/src/linux-2.4.11/fs/smbfs' gcc -D__KERNEL__ -I/usr/src/linux-2.4.11/include -Wall -Wstrict-prototypes -Wno-trigraphs -O6 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=athlon -DMODULE -DMODVERSIONS -include /usr/src/linux-2.4.11/include/linux/modversions.h -DSMBFS_PARANOIA -c -o proc.o proc.c proc.c: In function `smb_decode_long_dirent': proc.c:1802: Unrecognizable insn: (insn/i 431 918 912 (parallel[ (set (reg:SI 0 eax) (asm_operands ("") ("=a") 0[ (reg:DI 1 edx) ] [ (asm_input:DI ("A")) ] ("proc.c") 378)) (set (reg:SI 1 edx) (asm_operands ("") ("=d") 1[ (reg:DI 1 edx) ] [ (asm_input:DI ("A")) ] ("proc.c") 378)) (clobber (reg:QI 19 dirflag)) (clobber (reg:QI 18 fpsr)) (clobber (reg:QI 17 flags)) ] ) -1 (insn_list 429 (nil)) (nil)) proc.c:1802: confused by earlier errors, bailing out make[2]: *** [proc.o] Error 2 make[2]: Leaving directory `/usr/src/linux-2.4.11/fs/smbfs' make[1]: *** [_modsubdir_smbfs] Error 2 make[1]: Leaving directory `/usr/src/linux-2.4.11/fs' make: *** [_mod_fs] Error 2 Additional info:
Is this reproduceable? If yes, can you provide proc.i, created by -save-temps: gcc -D__KERNEL__ -I/usr/src/linux-2.4.11/include -Wall -Wstrict-prototypes -Wno-trigraphs -O6 -fomit-frame-pointer -fno-strict-aliasing -fno-common -mpreferred-stack-boundary=2 -march=athlon -DMODULE -DMODVERSIONS -include /usr/src/linux-2.4.11/include/linux/modversions.h -DSMBFS_PARANOIA -c -o proc.o proc.c -save-temps ? Thanks.
Created attachment 915080 [details] Comment (This comment was longer than 65,535 characters and has been moved to an attachment by Red Hat Bugzilla).
This also happened with kernel 2.4.13. I've downgraded my ATM to: autoconf-2.13-14 automake-1.4p5-2 libtool-1.4-8
Created attachment 104658 [details] original test case with preprocessor lines removed
Fixed as of gcc 3.2.