OSDN Git Service

gcc/
authorhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 19 Feb 2009 15:22:28 +0000 (15:22 +0000)
committerhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 19 Feb 2009 15:22:28 +0000 (15:22 +0000)
commite30400535bbd10bec33efe091e7ebfad0fc3b21b
tree8c6c796708593865d482060ea12cf6acb211e49f
parentad0e7a06b41765300dd7b733156b28006dc6d6f5
gcc/

2009-02-19  H.J. Lu  <hongjiu.lu@intel.com>

PR c++/39188
* varasm.c (assemble_variable): Don't check DECL_NAME when
globalizing a variable.

gcc/cp/

2009-02-19  H.J. Lu  <hongjiu.lu@intel.com>

PR c++/39188
* cp-tree.h (maybe_commonize_var): New.

* decl.c (maybe_commonize_var): Make it extern.

* decl2.c (finish_anon_union): Call maybe_commonize_var.

gcc/testsuite/

2009-02-19  H.J. Lu  <hongjiu.lu@intel.com>

PR c++/39188
* g++.dg/abi/pr39188-1a.C: New.
* g++.dg/abi/pr39188-1b.C: Likewise.
* g++.dg/abi/pr39188-1.h: Likewise.
* g++.dg/abi/pr39188-2a.C: Likewise.
* g++.dg/abi/pr39188-2b.C: Likewise.
* g++.dg/abi/pr39188-2.h: Likewise.
* g++.dg/abi/pr39188-3a.C: Likewise.
* g++.dg/abi/pr39188-3b.C: Likewise.
* g++.dg/abi/pr39188-3.h: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@144297 138bc75d-0d04-0410-961f-82ee72b054a4
16 files changed:
gcc/ChangeLog
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/decl.c
gcc/cp/decl2.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/abi/pr39188-1.h [new file with mode: 0644]
gcc/testsuite/g++.dg/abi/pr39188-1a.C [new file with mode: 0644]
gcc/testsuite/g++.dg/abi/pr39188-1b.C [new file with mode: 0644]
gcc/testsuite/g++.dg/abi/pr39188-2.h [new file with mode: 0644]
gcc/testsuite/g++.dg/abi/pr39188-2a.C [new file with mode: 0644]
gcc/testsuite/g++.dg/abi/pr39188-2b.C [new file with mode: 0644]
gcc/testsuite/g++.dg/abi/pr39188-3.h [new file with mode: 0644]
gcc/testsuite/g++.dg/abi/pr39188-3a.C [new file with mode: 0644]
gcc/testsuite/g++.dg/abi/pr39188-3b.C [new file with mode: 0644]
gcc/varasm.c