This is the mail archive of the gcc-bugs@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]

[Bug ada/20515] "stdcall" imports are not handled correctly


------- Additional Comments From p dot obry at wanadoo dot fr  2005-06-27 18:50 -------
Danny,

(In reply to comment #10)
> The patch that was committed to fix this is wrong.
> 
> #ifdef TARGET_DLLIMPORT_DECL_ATTRIBUTES is always true. It is defined to 0 for 
> non-dll targets in defaults.h.

I see! Would #if instead of #ifdef fix the problem. I'm not a cross expert, so
this is why I got this wrong.

> Why not make this a runtime switch as suggested earlier, rather than a 
> preprocessor switch? 

Maybe it is better to have this checked statically if possible.

What do you think ?

Pascal.

-- 


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


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