From: Jan Hubicka Date: Tue, 8 Dec 2015 22:00:55 +0000 (+0100) Subject: re PR lto/61886 (LTO breaks fread with _FORTIFY_SOURCE=2) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=54f97f900086fcc62411261205dd61e50f460421;p=gcc.git re PR lto/61886 (LTO breaks fread with _FORTIFY_SOURCE=2) PR ipa/61886 * symtab.c (symtab_node::verify_base): Fix thinko in a conditional. (symtab_node::noninterposable_alias): Do not accept transparent aliases. From-SVN: r231427 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 1668e4edc8e..e4c720774dd 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2015-12-08 Jan Hubicka + + PR ipa/61886 + * symtab.c (symtab_node::verify_base): Fix thinko in a conditional. + (symtab_node::noninterposable_alias): Do not accept transparent + aliases. + 2015-12-08 Nathan Sidwell * config/nvptx/nvptx.c (decl_chunk_size, decl_chunk_mode, diff --git a/gcc/symtab.c b/gcc/symtab.c index 06d618bb3b4..a9a0ab64cf9 100644 --- a/gcc/symtab.c +++ b/gcc/symtab.c @@ -1005,7 +1005,7 @@ symtab_node::verify_base (void) } if (!hashed_node && !(is_a (this) - || DECL_HARD_REGISTER (decl))) + && DECL_HARD_REGISTER (decl))) { error ("node not found in symtab assembler name hash"); error_found = true; @@ -1637,7 +1637,7 @@ symtab_node::resolve_alias (symtab_node *target, bool transparent) bool symtab_node::noninterposable_alias (symtab_node *node, void *data) { - if (decl_binds_to_current_def_p (node->decl)) + if (!node->transparent_alias && decl_binds_to_current_def_p (node->decl)) { symtab_node *fn = node->ultimate_alias_target ();