]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[Darwin, PPC, testsuite] Fix darwin-bool-1.c.
authorIain Sandoe <iain@sandoe.co.uk>
Thu, 5 Sep 2019 19:37:30 +0000 (19:37 +0000)
committerIain Sandoe <iains@gcc.gnu.org>
Thu, 5 Sep 2019 19:37:30 +0000 (19:37 +0000)
This test is failing because of a pedantic warning that is unrelated to the
purpose of the test. Fixed by suppressing that warning.

2019-09-05  Iain Sandoe  <iain@sandoe.co.uk>

Backport from mainline.
2019-06-22  Iain Sandoe  <iain@sandoe.co.uk>

* gcc.target/powerpc/darwin-bool-1.c: Suppress the pedantic
warning about _Bool.

From-SVN: r275434

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/powerpc/darwin-bool-1.c

index a93dbf908b5a072cfbd1095abf404fc18ceff3e4..e9a5bc4a2067ab9e8d0631c54154841ce26d802d 100644 (file)
@@ -1,3 +1,11 @@
+2019-09-05  Iain Sandoe  <iain@sandoe.co.uk>
+
+       Backport from mainline.
+       2019-06-22  Iain Sandoe  <iain@sandoe.co.uk>
+
+       * gcc.target/powerpc/darwin-bool-1.c: Suppress the pedantic
+       warning about _Bool.
+
 2019-09-05  Iain Sandoe  <iain@sandoe.co.uk>
 
        Backport from mainline.
index 2f147d073816f923d70d696243325e558225d083..f444edff2950b665696c1161e46c93bc8e33c318 100644 (file)
@@ -1,6 +1,8 @@
 /* Check that sizeof(bool) is 4 if we don't use special options. */
 /* Matt Austern  <austern@apple.com> */
 /* { dg-do run { target { powerpc*-*-darwin* && ilp32 } } } */
+/* We do need to suppress the ISO C doesn't support _Bool message tho.  */
+/* { dg-options "-Wno-pedantic" } */
 
 int dummy1[sizeof(_Bool) - 3];
 int dummy2[5 - sizeof(_Bool)];