re PR c++/9738 ([mingw] Internal compiler error in rest_of_compilation, at toplev...
authorDanny Smith <dannysmith@users.sourceforge.net>
Wed, 21 May 2003 00:33:27 +0000 (00:33 +0000)
committerDanny Smith <dannysmith@gcc.gnu.org>
Wed, 21 May 2003 00:33:27 +0000 (00:33 +0000)
commit16e31964115f929a2f68fbce36cff148849b52bd
treea66c513063ee090ac05335ce24377f1f8af6a567
parent36f72608a3270bef01a188cde1da10e6a98651e3
re PR c++/9738 ([mingw] Internal compiler error in rest_of_compilation, at toplev.c: 3491)

PR c++/9738

* config/i386/winnt.c (i386_pe_encode_section_info): Enable
even if not first.

* cp/decl.c (duplicate_decls): Re-invoke make_decl_rtl
if the old decl had instantiated DECL_RTL.
(Base on Richard Henderson 2003-05-13 patch to c-decl.c).

* testsuite/g++.dg/ext/dllimport2.C: New file.
* testsuite/g++.dg/ext/dllimport3.C: New file.

From-SVN: r67049
gcc/ChangeLog
gcc/config/i386/winnt.c
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/ext/dllimport2.C [new file with mode: 0644]
gcc/testsuite/g++.dg/ext/dllimport3.C [new file with mode: 0644]