]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR target/27789 (attribute handling fallout from DECL_INITIAL changes)
authorDanny Smith <dannysmith@gcc.gnu.org>
Fri, 23 Jun 2006 08:25:33 +0000 (08:25 +0000)
committerDanny Smith <dannysmith@gcc.gnu.org>
Fri, 23 Jun 2006 08:25:33 +0000 (08:25 +0000)
commit4e2bb0a4b816a3dc9dbcd871c6ad8e9c678146a5
tree708dd600878c8dfe4cd831930197553a97ae4c13
parentecf7b86fb84c46a26473a1f9ad148e69189e6db4
re PR target/27789 (attribute handling fallout from DECL_INITIAL changes)

PR target/27789
* config/i386/winnt.c (ix86_handle_selectany_attribute): Move check
for initialization and setting of one_only flag to ...
(i386_pe_encode_section_info): ...here.
(i386_pe_dllimport_p): Check for DECL_DLLIMPORT_P also.
Recheck that the symbol has not been defined.

cp
* decl.c (start_decl): Check that dllimports are not initialized.

testsuite
* g++.dg/ext/dllimport4.C. Add more tests for invalid
initialization.

From-SVN: r114927
gcc/ChangeLog
gcc/config/i386/winnt.c
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/ext/dllimport4.C