public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "hjl at lucon dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/34001] Incorrect x86 fastcall behavior
Date: Tue, 27 Nov 2007 02:36:00 -0000 [thread overview]
Message-ID: <20071127023601.5695.qmail@sourceware.org> (raw)
In-Reply-To: <bug-34001-15308@http.gcc.gnu.org/bugzilla/>
------- Comment #7 from hjl at lucon dot org 2007-11-27 02:36 -------
(In reply to comment #6)
> We have changed fastcall behavior from gcc 3.4 to 4.1. For
>
> ---
> #define FASTCALL __attribute((fastcall))
>
> double FASTCALL f_dii( double p1d, int p2i, int p3i ){ return p1d +
> (double)p2
> i + (double)p3i; }
>
> int test_x;
> int test_y;
> double test_d1;
>
> void caller( void ){
> f_dii( test_d1, test_x, test_y );
> }
> ---
>
> Gcc 3.4 doesn't pass the first 2 integral parameters in ecx/edx and gcc
> 4.1 does.
>
This patch
http://gcc.gnu.org/ml/gcc-patches/2005-01/msg00541.html
fixes this fast call bug by changing the abi.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34001
next prev parent reply other threads:[~2007-11-27 2:36 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-05 23:40 [Bug c/34001] New: Incorrect __attribute__ " zia at aracnet dot com
2007-11-05 23:58 ` [Bug target/34001] " pinskia at gcc dot gnu dot org
2007-11-08 17:12 ` hjl at lucon dot org
2007-11-09 16:55 ` hjl at lucon dot org
2007-11-09 17:34 ` hjl at lucon dot org
2007-11-12 3:27 ` [Bug target/34001] Incorrect x86 " hjl at lucon dot org
2007-11-16 4:52 ` hjl at lucon dot org
2007-11-26 23:19 ` hjl at lucon dot org
2007-11-27 2:36 ` hjl at lucon dot org [this message]
2007-11-28 1:20 ` hjl at gcc dot gnu dot org
2007-11-28 1:25 ` hjl at lucon dot org
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=20071127023601.5695.qmail@sourceware.org \
--to=gcc-bugzilla@gcc.gnu.org \
--cc=gcc-bugs@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).