From: Iain Sandoe Date: Sun, 4 Aug 2019 12:22:55 +0000 (+0000) Subject: Darwin, ppc, testsuite, backport fix for darwin-bool-1. X-Git-Tag: releases/gcc-9.2.0~30 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ebe1b3d02aad075233ca4ce735d6ecedc0d657d8;p=thirdparty%2Fgcc.git Darwin, ppc, testsuite, backport fix for darwin-bool-1. This test is failing because of a pedantic warning that is unrelated to the purpose of the test. Fixed by suppressing that warning 2019-08-04 Iain Sandoe Backport from mainline. 2019-06-22 Iain Sandoe * gcc.target/powerpc/darwin-bool-1.c: Suppress the pedantic warning about _Bool. From-SVN: r274080 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index b798fc8dd1ec..b7760211417e 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,11 @@ +2019-08-04 Iain Sandoe + + Backport from mainline. + 2019-06-22 Iain Sandoe + + * gcc.target/powerpc/darwin-bool-1.c: Suppress the pedantic + warning about _Bool. + 2019-08-04 Iain Sandoe Backport from mainline. diff --git a/gcc/testsuite/gcc.target/powerpc/darwin-bool-1.c b/gcc/testsuite/gcc.target/powerpc/darwin-bool-1.c index 2f147d073816..f444edff2950 100644 --- a/gcc/testsuite/gcc.target/powerpc/darwin-bool-1.c +++ b/gcc/testsuite/gcc.target/powerpc/darwin-bool-1.c @@ -1,6 +1,8 @@ /* Check that sizeof(bool) is 4 if we don't use special options. */ /* Matt Austern */ /* { 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)];