This is the mail archive of the 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]
Other format: [Raw text]

[Bug optimization/11350] New: undefined labels with -Os -fPIC


           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]

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

Attaching the preprocessed source (.i and .s) in a followup.

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