From: Jakub Jelinek Date: Sun, 6 Jan 2019 10:25:46 +0000 (+0100) Subject: re PR c/88363 (alloc_align attribute doesn't accept enumerated arguments) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8f4813c1b7e2e567dbeeb5f46ce3ecd7c702bef7;p=gcc.git 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 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index bbc65cb1673..f27b3a3e538 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 d829a569f13..55661eb792c 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;