This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [testsuite] Fix up execute/pr38051.c
- From: Janis Johnson <janis187 at us dot ibm dot com>
- To: Jakub Jelinek <jakub at redhat dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Tue, 18 Nov 2008 10:19:38 -0800
- Subject: Re: [testsuite] Fix up execute/pr38051.c
- References: <20081118180937.GR17496@tyan-ft48-01.lab.bos.redhat.com>
- Reply-to: janis187 at us dot ibm dot com
On Tue, 2008-11-18 at 19:09 +0100, Jakub Jelinek wrote:
> Hi!
>
> This testcase was distilled from preprocessed glibc memcmp.c,
> and is little endian specific, in addition to requiring sizeof (long)
> the same as sizeof (void *).
>
> The following patch checks that before running it, and also stops
> relying on aligned attribute for targets that don't support such alignment.
>
> Ok for trunk?
>
> 2008-11-18 Jakub Jelinek <jakub@redhat.com>
>
> PR tree-optimization/38051
> * gcc.c-torture/execute/pr38051.c (buf): Remove aligned attribute.
> (buf2): Removed.
> (main): Only run on little endian targets with
> sizeof (long) == sizeof (void *). Use just one buffer, align the
> pointers at runtime.
OK.
Janis