Commit 54f97f90 by Jan Hubicka Committed by Jan Hubicka

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
parent 4d5438cd
2015-12-08 Jan Hubicka <hubicka@ucw.cz>
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 <nathan@acm.org> 2015-12-08 Nathan Sidwell <nathan@acm.org>
* config/nvptx/nvptx.c (decl_chunk_size, decl_chunk_mode, * config/nvptx/nvptx.c (decl_chunk_size, decl_chunk_mode,
...@@ -1005,7 +1005,7 @@ symtab_node::verify_base (void) ...@@ -1005,7 +1005,7 @@ symtab_node::verify_base (void)
} }
if (!hashed_node if (!hashed_node
&& !(is_a <varpool_node *> (this) && !(is_a <varpool_node *> (this)
|| DECL_HARD_REGISTER (decl))) && DECL_HARD_REGISTER (decl)))
{ {
error ("node not found in symtab assembler name hash"); error ("node not found in symtab assembler name hash");
error_found = true; error_found = true;
...@@ -1637,7 +1637,7 @@ symtab_node::resolve_alias (symtab_node *target, bool transparent) ...@@ -1637,7 +1637,7 @@ symtab_node::resolve_alias (symtab_node *target, bool transparent)
bool bool
symtab_node::noninterposable_alias (symtab_node *node, void *data) 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 (); symtab_node *fn = node->ultimate_alias_target ();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment