This is the mail archive of the cygwin-apps mailing list for the Cygwin 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: GCC4 status.

Dave Korn wrote:
> Corinna Vinschen wrote:
> > So why does it do that at all: "previous dllimport ignored"?
> > It shouldn't do that.  The dllimport should have precedence, IMHO.
>   I don't know why it does that, it's just the behaviour of 
> vanilla upstream
> GCC.  I think it might be important, and have a vague memory 
> of some PR
> relating to this in the bugzilla.  I'll take a closer look.

It does that because native MS compiler does that as do/did other Windows compilers (I
think MSVC actually says "dllexport assumed").  The behaviour is due to a patch committed
in gcc 3.0 development but was also in the sources used by cygwin and mingw in 2.95.3
days.  There are several testsuite cases that expect this behaviour.

In olden (pre -funit-at-a-time) days it was critical because without the override
semantics we would sometimes get a function being used as a dllimport than later in the
same TU it would find a definition and the RTL generation would blow up. 

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