From 8f4813c1b7e2e567dbeeb5f46ce3ecd7c702bef7 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Sun, 6 Jan 2019 11:25:46 +0100 Subject: [PATCH] re PR c/88363 (alloc_align attribute doesn't accept enumerated arguments) PR c/88363 * c-c++-common/attributes-4.c (falloc_align_int128, falloc_size_int128): Guard with #ifdef __SIZEOF_INT128__. From-SVN: r267608 --- gcc/testsuite/ChangeLog | 6 ++++++ gcc/testsuite/c-c++-common/attributes-4.c | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index bbc65cb..f27b3a3 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2019-01-06 Jakub Jelinek + + PR c/88363 + * c-c++-common/attributes-4.c (falloc_align_int128, + falloc_size_int128): Guard with #ifdef __SIZEOF_INT128__. + 2019-01-05 Jan Hubicka * gcc.dg/ipa/ipcp-2.c: Update bounds. diff --git a/gcc/testsuite/c-c++-common/attributes-4.c b/gcc/testsuite/c-c++-common/attributes-4.c index d829a56..55661eb 100644 --- a/gcc/testsuite/c-c++-common/attributes-4.c +++ b/gcc/testsuite/c-c++-common/attributes-4.c @@ -26,7 +26,9 @@ ATTR (alloc_align (1)) void* falloc_align_wchar (wchar_t); /* Using an enum might make sense in an API that limits the alignments it accepts to just the set of the defined enumerators. */ ATTR (alloc_align (1)) void* falloc_align_enum (enum A); +#ifdef __SIZEOF_INT128__ ATTR (alloc_align (1)) void* falloc_align_int128 (__int128_t); +#endif ATTR (alloc_align (1)) void* falloc_size_char (char); @@ -34,7 +36,9 @@ ATTR (alloc_size (1)) void* falloc_size_char16 (char16_t); ATTR (alloc_size (1)) void* falloc_size_char32 (char32_t); ATTR (alloc_size (1)) void* falloc_size_wchar (wchar_t); ATTR (alloc_size (1)) void* falloc_size_enum (enum A); +#ifdef __SIZEOF_INT128__ ATTR (alloc_align (1)) void* falloc_size_int128 (__int128_t); +#endif typedef struct { int i; } S; -- 2.7.4