From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5538 invoked by alias); 27 Jun 2003 12:13:27 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 5417 invoked by uid 48); 27 Jun 2003 12:13:27 -0000 Date: Fri, 27 Jun 2003 12:13:00 -0000 From: "debian-gcc at lists dot debian dot org" To: gcc-bugs@gcc.gnu.org Message-ID: <20030627121325.11350.debian-gcc@lists.debian.org> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug optimization/11350] New: undefined labels with -Os -fPIC X-Bugzilla-Reason: CC X-SW-Source: 2003-06/txt/msg02876.txt.bz2 List-Id: 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.