testsuite: Fix excess errors for new modules testcases on powerpc [PR114320]

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>
This commit is contained in:
Nathaniel Shead 2024-03-16 00:11:25 +11:00
parent dfc9d1cc83
commit 6cb5ef37c2
2 changed files with 2 additions and 2 deletions

View 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;

View 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;