[Bug target/56975] [regression] dllimport broken on i686-pc-cygwin

ktietz at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Apr 16 09:37:00 GMT 2013


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56975

Kai Tietz <ktietz at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ktietz at gcc dot gnu.org

--- Comment #1 from Kai Tietz <ktietz at gcc dot gnu.org> 2013-04-16 09:37:38 UTC ---
Hmm, as this bug seems not to happen for mingw 32-bit, it might be related to
definition of DEFAULT_ABI for 32-bit.  Does it help to set in cygming.h header
the line '#define DEFAULT_ABI (TARGET_64BIT ? MS_ABI : SYSV_ABI)' to '#define
DEFAULT_ABI (TARGET_64BIT ? MS_ABI : MS_ABI)' ?
If so, we need an new definition to indicate pe-coff ABI instead.  At some
places we are using here check DEFAULT_ABI == MS_ABI etc, which might cause for
32-bit here the issue.  See for example the code in predicate.md, i386.c, etc.



More information about the Gcc-bugs mailing list