From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 34170 invoked by alias); 15 Apr 2015 21:45:09 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 34111 invoked by uid 48); 15 Apr 2015 21:45:05 -0000 From: "joel at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/65779] New: undefined local symbol on powerpc Date: Wed, 15 Apr 2015 21:45:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 5.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: joel at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-04/txt/msg01255.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65779 Bug ID: 65779 Summary: undefined local symbol on powerpc Product: gcc Version: 5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: joel at gcc dot gnu.org Created attachment 35323 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35323&action=edit Preprocessed source from zlib.c from RTEMS PowerPC bootloader This file compiled without an undefined symbol with many gcc versions prior to 5.x. powerpc-rtems4.11-gcc (GCC) 5.0.0 20150412 (experimental) Fails: powerpc-rtems4.11-gcc -mrelocatable -mcpu=603e -O2 -g zlib_pp.c Passes: powerpc-rtems4.11-gcc -mcpu=603e -O2 -g zlib_pp.c Fails: powerpc-rtems4.11-gcc -mrelocatable -O2 -g zlib_pp.c Also passes at -Os, -O0, and -O1. The error is that the assembly language produced has a .4byte directive with a reference to a symbol that is not generated. $ grep LCL2 zlib_pp.s .LCL22: lwz 0,.LCL22-.LCF22(30) .LCL23: lwz 0,.LCL23-.LCF23(30) .LCL24: lwz 0,.LCL24-.LCF24(30) .LCL25: lwz 0,.LCL25-.LCF25(30) .4byte .LCL2 .4byte .LCL2