[Bug target/27789] [4.2 Regression] attribute handling fallout from DECL_INITIAL changes

dannysmith at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Fri Jun 23 08:27:00 GMT 2006



------- 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



More information about the Gcc-bugs mailing list