diff options
-rw-r--r-- | gcc/cp/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/cp/decl2.c | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 1bed03b..e9af16c 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,9 @@ +2012-04-20 Jan Hubicka <jh@suse.cz> + + PR target/53042 + * decl2.c (maybe_emit_vtables): Do not initialize same_comdat_group + list when target has no support for it. + 2012-04-20 Michael Matz <matz@suse.de> * error.c (pedwarn_cxx98): Move va_end call after user diff --git a/gcc/cp/decl2.c b/gcc/cp/decl2.c index a190aee..666669e 100644 --- a/gcc/cp/decl2.c +++ b/gcc/cp/decl2.c @@ -1894,7 +1894,7 @@ maybe_emit_vtables (tree ctype) actually marking the variable as written. */ if (flag_syntax_only) TREE_ASM_WRITTEN (vtbl) = 1; - else if (DECL_COMDAT (vtbl)) + else if (DECL_ONE_ONLY (vtbl)) { current = varpool_node (vtbl); if (last) |