Provide SPARCv9 MAXALIGN in gcc.target/sparc/attr-aligned.c (PR testsuite/88208)

PR testsuite/88208
	* gcc.target/sparc/attr-aligned.c (MAXALIGN) [__sparcv9 ||
	__arch64__]: Define.

From-SVN: r266825
This commit is contained in:
Rainer Orth 2018-12-05 14:16:08 +00:00 committed by Rainer Orth
parent 7c4e51c5ad
commit f7507b7c5a
2 changed files with 10 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2018-12-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
PR testsuite/88208
* gcc.target/sparc/attr-aligned.c (MAXALIGN) [__sparcv9 ||
__arch64__]: Define.
2018-12-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
* gcc.target/sparc/20181129-1.c: Compile with -std=c99.

View File

@ -10,7 +10,11 @@
#define HAS_ALIGN(f, n) __builtin_has_attribute (f, __aligned__ (n))
#define MINALIGN(N) ((N) < 4 ? 4 : (N))
#if defined(__sparcv9) || defined(__arch64__)
#define MAXALIGN 16
#else
#define MAXALIGN 8
#endif
/* No alignment specified. */
void f (void) { }