public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Alan Lawrence <alan.lawrence@arm.com>
To: Richard Earnshaw <Richard.Earnshaw@foss.arm.com>
Cc: Jakub Jelinek <jakub@redhat.com>,
	Richard Biener <rguenther@suse.de>,
	 "gcc-patches@gcc.gnu.org" <gcc-patches@gcc.gnu.org>,
	Martin Jambor <mjambor@suse.de>
Subject: Re: [PATCH] Fix eipa_sra AAPCS issue (PR target/65956)
Date: Tue, 02 Jun 2015 16:51:00 -0000	[thread overview]
Message-ID: <556DD957.4080405@arm.com> (raw)
In-Reply-To: <556DD56A.9060107@foss.arm.com>

Richard Earnshaw wrote:
> On 01/06/15 13:07, Jakub Jelinek wrote:
>> On Thu, May 07, 2015 at 12:16:32PM +0100, Alan Lawrence wrote:
>>> So for my two cents, or perhaps three:
>> Any progress on this PR?
>> A P1 bug that affects several packages stalled for a month isn't a very good
>> thing... (not to mention broken profiledbootstrap on ARM due to the same
>> issue).
>> I've checked and llvm on ARM ignores the alignment on the scalar
>> arguments...
>>
>> 	Jakub
>>
> 
> We're working on some updates to the ABI documents.  If we're going to
> break ABI compatibility, even in some corner cases, it would make sense
> to only do this once.

One question is whether to treat structs differently from scalars in the ABI 
specification. Structs raise lots of corner cases! I notice the following 
oddity, and wonder if anyone can shed any light on this:

typedef __attribute__((aligned(8))) struct { int x; int y; } foo;
typedef struct __attribute__((aligned(8))) { int x; int y; } bar;
typedef struct { int x; int y; } __attribute__((aligned(8))) baz;
typedef struct { int x; int y; } qux __attribute__((aligned(8)));

create typedefs (foo, bar, baz, qux) all with alignment 8, as expected. However, 
the TYPE_MAIN_VARIANT (an anonymous struct type) has alignment 4 for foo and qux 
(so the attribute has been applied only to the typedef), but alignment 8 for bar 
and baz (i.e. the attribute has been applied to the underlying struct).

--Alan


  reply	other threads:[~2015-06-02 16:27 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-02  8:24 Jakub Jelinek
2015-05-04  8:11 ` Richard Biener
2015-05-04 15:00   ` Jakub Jelinek
2015-05-05  7:32     ` Jakub Jelinek
2015-05-05 10:54       ` Richard Earnshaw
2015-05-05 11:02         ` Richard Earnshaw
2015-05-05 12:30           ` Jakub Jelinek
2015-05-05 12:37           ` Richard Biener
2015-05-05 12:45             ` Richard Earnshaw
2015-05-05 12:46             ` Richard Earnshaw
2015-05-05 12:50               ` Richard Earnshaw
2015-05-05 12:54                 ` Jakub Jelinek
2015-05-05 13:02                   ` Richard Earnshaw
2015-05-05 13:07                     ` Jakub Jelinek
2015-05-05 13:20                       ` Richard Earnshaw
2015-05-05 14:29                         ` Jakub Jelinek
2015-05-05 14:33                           ` Richard Earnshaw
2015-05-05 14:34                             ` Richard Earnshaw
2015-05-05 18:07                               ` Richard Biener
2015-05-06 14:04                                 ` Richard Earnshaw
2015-05-07 11:16                                 ` Alan Lawrence
2015-05-07 11:30                                   ` Jakub Jelinek
2015-06-01 12:08                                   ` Jakub Jelinek
2015-06-02 16:21                                     ` Richard Earnshaw
2015-06-02 16:51                                       ` Alan Lawrence [this message]
2015-05-05 14:06                 ` Richard Biener
2015-05-05 14:22                   ` Richard Earnshaw
2015-05-05 14:26       ` Jakub Jelinek

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=556DD957.4080405@arm.com \
    --to=alan.lawrence@arm.com \
    --cc=Richard.Earnshaw@foss.arm.com \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=jakub@redhat.com \
    --cc=mjambor@suse.de \
    --cc=rguenther@suse.de \
    /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).