From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26776 invoked by alias); 8 Jan 2003 17:32:56 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 26757 invoked from network); 8 Jan 2003 17:32:52 -0000 Received: from unknown (HELO piper.synopsys.com) (146.225.1.217) by 209.249.29.67 with SMTP; 8 Jan 2003 17:32:52 -0000 Received: (from jbuck@localhost) by piper.synopsys.com (8.11.6/8.11.6) id h08HWS512447; Wed, 8 Jan 2003 09:32:28 -0800 Date: Wed, 08 Jan 2003 18:36:00 -0000 From: Joe Buck To: Rene Rebe Cc: gcc@gcc.gnu.org, libc-alpha@sources.redhat.com, rock-linux@rocklinux.org Subject: Re: compiling glibc-2.3.1 with gcc-3.2.1 for pentium >= II Message-ID: <20030108093228.B12257@synopsys.com> References: <20030108.020044.846931922.rene.rebe@gmx.net> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable User-Agent: Mutt/1.2.5.1i In-Reply-To: <20030108.020044.846931922.rene.rebe@gmx.net>; from rene@rocklinux.org on Wed, Jan 08, 2003 at 02:00:44AM +0100 X-SW-Source: 2003-01/txt/msg00438.txt.bz2 On Wed, Jan 08, 2003 at 02:00:44AM +0100, Rene Rebe wrote: > Hi all. >=20 > When we try to compile the glibc-2.3.1 with gcc-3.2.1 (unpatched > vanilla sources) it fails for optimizations >=3D pentium2 >=20 > Here is the error output: >=20 > debug-glibc:[signal]# make > (echo '#include '; \ > echo 'PSEUDO (__kill, kill, 2)'; \ > echo ' ret'; \ > echo 'PSEUDO_END(__kill)'; \ > echo 'libc_hidden_def (__kill)'; \ > echo 'weak_alias (__kill, kill)'; \ > echo 'libc_hidden_weak (kill)'; \ This might be a glibc bug; see PR 8948. gcc has had an __i686 macro for years; searching sysdep.h for __i686 might bring enlightenment. > ) | i686-pc-linux-gnu-gcc-3 -c -I../include -I. -I.. -I../libio -I../s= ysdeps/i386/elf -I../linuxthreads/sysdeps/unix/sysv/linux/i386 -I../linuxth= reads/sysdeps/unix/sysv/linux -I../linuxthreads/sysdeps/pthread -I../sysdep= s/pthread -I../linuxthreads/sysdeps/unix/sysv -I../linuxthreads/sysdeps/uni= x -I../linuxthreads/sysdeps/i386/i686 -I../linuxthreads/sysdeps/i386 -I../s= ysdeps/unix/sysv/linux/i386 -I../sysdeps/unix/sysv/linux -I../sysdeps/gnu -= I../sysdeps/unix/common -I../sysdeps/unix/mman -I../sysdeps/unix/inet -I../= sysdeps/unix/sysv/i386 -I../sysdeps/unix/sysv -I../sysdeps/unix/i386 -I../s= ysdeps/unix -I../sysdeps/posix -I../sysdeps/i386/i686/fpu -I../sysdeps/i386= /i686 -I../sysdeps/i386/i486 -I../sysdeps/i386/fpu -I../sysdeps/i386 -I../s= ysdeps/wordsize-32 -I../sysdeps/ieee754/ldbl-96 -I../sysdeps/ieee754/dbl-64= -I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754 -I../sysdeps/generic/elf = -I../sysdeps/generic -nostdinc -isystem /rock-linux/rock-1.7/build/default= -1.7-snapshot-ia32-pentium2-generic-expert/tools.cross/lib/gcc-lib/i686-pc-= linux-gnu/3.2.1/include -isystem /rock-linux/rock-1.7/build/default-1.7-sna= pshot-ia32-pentium2-generic-expert/root/usr/src/linux/include -D_LIBC_REENT= RANT -include ../include/libc-symbols.h -DPIC -DSHARED -DASSEMBLER -DG= AS_SYNTAX -x assembler-with-cpp -o kill.os - > {standard input}: Assembler messages: > {standard input}:46: Warning: rest of line ignored; first ignored charact= er is `1' > {standard input}:46: Warning: rest of line ignored; first ignored charact= er is `1' > {standard input}:46: Warning: rest of line ignored; first ignored charact= er is `1' > {standard input}:46: Error: unrecognized symbol type "" > {standard input}:46: Warning: rest of line ignored; first ignored charact= er is `1' > {standard input}:46: Warning: rest of line ignored; first ignored charact= er is `1' > {standard input}:46: Error: junk `.get_pc_thunk.bx' after expression > make: *** [kill.os] Error 1 >=20 >=20 > And here what gcc has after preprocessing: >=20 > # 1 "" > # 1 "" > # 1 "" > # 1 "../include/libc-symbols.h" 1 > # 56 "../include/libc-symbols.h" > # 1 "../config.h" 1 > # 57 "../include/libc-symbols.h" 2 > # 2 "" 2 > # 1 "" > # 1 "../sysdeps/unix/sysv/linux/i386/sysdep.h" 1 > # 24 "../sysdeps/unix/sysv/linux/i386/sysdep.h" > # 1 "../sysdeps/unix/i386/sysdep.h" 1 > # 19 "../sysdeps/unix/i386/sysdep.h" > # 1 "../sysdeps/unix/sysdep.h" 1 > # 19 "../sysdeps/unix/sysdep.h" > # 1 "../sysdeps/generic/sysdep.h" 1 > # 20 "../sysdeps/unix/sysdep.h" 2 >=20 > # 1 "../sysdeps/unix/sysv/linux/sys/syscall.h" 1 > # 25 "../sysdeps/unix/sysv/linux/sys/syscall.h" > # 1 "/rock-linux/rock-1.7/build/default-1.7-snapshot-ia32-pentium2-generi= c-expert/root/usr/include/asm/unistd.h" 1 > # 26 "../sysdeps/unix/sysv/linux/sys/syscall.h" 2 > # 22 "../sysdeps/unix/sysdep.h" 2 > # 20 "../sysdeps/unix/i386/sysdep.h" 2 > # 1 "../sysdeps/i386/sysdep.h" 1 > # 20 "../sysdeps/i386/sysdep.h" > # 1 "../sysdeps/generic/sysdep.h" 1 > # 21 "../sysdeps/i386/sysdep.h" 2 > # 21 "../sysdeps/unix/i386/sysdep.h" 2 > # 25 "../sysdeps/unix/sysv/linux/i386/sysdep.h" 2 > # 1 "../sysdeps/generic/bp-sym.h" 1 > # 26 "../sysdeps/unix/sysv/linux/i386/sysdep.h" 2 > # 1 "../sysdeps/i386/bp-asm.h" 1 > # 27 "../sysdeps/unix/sysv/linux/i386/sysdep.h" 2 > # 1 "../linuxthreads/sysdeps/i386/tls.h" 1 > # 23 "../linuxthreads/sysdeps/i386/tls.h" > # 1 "../linuxthreads/sysdeps/i386/i686/pt-machine.h" 1 > # 28 "../linuxthreads/sysdeps/i386/i686/pt-machine.h" > # 1 "../sysdeps/unix/sysv/linux/kernel-features.h" 1 > # 29 "../linuxthreads/sysdeps/i386/i686/pt-machine.h" 2 > # 24 "../linuxthreads/sysdeps/i386/tls.h" 2 > # 28 "../sysdeps/unix/sysv/linux/i386/sysdep.h" 2 > # 2 "" 2 > .text; 1: .stabs "",100,0,0,1b; 1: .stabs "__kill",100,0,0,1b; .globl __k= ill; .type __kill,@function; .align 1<<4; .stabs "int:t(0,1)=3Dr(0,1);-2147= 483648;2147483647;",128,0,0,0; .stabs "__kill:F(0,1)",36,0,0,__kill; __kill= : movl %ebx, %edx; movl 8(%esp), %ecx; movl 8 -4(%esp), %ebx; movl $37, %ea= x; int $0x80 ; movl %edx, %ebx; cmpl $-4095, %eax; jae 0f; .Lpseudo_end: > ret > 0:pushl %ebx; .section .gnu.linkonce.t. 1 .get_pc_thunk.bx,"ax",@progbits= ; .globl 1 .get_pc_thunk.bx; .hidden 1 .get_pc_thunk.bx; .type 1 .get_pc_th= unk.bx,@function; 1 .get_pc_thunk.bx: movl (%esp), %ebx; ret; .previous; ca= ll 1 .get_pc_thunk.bx; addl $_GLOBAL_OFFSET_TABLE_, %ebx; xorl %edx, %edx; = subl %eax, %edx; pushl %edx; ; call __errno_location@PLT; ; popl %ecx; popl= %ebx; movl %ecx, (%eax); orl $-1, %eax; jmp .Lpseudo_end; .size __kill,.-_= _kill; 1: .stabs "",36,0,0,1b-__kill; > .globl __GI___kill ; __GI___kill =3D __kill > .weak kill ; kill =3D __kill > .globl __GI_kill ; __GI_kill =3D kill >=20 > Is simply the semicolon misplaced, or is there more to fix? >=20 > Sincerely > - Ren=E9 Rebe (ROCK Linux) >=20 > --=20=20 > Ren=E9 Rebe - Europe/Germany/Berlin > e-mail: rene.rebe@gmx.net, rene@rocklinux.org > web: www.rocklinux.org, drocklinux.dyndns.org/rene/ >=20 > Anyone sending unwanted advertising e-mail to this address will be > charged $25 for network traffic and computing time. By extracting my > address from this message or its header, you agree to these terms. --=20 Q. What's more of a headache than a bug in a compiler. A. Bugs in six compilers. -- Mark Johnson