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 lto/67548] [5 Regression] LTO drops weak binding with "ld -r"


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

--- Comment #14 from Tejas Belagod <belagod at gcc dot gnu.org> ---
Author: belagod
Date: Wed Dec 16 22:33:51 2015
New Revision: 231724

URL: https://gcc.gnu.org/viewcvs?rev=231724&root=gcc&view=rev
Log:
        Backport from Mainline
        PR lto/67548
        * lto-plugin.c (linker_output, linker_output_set): New statics.
        (all_symbols_read_handler): Add -flinker-output option.
        (onload): Record linker_output info.

        * ipa-visibility.c (cgraph_externally_visible_p,
        varpool_node::externally_visible_p): When doing incremental linking,
        hidden symbols may be still used later.
        (update_visibility_by_resolution_info): Do not drop weak during
        incremental link.
        (function_and_variable_visibility): Fix formating.
        * flag-types.h (lto_linker_output): Declare.
        * common.opt 9flag_incremental_link): New flag.

        * lto-lang.c (lto_post_options): Process flag_lto_linker_output.
        * lang.opt (lto_linker_output): New enum.
        (flinker_output): New flag.


Added:
    branches/ARM/embedded-5-branch/gcc/lto/ChangeLog.arm
    branches/ARM/embedded-5-branch/lto-plugin/ChangeLog.arm
Modified:
    branches/ARM/embedded-5-branch/gcc/ChangeLog.arm
    branches/ARM/embedded-5-branch/gcc/common.opt
    branches/ARM/embedded-5-branch/gcc/flag-types.h
    branches/ARM/embedded-5-branch/gcc/ipa-visibility.c
    branches/ARM/embedded-5-branch/gcc/lto/lang.opt
    branches/ARM/embedded-5-branch/gcc/lto/lto-lang.c
    branches/ARM/embedded-5-branch/lto-plugin/lto-plugin.c

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