This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
RE: [cft] rewrite i386 dllimport/dllexport
- From: Danny Smith <dannysmith at clear dot net dot nz>
- To: 'Richard Henderson' <rth at redhat dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Fri, 30 Mar 2007 18:12:46 +1200
- Subject: RE: [cft] rewrite i386 dllimport/dllexport
Richard Henderson wrote on Friday, 30 March 2007 9:57 a.m.
> > foo.c:3: warning: 'foo' redeclared without dllimport attribute after
> > being referenced with dll linkage
> > foo.c:3: internal compiler error: in
> > i386_pe_asm_output_aligned_decl_common, at config/i386/winnt.c:487
>
> Fixed by simply removing the assert. We'll get something random
> as the result, and the user will have to fix up their code. I'm
> not sure why we just warn here, instead of hard error.
MSVC++6 only emits a warning. However, it emits
a hard error in a C++ case like:
struct foo
{
__declspec (dllimport) static int bar;
}
int foo::bar = 0;
>
> Committed.
>
Thank you.
Danny
>
> r~
>