From f7507b7c5a5608bc67fe45803d5f0f50bebdc1b1 Mon Sep 17 00:00:00 2001 From: Rainer Orth Date: Wed, 5 Dec 2018 14:16:08 +0000 Subject: [PATCH] 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 --- gcc/testsuite/ChangeLog | 6 ++++++ gcc/testsuite/gcc.target/sparc/attr-aligned.c | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 4e5662c13d7..b95e7942d86 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2018-12-05 Rainer Orth + + PR testsuite/88208 + * gcc.target/sparc/attr-aligned.c (MAXALIGN) [__sparcv9 || + __arch64__]: Define. + 2018-12-05 Rainer Orth * gcc.target/sparc/20181129-1.c: Compile with -std=c99. diff --git a/gcc/testsuite/gcc.target/sparc/attr-aligned.c b/gcc/testsuite/gcc.target/sparc/attr-aligned.c index 7dc9b19b92b..7891b84a4a3 100644 --- a/gcc/testsuite/gcc.target/sparc/attr-aligned.c +++ b/gcc/testsuite/gcc.target/sparc/attr-aligned.c @@ -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) { } -- 2.30.2