From b7262828c0cb62e9c66bdefeb306a9ccbf9eb79f Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Fri, 20 Apr 2012 17:18:39 +0200 Subject: [PATCH] re PR bootstrap/53042 (AIX bootstrap: cgraph symbol table error) PR target/53042 * decl2.c (maybe_emit_vtables): Do not initialize same_comdat_group list when target has no support for it. From-SVN: r186627 --- gcc/cp/ChangeLog | 6 ++++++ gcc/cp/decl2.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 1bed03b7394..e9af16c9f0a 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,9 @@ +2012-04-20 Jan Hubicka + + 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 * error.c (pedwarn_cxx98): Move va_end call after user diff --git a/gcc/cp/decl2.c b/gcc/cp/decl2.c index a190aee5d57..666669ef506 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) -- 2.30.2