[PATCH]: Fix LTO testsuite case on sparc
David Miller
davem@davemloft.net
Sat Mar 13 20:25:00 GMT 2010
From: Jakub Jelinek <jakub@redhat.com>
Date: Sat, 13 Mar 2010 08:41:38 +0100
> On Fri, Mar 12, 2010 at 03:47:29PM -0800, David Miller wrote:
>>
>> Like other tests that want to link against the __sync_* primitives, we
>> have to force "-mcpu=v9" on sparc to make sure those symbols will
>> actually be there.
>
> This should be instead
> /* { dg-require-effective-target sync_int_long } */
> IMNSHO.
That won't work.
The LTO test framework only supports a tiny subset of
the usual dg-* expressions, not all of them.
lto.exp explicitly checks the options specified and only
accepts ones that it knows about.
I checked all of this out before writing my patch Jakub.
:-)
More information about the Gcc-patches
mailing list