This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
RE: [PATCH] Fastcall support on cygwin and mingw targets
- From: "Joseph S. Myers" <jsm28 at cam dot ac dot uk>
- To: Casper Hornstrup <chorns at users dot sourceforge dot net>
- Cc: <gcc-patches at gcc dot gnu dot org>
- Date: Wed, 13 Nov 2002 23:47:54 +0000 (GMT)
- Subject: 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