LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
From: Jakub Jelinek <jakub@redhat.com>
To: Jeremy Fitzhardinge <jeremy@goop.org>
Cc: Arjan van de Ven <arjan@infradead.org>, Andi Kleen <ak@muc.de>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: -freg-struct-return?
Date: Thu, 22 Feb 2007 04:50:39 -0500 [thread overview]
Message-ID: <20070222095039.GR10425@devserv.devel.redhat.com> (raw)
In-Reply-To: <45DD4FA0.5030205@goop.org>
On Thu, Feb 22, 2007 at 12:09:04AM -0800, Jeremy Fitzhardinge wrote:
> Arjan van de Ven wrote:
> > Do we know how many gcc bugs this has? (regparm used to have many)
> > other than that.. sounds like a win...
> >
>
> The documentation suggests that its the preferred mode of operation, and
> that its the default on platforms where gcc is the primary compiler. So
> the fact that it isn't for Linux suggests either an oversight or that it
> is actually broken...
It is used for Linux on many architectures (x86_64, sparc64, ia64,
ppc{,64}, arm, sh, m68k to name just a few), but it is an ABI decision,
so e.g. on i386 is not used by default as the ABI mandates structs/unions
are returned in memory.
Jakub
next prev parent reply other threads:[~2007-02-22 9:53 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-02-22 1:28 -freg-struct-return? Jeremy Fitzhardinge
2007-02-22 8:04 ` -freg-struct-return? Arjan van de Ven
2007-02-22 8:09 ` -freg-struct-return? Jeremy Fitzhardinge
2007-02-22 8:15 ` -freg-struct-return? Arjan van de Ven
2007-02-22 8:30 ` -freg-struct-return? Jeremy Fitzhardinge
2007-02-22 8:37 ` -freg-struct-return? Ingo Molnar
2007-02-22 8:38 ` [patch] x86: add -freg-struct-return to CFLAGS Ingo Molnar
2007-02-22 11:23 ` Andi Kleen
2007-02-22 11:27 ` Arjan van de Ven
2007-02-22 18:35 ` Adrian Bunk
2007-02-22 22:31 ` H. Peter Anvin
2007-02-22 9:50 ` Jakub Jelinek [this message]
2007-02-22 11:22 ` -freg-struct-return? Andi Kleen
2007-02-22 16:42 ` -freg-struct-return? H. Peter Anvin
2007-02-22 17:39 ` -freg-struct-return? Jeremy Fitzhardinge
2007-02-22 18:36 ` -freg-struct-return? Andi Kleen
2007-02-22 18:48 ` -freg-struct-return? H. Peter Anvin
2007-02-23 0:21 ` -freg-struct-return? Andi Kleen
2007-02-22 18:56 ` -freg-struct-return? Jan Engelhardt
2007-02-22 19:12 ` -freg-struct-return? H. Peter Anvin
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=20070222095039.GR10425@devserv.devel.redhat.com \
--to=jakub@redhat.com \
--cc=ak@muc.de \
--cc=arjan@infradead.org \
--cc=jeremy@goop.org \
--cc=linux-kernel@vger.kernel.org \
--subject='Re: -freg-struct-return?' \
/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
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 NNTP newsgroup(s).