This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]