PR target/27789
authordannysmith <dannysmith@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 23 Jun 2006 08:25:33 +0000 (08:25 +0000)
committerdannysmith <dannysmith@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 23 Jun 2006 08:25:33 +0000 (08:25 +0000)
commit768d7d9705bea3c3e6dad8a8918613ad873a2ed1
tree708dd600878c8dfe4cd831930197553a97ae4c13
parent8c14f57e1b28bd847ad4f0991fdd5b843c6522c7
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@114927 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/config/i386/winnt.c
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/ext/dllimport4.C