Re: [PATCH] [gdb/testsuite] Fix gdb.arch/i386-avx.exp with clang

Pedro Alves
2021-11-05T12:55:51Z

On 2021-11-05 12:23, Tom de Vries via Gdb-patches wrote:

>> No, but in gdb/testsuite/lib/attribute.h we do setup a compatibility
>> macro for 'noclone', so there's definitely precedent for using
>> attributes that might not be supported everywhere.
>>
>
> Right, I'm aware of this, but that's a typical case where we have no
> portable alternative.

We actually do -- _Alignas is standard C11. This fixes the test as well:

_Alignas(32) v8sf_t data[] =