This is the mail archive of the gcc-bugs@gcc.gnu.org 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 target/67417] powerpc64 bootstrap with -mcmodel=small results in linker error


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67417

--- Comment #5 from Alan Modra <amodra at gcc dot gnu.org> ---
Author: amodra
Date: Tue Sep  1 23:04:58 2015
New Revision: 227387

URL: https://gcc.gnu.org/viewcvs?rev=227387&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-5-branch/gcc/ChangeLog
    branches/gcc-5-branch/gcc/config/rs6000/predicates.md
    branches/gcc-5-branch/gcc/config/rs6000/rs6000.c


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