From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 53650 invoked by alias); 1 Sep 2015 23:26:23 -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 53627 invoked by uid 55); 1 Sep 2015 23:26:20 -0000 From: "amodra at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/67417] powerpc64 bootstrap with -mcmodel=small results in linker error Date: Tue, 01 Sep 2015 23:26:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 5.2.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: amodra at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: amodra at gmail dot com X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: 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-09/txt/msg00103.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67417 --- Comment #6 from Alan Modra --- Author: amodra Date: Tue Sep 1 23:25:48 2015 New Revision: 227389 URL: https://gcc.gnu.org/viewcvs?rev=227389&root=gcc&view=rev Log: [RS6000] Weak functions may not be file local A weak symbol defined in the current object file may not turn out to be the definition used at link time, if other copies of the symbol exist. This means they can't be considered file local. PR target/67417 * config/rs6000/predicates.md (current_file_function_operand): Don't return true for weak symbols. * config/rs6000/rs6000.c (rs6000_function_ok_for_sibcall): Likewise. Modified: branches/gcc-4_9-branch/gcc/ChangeLog branches/gcc-4_9-branch/gcc/config/rs6000/predicates.md branches/gcc-4_9-branch/gcc/config/rs6000/rs6000.c