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 c/32511] [4.4/4.5/4.6 regression] GCC rejects inline+weak function


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32511

--- Comment #13 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-01-10 15:48:51 UTC ---
The original problem was fixed for GCC 4.6 with

2010-09-24  Jan Hubicka  <jh@suse.cz>

        * lto-symtab.c (lto_symtab_entry_def): Add guessed field.
        (lto_symtab_resolve_symbols): Set it.
...
        * tree.h (DECL_REPLACEABLE_P): Remove.
        (decl_replaceable_p, decl_binds_to_current_def_p): Declare.
...
        * varasm.c (resolution_to_local_definition_p, resolution_local_p): New
        static functions.
        (default_binds_local_p_1): Use resolutoin info.
        (decl_binds_to_current_def_p, decl_replaceable_p): New functions.
...

thus the patch can be reverted on the trunk (I'll do that after a round
of testing).


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