diff options
author | Martin Liska <mliska@suse.cz> | 2017-03-14 12:59:59 +0100 |
---|---|---|
committer | Martin Liska <marxin@gcc.gnu.org> | 2017-03-14 11:59:59 +0000 |
commit | 861d9d5e6a67624e8e3c9d1cff013762a513b43f (patch) | |
tree | 1712f24925c28f73979fba9d927b731868478f9e /gcc/multiple_target.c | |
parent | e3e8f22f78e8d3a3d639cf3fdec15fda9fa3f519 (diff) | |
download | gcc-861d9d5e6a67624e8e3c9d1cff013762a513b43f.zip gcc-861d9d5e6a67624e8e3c9d1cff013762a513b43f.tar.gz gcc-861d9d5e6a67624e8e3c9d1cff013762a513b43f.tar.bz2 |
Fix multiple target clones nodes (PR lto/66295).
2017-03-14 Martin Liska <mliska@suse.cz>
PR lto/66295
* multiple_target.c (expand_target_clones): Drop local.local
flag for default implementation.
2017-03-14 Martin Liska <mliska@suse.cz>
PR lto/66295
* gcc.dg/tree-prof/pr66295.c: New test.
From-SVN: r246119
Diffstat (limited to 'gcc/multiple_target.c')
-rw-r--r-- | gcc/multiple_target.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/multiple_target.c b/gcc/multiple_target.c index 7b735ae..4a835bb 100644 --- a/gcc/multiple_target.c +++ b/gcc/multiple_target.c @@ -327,6 +327,7 @@ expand_target_clones (struct cgraph_node *node, bool definition) tree attributes = make_attribute ("target", "default", DECL_ATTRIBUTES (node->decl)); DECL_ATTRIBUTES (node->decl) = attributes; + node->local.local = false; location_t saved_loc = input_location; input_location = DECL_SOURCE_LOCATION (node->decl); bool ret |