From: Richard Earnshaw <Richard.Earnshaw@foss.arm.com>
To: Jakub Jelinek <jakub@redhat.com>
Cc: Richard Biener <rguenther@suse.de>,
gcc-patches@gcc.gnu.org, Martin Jambor <mjambor@suse.de>,
Alan Lawrence <alan.lawrence@arm.com>
Subject: Re: [PATCH] Fix eipa_sra AAPCS issue (PR target/65956)
Date: Tue, 05 May 2015 14:33:00 -0000 [thread overview]
Message-ID: <5548D4A8.4070105@foss.arm.com> (raw)
In-Reply-To: <20150505142909.GP1751@tucnak.redhat.com>
On 05/05/15 15:29, Jakub Jelinek wrote:
> On Tue, May 05, 2015 at 02:20:43PM +0100, Richard Earnshaw wrote:
>> On 05/05/15 14:06, Jakub Jelinek wrote:
>>> On Tue, May 05, 2015 at 02:02:19PM +0100, Richard Earnshaw wrote:
>>>> In a literal sense, yes. However, even K&R & stdarg have standard
>>>> promotion and conversion rules (size < int => int, floats promoted to
>>>> double, etc). What are those rules for GCC's overaligned types (ie
>>>> where in the docs does it say what happens and how a back-end should
>>>> interpret them)? Shouldn't the mid-end be doing that work so as to
>>>
>>> For the middle-end, the TYPE_ALIGN info on expression types is considered
>>> useless, you can get there anything. There is no conversion rule to what
>>> you get for myalignedint + int, or (myalignedint) int, or (int)
>>> myalignedint, etc.
>>>
>>>> create a consistent view of the values passed into the back-end? It
>>>> seems to me that at present the back-end has to be psychic as to what is
>>>> really happening.
>>>
>>> No, the backend just shouldn't consider TYPE_ALIGN on the scalars, and it
>>> seems only arm ever looks at that.
>>>
>>
>> Nothing in the specification for TARGET_FUNCTION_ARG (or any of the
>> related functions) makes any mention of this...
>
> While this requirement isn't documented, it is clearly common sense or at
> least something any kind of testing would reveal immediately.
Then clearly no such tests exist in the testsuite :-(
R.
> And it is nothing broken recently (except that with the SRA changes it hits
> much more often), looking e.g. at GCC 3.2, I'm seeing that expand_call is on
> that testcase also called with pretty random TYPE_ALIGN on the argument
> types; we didn't have GIMPLE then, so it is nothing that GIMPLE brought in.
>
> Jakub
>
next prev parent reply other threads:[~2015-05-05 14:33 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 [this message]
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
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=5548D4A8.4070105@foss.arm.com \
--to=richard.earnshaw@foss.arm.com \
--cc=alan.lawrence@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).