This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Can't compile network driver in the kernel.


Network driver for 8139 chip can't be compiled, here is what you want.

COMPILER VERSION:
Reading specs from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.0.1/specs
Configured with: ./configure --prefix=/usr --enable-threads
Thread model: posix
gcc version 3.0.1
 /usr/lib/gcc-lib/i686-pc-linux-gnu/3.0.1/cpp0 -lang-c -v
-I/usr/src/linux-2.4.13/include -D__GNUC__=3 -D__GNUC_MINOR__=0
-D__GNUC_PATCHLEVEL__=1 -D__ELF__ -Dunix -Dlinux -D__ELF__ -D__unix__
-D__linux__ -D__unix -D__linux -Asystem=posix -D__OPTIMIZE__
-D__STDC_HOSTED__=1 -Wall -Wstrict-prototypes -Wno-trigraphs -Acpu=i386
-Amachine=i386 -Di386 -D__i386 -D__i386__ -D__athlon -D__athlon__
-D__tune_athlon__ -D__KERNEL__ 8139too.c 8139too.i
GNU CPP version 3.0.1 (cpplib) (i386 Linux/ELF)

SYSTEM VERSION:
You know i686-pc-linux-gnu (glibc-2.2.3)
Machine code is AMD Athlon.

COMMAND LINE:
Typed into the kernel tree (2.4.12 and 2.4.13), in drivers/net

gcc -D__KERNEL__ -I/usr/src/linux-2.4.13/include -Wall
-Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer
-fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2
-march=athlon     -c -o 8139too.o 8139too.c

COMPILER OUTPUT:

8139too.c: In function `netdev_ethtool_ioctl':
8139too.c:2432: Unrecognizable insn:
(insn/i 618 1061 1058 (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 [165])
                        (mem:SI (plus:SI (reg/f:SI 6 ebp)
                                (const_int -352 [0xfffffea0])) 0)
                        (mem/s:SI (plus:SI (reg:SI 0 eax [173])
                                (const_int 12 [0xc])) 0)
                    ] 
                    [ 
                        (asm_input:SI ("1"))
                        (asm_input:SI ("g"))
                        (asm_input:SI ("g"))
                    ]  ("/usr/src/linux-2.4.13/include/asm/uaccess.h")
558))
            (set (reg/v:SI 1 edx [165])
                (asm_operands:SI ("addl %3,%1 ; sbbl %0,%0; cmpl %1,%4;
sbbl $0,%0") ("=r") 1[ 
                        (reg/v:SI 1 edx [165])
                        (mem:SI (plus:SI (reg/f:SI 6 ebp)
                                (const_int -352 [0xfffffea0])) 0)
                        (mem/s:SI (plus:SI (reg:SI 0 eax [173])
                                (const_int 12 [0xc])) 0)
                    ] 
                    [ 
                        (asm_input:SI ("1"))
                        (asm_input:SI ("g"))
                        (asm_input:SI ("g"))
                    ]  ("/usr/src/linux-2.4.13/include/asm/uaccess.h")
558))
            (clobber (reg:QI 19 dirflag))
            (clobber (reg:QI 18 fpsr))
            (clobber (reg:QI 17 flags))
        ] ) -1 (insn_list 604 (insn_list 611 (nil)))
    (nil))
8139too.c:2432: Internal compiler error in reload_cse_simplify_operands,
at reload1.c:8355
Please submit a full bug report,

PREPROCESSED FILE IS ATTACHED.

OPTION WHEN GCC WAS CONFIGURED (From above):

./configure --prefix=/usr --enable-threads


Thanks for your work!!!
Gonzalo Aguilar Delgado from Spain.
Bye!

8139too.i.bz2


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]