This is the mail archive of the gcc-patches@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]

[arm-embedded] Backport of resolution handling fix WRT incremental linking


The following backport has been made from gcc-6-branch to ARM/embedded-5-
branch in order to fix an ICE in LTO observed when running g++.dg/lto/20081219 
testcase:

2016-07-27  Thomas Preud'homme  <thomas.preudhomme@arm.com>

        Backport from mainline
        2015-11-29  Jan Hubicka  <hubicka@ucw.cz>

        * cgraph.c (cgraph_node::make_local): No name is unique during
        incremental linking.
        * cgraph.h (can_be_discarded_p): Update comment; also common and
        WEAK in named sections can be discarded; when doing incremental
        link do not rely on resolution being the final one.
        * varasm.c (default_binds_local_p_3, decl_binds_to_current_def_p):
        When symbol can be discarded, do not rely on resolution info.
        * symtab.c (symtab_node::nonzero_address): Take into account that
        symbol can be discarded.
        * ipa-visibility.c (update_visibility_by_resolution_info): Handle
        definition correctly.
        (function_and_variable_visibility): Do not set unique_name when
        incrementally linking.


Best regards,

Thomas


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