re PR c/88363 (alloc_align attribute doesn't accept enumerated arguments)
authorJakub Jelinek <jakub@redhat.com>
Sun, 6 Jan 2019 10:25:46 +0000 (11:25 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Sun, 6 Jan 2019 10:25:46 +0000 (11:25 +0100)
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
gcc/testsuite/c-c++-common/attributes-4.c

index bbc65cb..f27b3a3 100644 (file)
@@ -1,3 +1,9 @@
+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>
 
        * gcc.dg/ipa/ipcp-2.c: Update bounds.
index d829a56..55661eb 100644 (file)
@@ -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;