[Bug c/32511] [4.4/4.5/4.6 regression] GCC rejects inline+weak function
rguenth at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Jan 10 15:53:00 GMT 2011
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).
More information about the Gcc-bugs
mailing list