aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2011-03-17 13:25:23 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2011-03-17 13:25:23 +0000
commit0e1ee172e8c780d1b4720ee85690aeea73c6afbf (patch)
treeabde07e17fb6b6c92cab3d7819362f0c5173fb87
parentf8bce518af5367b22e543127f49e8fd970c3fc5e (diff)
downloadgcc-0e1ee172e8c780d1b4720ee85690aeea73c6afbf.zip
gcc-0e1ee172e8c780d1b4720ee85690aeea73c6afbf.tar.gz
gcc-0e1ee172e8c780d1b4720ee85690aeea73c6afbf.tar.bz2
re PR bootstrap/48148 (LTO bootstrap failed with bootstrap-profiled)
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. From-SVN: r171094
-rw-r--r--gcc/ChangeLog7
-rw-r--r--gcc/lto-cgraph.c2
2 files changed, 9 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index cfb20ed..d5a5592 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,12 @@
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.
+
+2011-03-17 Richard Guenther <rguenther@suse.de>
+
PR middle-end/48165
* tree-object-size.c (compute_object_offset): Properly return
the offset operand of MEM_REFs as sizetype.
diff --git a/gcc/lto-cgraph.c b/gcc/lto-cgraph.c
index ae49ae6..7c2582d 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);