This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug optimization/11350] New: undefined labels with -Os -fPIC
- From: "debian-gcc at lists dot debian dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 27 Jun 2003 12:13:27 -0000
- Subject: [Bug optimization/11350] New: undefined labels with -Os -fPIC
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11350
Summary: undefined labels with -Os -fPIC
Product: gcc
Version: 3.3
Status: UNCONFIRMED
Severity: critical
Priority: P2
Component: optimization
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: debian-gcc at lists dot debian dot org
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: i386-linux
GCC host triplet: i386-linux
GCC target triplet: i386-linux
[forwarded from http://bugs.debian.org/195911]
rechecked with 3.3 CVS 20030626 and HEAD CVS 20030531
While compiling XFree86 CVS with gcc-3.3 it compiles fine with default
optimization flags; but trying to compile with -Os results in undefined
symbols in shared libraries (i.e. this problem is only seen with -fPIC
and not otherwise) such as .L99. The problem was narrowed down to the
compilation of a few files e.g. xc/lib/Xaw/SimpleMenu.c, xc/lib/dps/dpsXclient.c
A check of assembly code shows that .L99 was being called with it being
absent; with -O2 it was present. Same problem comes with undefined .L92 in
xc/lib/Xaw6/SimpleMenu.c
Attaching the preprocessed source (.i and .s) in a followup.