Commit 8f4813c1 by Jakub Jelinek Committed by Jakub Jelinek

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
parent ecaad8d5
2019-01-06 Jakub Jelinek <jakub@redhat.com>
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 <hubicka@ucw.cz> 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
* gcc.dg/ipa/ipcp-2.c: Update bounds. * gcc.dg/ipa/ipcp-2.c: Update bounds.
......
...@@ -26,7 +26,9 @@ ATTR (alloc_align (1)) void* falloc_align_wchar (wchar_t); ...@@ -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 /* Using an enum might make sense in an API that limits the alignments
it accepts to just the set of the defined enumerators. */ it accepts to just the set of the defined enumerators. */
ATTR (alloc_align (1)) void* falloc_align_enum (enum A); ATTR (alloc_align (1)) void* falloc_align_enum (enum A);
#ifdef __SIZEOF_INT128__
ATTR (alloc_align (1)) void* falloc_align_int128 (__int128_t); ATTR (alloc_align (1)) void* falloc_align_int128 (__int128_t);
#endif
ATTR (alloc_align (1)) void* falloc_size_char (char); ATTR (alloc_align (1)) void* falloc_size_char (char);
...@@ -34,7 +36,9 @@ ATTR (alloc_size (1)) void* falloc_size_char16 (char16_t); ...@@ -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_char32 (char32_t);
ATTR (alloc_size (1)) void* falloc_size_wchar (wchar_t); ATTR (alloc_size (1)) void* falloc_size_wchar (wchar_t);
ATTR (alloc_size (1)) void* falloc_size_enum (enum A); ATTR (alloc_size (1)) void* falloc_size_enum (enum A);
#ifdef __SIZEOF_INT128__
ATTR (alloc_align (1)) void* falloc_size_int128 (__int128_t); ATTR (alloc_align (1)) void* falloc_size_int128 (__int128_t);
#endif
typedef struct { int i; } S; typedef struct { int i; } S;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment