]> gcc.gnu.org Git - gcc.git/commitdiff
testsuite: Fix excess errors for new modules testcases on powerpc [PR114320]
authorNathaniel Shead <nathanieloshead@gmail.com>
Fri, 15 Mar 2024 13:11:25 +0000 (00:11 +1100)
committerNathaniel Shead <nathanieloshead@gmail.com>
Mon, 18 Mar 2024 13:41:06 +0000 (00:41 +1100)
On some configurations, PowerPC emits -Wpsabi warnings when using IEEE
long doubles on a machine configured with IBM long double by default.
This patch suppresses these warnings for this testcase.

PR testsuite/114320

gcc/testsuite/ChangeLog:

* g++.dg/modules/target-powerpc-1_a.C: Suppress -Wpsabi.
* g++.dg/modules/target-powerpc-1_b.C: Likewise.

Signed-off-by: Nathaniel Shead <nathanieloshead@gmail.com>
gcc/testsuite/g++.dg/modules/target-powerpc-1_a.C
gcc/testsuite/g++.dg/modules/target-powerpc-1_b.C

index 693ed101ed5d6d5d68affb81a73ddb2fb9a842be..01709e0eac00f18fba35e6b5245b46d0264f1313 100644 (file)
@@ -1,7 +1,7 @@
 // PR c++/98645
 // { dg-do compile { target powerpc*-*-* } }
 // { dg-require-effective-target ppc_float128_sw }
-// { dg-additional-options "-fmodules-ts -mfloat128 -mabi=ieeelongdouble" }
+// { dg-additional-options "-fmodules-ts -mfloat128 -mabi=ieeelongdouble -Wno-psabi" }
 
 export module M;
 export __ibm128 i = 0.0;
index d6b684b556d08e2fb93dc8a18abcc062d3079646..b4209bc1550e6669939fc43a1b31746773bd474c 100644 (file)
@@ -1,7 +1,7 @@
 // PR c++/98645
 // { dg-module-do compile { target powerpc*-*-* } }
 // { dg-require-effective-target ppc_float128_sw }
-// { dg-additional-options "-fmodules-ts -mfloat128 -mabi=ieeelongdouble" }
+// { dg-additional-options "-fmodules-ts -mfloat128 -mabi=ieeelongdouble -Wno-psabi" }
 
 import M;
 
This page took 0.06875 seconds and 5 git commands to generate.