diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 94bd5450cb9..e6f59c48457 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2012-05-11 Jan Hubicka + + PR bootstrap/53300 + * varpool.c (varpool_assemble_decl): Also output constat pool entries + that output_constant_pool missed. + 2012-05-11 Mingjie Xing * config/mips/t-vxworks: Change MUTLILIB_EXTRA_OPTS to diff --git a/gcc/varpool.c b/gcc/varpool.c index 5ab294bcd16..ef025670125 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