This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
RE: [AARCH64] [PATCH 2/3] AArch64 Port
- From: "Sofiane Naci" <sofiane dot naci at arm dot com>
- To: "'Joseph S. Myers'" <joseph at codesourcery dot com>, "Marcus Shawcroft" <Marcus dot Shawcroft at arm dot com>
- Cc: <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 21 Aug 2012 16:10:18 +0100
- Subject: RE: [AARCH64] [PATCH 2/3] AArch64 Port
- References: <4FBF67BE.1090301@arm.com> <4FBF6866.1080904@arm.com> <4FBF6AAB.7090407@arm.com> <Pine.LNX.4.64.1205251423350.5954@digraph.polyomino.org.uk>
> -----Original Message-----
> From: gcc-patches-owner@gcc.gnu.org [mailto:gcc-patches-
> owner@gcc.gnu.org] On Behalf Of Joseph S. Myers
> Sent: 25 May 2012 15:24
> To: Marcus Shawcroft
> Cc: gcc-patches@gcc.gnu.org
> Subject: Re: [AARCH64] [PATCH 2/3] AArch64 Port
>
> On Fri, 25 May 2012, Marcus Shawcroft wrote:
>
> > Index: gcc/testsuite/gcc.target/aarch64/aapcs64/func-ret-4.x
> > ===================================================================
> > --- gcc/testsuite/gcc.target/aarch64/aapcs64/func-ret-4.x (revision
> 0)
> > +++ gcc/testsuite/gcc.target/aarch64/aapcs64/func-ret-4.x (revision
> 0)
> > @@ -0,0 +1,5 @@
> > +if { [istarget aarch64_be-*-*] } then {
> > + return 1
> > +}
> > +
> > +return 0
>
> This isn't a suitable way of enabling a test only for one endianness,
> since a test may be run with -mbig-endian or -mlittle-endian with a
> compiler defaulting to the other endianness. You need to test an
> effective-target keyword instead.
>
> > Index: gcc/testsuite/gcc.target/aarch64/aapcs64/func-ret-3.x
> > ===================================================================
> > --- gcc/testsuite/gcc.target/aarch64/aapcs64/func-ret-3.x (revision
> 0)
> > +++ gcc/testsuite/gcc.target/aarch64/aapcs64/func-ret-3.x (revision
> 0)
> > @@ -0,0 +1,5 @@
> > +if { [istarget aarch64_be-*-*] } then {
> > + return 1
> > +}
> > +
> > +return 0
>
> Likewise.
Thanks. This is now fixed in:
r190482 | sofiane | 2012-08-17 16:02:20 +0100 (Fri, 17 Aug 2012) | 9 lines
[AArch64] Use effective-target to check for big endian
Sofiane