From c1b1c4e58bda152ae932b45396ab67b07dd8c3fe Mon Sep 17 00:00:00 2001 From: Jonathan Wakely Date: Wed, 6 Jul 2022 19:11:05 +0100 Subject: [PATCH] testsuite: Fix incorrect -mfloat128-type option This test currently fails with an error about -mfloat128-type being an invalid option, which is not what it's supposed to be testing: XFAIL: gcc.target/powerpc/ppc-fortran/pr80108-1.f90 -O (test for excess errors) Excess errors: xgcc: error: unrecognized command-line option '-mfloat128-type'; did you mean '-mfloat128'? With this change we get the error that the comment says it expects: XFAIL: gcc.target/powerpc/ppc-fortran/pr80108-1.f90 -O (test for excess errors) Excess errors: f951: Error: power9 target option is incompatible with '-mcpu=' for less than power9 f951: Error: '-mfloat128' requires VSX support f951: Error: '-m64' requires a PowerPC64 cpu gcc/testsuite/ChangeLog: * gcc.target/powerpc/ppc-fortran/pr80108-1.f90: Change -mfloat128-type to -mfloat128. --- gcc/testsuite/gcc.target/powerpc/ppc-fortran/pr80108-1.f90 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/testsuite/gcc.target/powerpc/ppc-fortran/pr80108-1.f90 b/gcc/testsuite/gcc.target/powerpc/ppc-fortran/pr80108-1.f90 index 844166d55e3..dac5c361689 100644 --- a/gcc/testsuite/gcc.target/powerpc/ppc-fortran/pr80108-1.f90 +++ b/gcc/testsuite/gcc.target/powerpc/ppc-fortran/pr80108-1.f90 @@ -1,7 +1,7 @@ ! Originally contributed by Tobias Burnas. ! { dg-do compile { target { powerpc*-*-* } } } ! { dg-require-effective-target powerpc_p9vector_ok } -! { dg-options "-mdejagnu-cpu=405 -mpower9-minmax -mfloat128-type" } +! { dg-options "-mdejagnu-cpu=405 -mpower9-minmax -mfloat128" } ! { dg-excess-errors "expect error due to conflicting target options" } ! Since the error message is not associated with a particular line ! number, we cannot use the dg-error directive and cannot specify a