This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug ada/20515] "stdcall" imports are not handled correctly
- From: "p dot obry at wanadoo dot fr" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 19 Mar 2005 14:52:09 -0000
- Subject: [Bug ada/20515] "stdcall" imports are not handled correctly
- References: <20050317091946.20515.sbellon@sbellon.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From p dot obry at wanadoo dot fr 2005-03-19 14:52 -------
I had a closer look.
In GCC 3.4.x we have TARGET_IS_PE_COFF. So changing _WIN32 by
TARGET_IS_PE_COFF is ok.
In GCC 4.x we have:
#define TARGET_DLLIMPORT_DECL_ATTRIBUTES 1
So instead of using TARGET_IS_PE_COFF we can use TARGET_DLLIMPORT_DECL_ATTRIBUTES.
So I propose to keep the #ifdef as it is today and
use TARGET_IS_PE_COFF on 3.4 and TARGET_DLLIMPORT_DECL_ATTRIBUTES
on 4.0. Does this looks fine to you Danny ?
Pascal.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20515