testsuite: Tweak gcc.dg/attr-aligned.c for CRIS
commitdc1be3eb33c7f37ac45ad0ccf5be063134a513be
authorHans-Peter Nilsson <hp@axis.com>
Thu, 16 Feb 2023 19:21:50 +0000 (16 20:21 +0100)
committerHans-Peter Nilsson <hp@bitrange.com>
Fri, 3 Mar 2023 03:32:12 +0000 (3 04:32 +0100)
tree76ba79cffbea37126770e4fe557957c7ffff9ddc
parent929c6b8cd12a3bd338a4c250274a9d86da5b2ea7
testsuite: Tweak gcc.dg/attr-aligned.c for CRIS

tm.texi says for BIGGEST_ALIGNMENT (from which
__BIGGEST_ALIGNMENT__ is derived): "Biggest alignment that
any data type can require on this machine, in bits."

That is, using that value might be too strict for alignment
of *functions* and CRIS requires at least 16-bit alignment
for functions.  But, one purpose of the test is to test that
alignment can be set to a large but valid value, so pick
512, which has some use as a historically required alignment
for certain I/O descriptors.

* gcc.dg/attr-aligned.c: Adjust comment for ALIGN_MAX_STATIC.
(ALIGN_MAX_STATIC): Set to 512 for CRIS.
gcc/testsuite/gcc.dg/attr-aligned.c