diff options
author | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-03-17 13:25:23 +0000 |
---|---|---|
committer | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-03-17 13:25:23 +0000 |
commit | 5e9e654366f72b5e46b48b032cbb8431db0cd9ae (patch) | |
tree | abde07e17fb6b6c92cab3d7819362f0c5173fb87 /gcc/lto-cgraph.c | |
parent | c5c23f2773beb7ecb2eb089c1904d635bf38d6aa (diff) | |
download | gcc-5e9e654366f72b5e46b48b032cbb8431db0cd9ae.tar.gz |
2011-03-17 Richard Guenther <rguenther@suse.de>
PR bootstrap/48148
* lto-cgraph.c (input_overwrite_node): Clear the abstract
origin for decls in other ltrans units.
(input_varpool_node): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@171094 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/lto-cgraph.c')
-rw-r--r-- | gcc/lto-cgraph.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/lto-cgraph.c b/gcc/lto-cgraph.c index ae49ae6543f..7c2582de7be 100644 --- a/gcc/lto-cgraph.c +++ b/gcc/lto-cgraph.c @@ -975,6 +975,7 @@ input_overwrite_node (struct lto_file_decl_data *file_data, || node->clone_of->decl != node->decl)) { DECL_EXTERNAL (node->decl) = 1; + DECL_ABSTRACT_ORIGIN (node->decl) = NULL_TREE; TREE_STATIC (node->decl) = 0; } node->alias = bp_unpack_value (bp, 1); @@ -1146,6 +1147,7 @@ input_varpool_node (struct lto_file_decl_data *file_data, if (node->in_other_partition) { DECL_EXTERNAL (node->decl) = 1; + DECL_ABSTRACT_ORIGIN (node->decl) = NULL_TREE; TREE_STATIC (node->decl) = 0; } aliases_p = bp_unpack_value (&bp, 1); |