aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2012-04-20 17:18:39 +0200
committerJan Hubicka <hubicka@gcc.gnu.org>2012-04-20 15:18:39 +0000
commitb7262828c0cb62e9c66bdefeb306a9ccbf9eb79f (patch)
tree15f854cb09bdea71800220fbfe903d2c610826a0 /gcc
parentc522573e048c698f1fdcf2442e3a88648e9006bf (diff)
downloadgcc-b7262828c0cb62e9c66bdefeb306a9ccbf9eb79f.zip
gcc-b7262828c0cb62e9c66bdefeb306a9ccbf9eb79f.tar.gz
gcc-b7262828c0cb62e9c66bdefeb306a9ccbf9eb79f.tar.bz2
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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/cp/ChangeLog6
-rw-r--r--gcc/cp/decl2.c2
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)