This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
compiling linux kernel with gcc-3.0
- To: gcc-bugs at gcc dot gnu dot org
- Subject: compiling linux kernel with gcc-3.0
- From: Andrew Karadimov <Andrew dot Karadimov at bulpost dot com>
- Date: Fri, 9 Nov 2001 16:16:09 +0200
I try to compile linux kernel 2.4.14 with gcc-3.0 and compiler return error
on the 8139too ethernet driver:
gcc-3.0 -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes
-Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer
-pipe -mpreferred-stack-boundary=2 -march=i686 -c -o 8139too.o 8139too.c
8139too.c: In function `netdev_ethtool_ioctl':
8139too.c:2432: Unrecognizable insn:
(insn/i 621 1064 1061 (parallel[
(set (reg:SI 6 ebp)
(asm_operands:SI ("addl %3,%1 ; sbbl %0,%0; cmpl %1,%4; sbbl
$0,%0") ("=&r") 0[
(reg/v:SI 1 edx [166])
(mem:SI (plus:SI (reg/f:SI 6 ebp)
(const_int -352 [0xfffffea0])) 0)
(mem/s:SI (plus:SI (reg:SI 0 eax [174])
(const_int 12 [0xc])) 0)
]
[
(asm_input:SI ("1"))
(asm_input:SI ("g"))
(asm_input:SI ("g"))
] ("/usr/src/linux/include/asm/uaccess.h") 558))
(set (reg/v:SI 1 edx [166])
(asm_operands:SI ("addl %3,%1 ; sbbl %0,%0; cmpl %1,%4; sbbl
$0,%0") ("=r") 1[
(reg/v:SI 1 edx [166])
(mem:SI (plus:SI (reg/f:SI 6 ebp)
(const_int -352 [0xfffffea0])) 0)
(mem/s:SI (plus:SI (reg:SI 0 eax [174])
(const_int 12 [0xc])) 0)
]
[
(asm_input:SI ("1"))
(asm_input:SI ("g"))
(asm_input:SI ("g"))
] ("/usr/src/linux/include/asm/uaccess.h") 558))
(clobber (reg:QI 19 dirflag))
(clobber (reg:QI 18 fpsr))
(clobber (reg:QI 17 flags))
] ) -1 (insn_list 607 (insn_list 614 (nil)))
(nil))
8139too.c:2432: Internal compiler error in reload_cse_simplify_operands, at
reload1.c:8364
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
make[4]: *** [8139too.o] Error 1
make[4]: Leaving directory `/usr/src/linux/drivers/net'
make[3]: *** [first_rule] Error 2
make[3]: Leaving directory `/usr/src/linux/drivers/net'
make[2]: *** [_subdir_net] Error 2
make[2]: Leaving directory `/usr/src/linux/drivers'
make[1]: *** [_dir_drivers] Error 2
make[1]: Leaving directory `/usr/src/linux'
make: *** [stamp-build] Error 2
Kind Regards