mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-11 10:40:47 +08:00
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:
parent
7c4e51c5ad
commit
f7507b7c5a
@ -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.
|
||||
|
@ -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) { }
|
||||
|
Loading…
x
Reference in New Issue
Block a user