public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: "Joseph S. Myers" <jsm28@cam.ac.uk>
To: Casper Hornstrup <chorns@users.sourceforge.net>
Cc: <gcc-patches@gcc.gnu.org>
Subject: RE: [PATCH] Fastcall support on cygwin and mingw targets
Date: Wed, 13 Nov 2002 15:47:00 -0000	[thread overview]
Message-ID: <Pine.LNX.4.33.0211132345370.24302-100000@kern.srcf.societies.cam.ac.uk> (raw)
In-Reply-To: <004901c28b51$9903f360$0300000a@csiteoffice.csite.com>

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

  reply	other threads:[~2002-11-13 23:47 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-30 21:14 PATCH: Re: optimization/6162: gcc 3.0.4: certain i386 asm reloader ice Nathanael Nerode
2002-11-10  8:17 ` [PATCH] Fastcall support on cygwin and mingw targets Casper Hornstrup
2002-11-10 17:50   ` Fergus Henderson
2002-11-10 19:10     ` Christopher Faylor
2002-11-11 12:47     ` Casper Hornstrup
2002-11-11 12:27       ` Fergus Henderson
2002-11-12 10:45         ` Casper Hornstrup
2002-11-12 22:08           ` Fergus Henderson
2002-11-13 12:17             ` Casper Hornstrup
2002-11-13 15:47               ` Joseph S. Myers [this message]
2002-11-13 20:27               ` Fergus Henderson
2002-11-14  0:31                 ` Joseph S. Myers
2002-11-14  8:28                 ` Casper Hornstrup
2002-11-25 15:39                   ` Richard Henderson
2002-11-27 19:52                     ` Casper Hornstrup
2002-11-27 21:15                       ` Casper Hornstrup
2002-11-27 22:19                       ` Richard Henderson
2002-11-28  2:00                         ` Richard Henderson
2002-12-02 13:25                     ` Casper Hornstrup
2002-12-02 13:48                       ` Richard Henderson
2002-12-03 13:52                         ` Casper Hornstrup
2002-12-03 16:32                           ` Richard Henderson
2002-12-08  4:08                             ` Casper Hornstrup
2002-12-19 14:01                               ` Richard Henderson
2002-12-19 14:07                                 ` Casper Hornstrup
2002-11-20 11:03 Casper Hornstrup

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.LNX.4.33.0211132345370.24302-100000@kern.srcf.societies.cam.ac.uk \
    --to=jsm28@cam.ac.uk \
    --cc=chorns@users.sourceforge.net \
    --cc=gcc-patches@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).