aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/varpool.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 94bd545..e6f59c4 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+2012-05-11 Jan Hubicka <jh@suse.cz>
+
+ PR bootstrap/53300
+ * varpool.c (varpool_assemble_decl): Also output constat pool entries
+ that output_constant_pool missed.
+
2012-05-11 Mingjie Xing <mingjie.xing@gmail.com>
* config/mips/t-vxworks: Change MUTLILIB_EXTRA_OPTS to
diff --git a/gcc/varpool.c b/gcc/varpool.c
index 5ab294b..ef02567 100644
--- a/gcc/varpool.c
+++ b/gcc/varpool.c
@@ -282,7 +282,7 @@ varpool_assemble_decl (struct varpool_node *node)
/* Constant pool is output from RTL land when the reference
survive till this level. */
- if (DECL_IN_CONSTANT_POOL (decl))
+ if (DECL_IN_CONSTANT_POOL (decl) && TREE_ASM_WRITTEN (decl))
return false;
/* Decls with VALUE_EXPR should not be in the varpool at all. They