bootstrap/3460: broken libgcc2 -fPIC
Golubev I. N.
gin@mo.msk.ru
Thu Jun 28 07:06:00 GMT 2001
>Number: 3460
>Category: bootstrap
>Synopsis: broken libgcc2 -fPIC
>Confidential: no
>Severity: critical
>Priority: medium
>Responsible: unassigned
>State: open
>Class: wrong-code
>Submitter-Id: net
>Arrival-Date: Thu Jun 28 07:06:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator: Golubev I. N.
>Release: 3.0
>Organization:
>Environment:
System: SCO_SV d-fens 3.2 2 i386
host: i586-pc-sco3.2v5.0.2
build: i586-pc-sco3.2v5.0.2
target: i586-pc-sco3.2v5.0.2
configured with: : (reconfigured) : (reconfigured) ../gcc-3.0/configure --without-included-gettext --prefix=/usr --with-as=/usr/bin/gas --enable-multilib --disable-static --enable-shared --with-system-zlib --program-transform-name=s/cpp/gcpp/
>Description:
1) Settings of `MULTILIB_*' in `t-sco5gas' (version as in
< http://gcc.gnu.org/cgi-bin/cvsweb.cgi/~checkout~/gcc/gcc/config/i386/t-sco5gas?rev=1.3&content-type=text/plain >)
affect nothing. In particular, they do not cause
`stmp-multilib' make procedure to put `-fPIC' in ${LIBGCC2_CFLAGS}.
This explains why what is described below was never hit.
2) gcc generates incorrect asm code when compiling `unwind-dw2.c' for
target `libgcc2.a' with ${TARGET_LIBGCC2_CFLAGS} containing `-fPIC' as
in `t-sco5'. It causes `gas' from binutils-2.11 to complain:
1.s:2948: Error: Rest of line ignored. First ignored character is `@'.
for gcc output:
.long .LFB1@GOTOFF
Configuring gcc with native as has even less chances to work. It
generated inacceptable code at least in 2.95.2, and I always configure
it with gnu as since then.
>How-To-Repeat:
make bootstrap
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the Gcc-bugs
mailing list