This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [RFC PATCH] Add support for sparc compare-and-branch.
From: Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
Date: Mon, 15 Oct 2012 16:28:15 +0200
> David Miller <davem@davemloft.net> writes:
>
>> Could one of you help me get the solaris side correct? I made sure
>> that binutils accepts the same options for this stuff, that's why
>> I can unconditionally use '-xarch=sparc4' in the configure test.
>
> I assume this works because gas 2.22 had neither SPARC-T4 support nor
> did it accept -xarch=sparc4?
I have a mainline binutils build installed on my system which does
have support for all of these instructions, otherwise how would I have
been able to run the testsuite and see the cbcond instructions
working? :-)
>> diff --git a/gcc/configure.ac b/gcc/configure.ac
>> index b6c049b..9d2eb29 100644
>> --- a/gcc/configure.ac
>> +++ b/gcc/configure.ac
>> @@ -3501,6 +3501,24 @@ foo:
>> fnaddd %f10, %f12, %f14],,
>> [AC_DEFINE(HAVE_AS_FMAF_HPC_VIS3, 1,
>> [Define if your assembler supports FMAF, HPC, and VIS 3.0 instructions.])])
>> +
>> + gcc_GAS_CHECK_FEATURE([SPARC4 instructions],
>> + gcc_cv_as_sparc_fmaf,,
>
> Shouldn't reuse a cache variable here, but use
> e.g. gcc_cv_as_sparc_sparc4 instead.
Thanks for catching that.