This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/27789] [4.2 Regression] attribute handling fallout from DECL_INITIAL changes
- From: "dannysmith at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 23 Jun 2006 08:25:44 -0000
- Subject: [Bug target/27789] [4.2 Regression] attribute handling fallout from DECL_INITIAL changes
- References: <bug-27789-4066@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #4 from dannysmith at gcc dot gnu dot org 2006-06-23 08:25 -------
Subject: Bug 27789
Author: dannysmith
Date: Fri Jun 23 08:25:33 2006
New Revision: 114927
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=114927
Log:
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.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/config/i386/winnt.c
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/decl.c
trunk/gcc/testsuite/ChangeLog
trunk/gcc/testsuite/g++.dg/ext/dllimport4.C
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27789