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: [PATCH] Fastcall support on cygwin and mingw targets


On Wed, 13 Nov 2002, Casper Hornstrup wrote:

> Okay it can, though not as simple as:
> 
> if (lookup_attribute("fastcall", TYPE_ATTRIBUTES (*node))
>   && lookup_attribute("stdcall", TYPE_ATTRIBUTES (*node)))
> {
>   error(...)
> }
> 
> I have added checks for conflicts with stdcall and regparm attributes.

Another case that should give errors is that of two regparm attributes
with different arguments, which conflict.  (This actually hit the Linux
kernel: a function was declared with different regparm attributes by
mistake, and things broke when which attribute overrode the other changed
as a result of GCC changes.  A hard error would detect such problems
earlier.)

-- 
Joseph S. Myers
jsm28@cam.ac.uk


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