This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH, rs6000] Add support to __builtin_cpu_supports() for two new HWCAP2 bits
- From: Peter Bergner <bergner at vnet dot ibm dot com>
- To: Segher Boessenkool <segher at kernel dot crashing dot org>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>, Tulio Magno Quites Machado Filho <tuliom at linux dot vnet dot ibm dot com>
- Date: Tue, 27 Jun 2017 10:55:53 -0500
- Subject: Re: [PATCH, rs6000] Add support to __builtin_cpu_supports() for two new HWCAP2 bits
- Authentication-results: sourceware.org; auth=none
- References: <9a27584c-0ee3-b1f0-62eb-2fff0a487058@vnet.ibm.com> <20170627155145.GA16550@gate.crashing.org>
On 6/27/17 10:51 AM, Segher Boessenkool wrote:
> On Mon, Jun 26, 2017 at 10:33:48PM -0500, Peter Bergner wrote:
>> Tulio added support for two new AT_HWCAP2 bits to GLIBC which have been
>> recently added to the kernel:
>>
>> https://www.sourceware.org/ml/libc-alpha/2017-06/msg00069.html
>>
>> This patch adds support for them to the __builtin_cpu_supports() builtin
>> function so we can test for them.
>>
>> Tested on powerpc64le-linux with no regressions. Is this ok for trunk?
>
> Okay.
>
> Could we use a shared (with glibc) header, or reduce duplication some
> other way?
Not really, since either GCC or GLIBC could be built with/against an
older version of the other package and if that package were the one
to have the defines, then we'd get a build error.
Peter