summaryrefslogtreecommitdiff
path: root/gcc/config/i386
diff options
context:
space:
mode:
authorDanny Smith <dannysmith@users.sourceforge.net>2003-05-21 00:33:27 +0000
committerDanny Smith <dannysmith@gcc.gnu.org>2003-05-21 00:33:27 +0000
commit16e31964115f929a2f68fbce36cff148849b52bd (patch)
treea66c513063ee090ac05335ce24377f1f8af6a567 /gcc/config/i386
parent36f72608a3270bef01a188cde1da10e6a98651e3 (diff)
downloadgcc-16e31964115f929a2f68fbce36cff148849b52bd.tar.gz
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
Diffstat (limited to 'gcc/config/i386')
-rw-r--r--gcc/config/i386/winnt.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/gcc/config/i386/winnt.c b/gcc/config/i386/winnt.c
index c2eac3ac7e2..04f5cedb036 100644
--- a/gcc/config/i386/winnt.c
+++ b/gcc/config/i386/winnt.c
@@ -427,9 +427,6 @@ i386_pe_encode_section_info (decl, rtl, first)
rtx rtl;
int first;
{
- if (!first)
- return;
-
default_encode_section_info (decl, rtl, first);
if (TREE_CODE (decl) == FUNCTION_DECL)
@@ -445,7 +442,8 @@ i386_pe_encode_section_info (decl, rtl, first)
}
/* Mark the decl so we can tell from the rtl whether the object is
- dllexport'd or dllimport'd. */
+ dllexport'd or dllimport'd. This also handles dllexport/dllimport
+ override semantics. */
if (i386_pe_dllexport_p (decl))
i386_pe_mark_dllexport (decl);