This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [testsuite] Fix up execute/pr38051.c


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]