aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2020-03-25 10:48:27 +0100
committerJakub Jelinek <jakub@redhat.com>2020-03-25 10:48:27 +0100
commitc8504ebef1d6a799600b8e5d255c704b7b3aa19c (patch)
tree87e7c01654cac976842a8dfc00990575d987307a
parentc38daa7976886a59a3cd496b5c776d75f3cdb056 (diff)
downloadgcc-c8504ebef1d6a799600b8e5d255c704b7b3aa19c.zip
gcc-c8504ebef1d6a799600b8e5d255c704b7b3aa19c.tar.gz
gcc-c8504ebef1d6a799600b8e5d255c704b7b3aa19c.tar.bz2
testsuite: Fix up FAILs in gfortran testsuite with -fcompare-debug [PR94280]
These 3 tests use compiler_options() function, which is inherently incompatible with -fcompare-debug compilation, as it emits into a string literal in the assembly the exact f951 command line options, which differs between the two compilations with -fcompare-debug, where one has -gtoggle and -fcompare-debug-second options added and different -fdump-final-insns= option argument. The following patch adds dg-skip-if directives, so that these tests are ignored during make check-gfortran RUNTESTFLAGS='--target_board=unix/-fcompare-debug' 2020-03-25 Jakub Jelinek <jakub@redhat.com> PR debug/94280 * gfortran.dg/iso_c_binding_compiler_1.f90: Add dg-skip-if for -fcompare-debug. * gfortran.dg/iso_c_binding_compiler_3.f90: Likewise. * gfortran.dg/unlimited_polymorphic_31.f03: Likewise.
-rw-r--r--gcc/testsuite/ChangeLog8
-rw-r--r--gcc/testsuite/gfortran.dg/iso_c_binding_compiler_1.f903
-rw-r--r--gcc/testsuite/gfortran.dg/iso_c_binding_compiler_3.f903
-rw-r--r--gcc/testsuite/gfortran.dg/unlimited_polymorphic_31.f033
4 files changed, 17 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 4711a09..59f15af 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,11 @@
+2020-03-25 Jakub Jelinek <jakub@redhat.com>
+
+ PR debug/94280
+ * gfortran.dg/iso_c_binding_compiler_1.f90: Add dg-skip-if for
+ -fcompare-debug.
+ * gfortran.dg/iso_c_binding_compiler_3.f90: Likewise.
+ * gfortran.dg/unlimited_polymorphic_31.f03: Likewise.
+
2020-03-25 Mark Eggleston <mark.eggleston@codethink.com>
PR fortran/93484
diff --git a/gcc/testsuite/gfortran.dg/iso_c_binding_compiler_1.f90 b/gcc/testsuite/gfortran.dg/iso_c_binding_compiler_1.f90
index 8eccb6b..d1d2ca9 100644
--- a/gcc/testsuite/gfortran.dg/iso_c_binding_compiler_1.f90
+++ b/gcc/testsuite/gfortran.dg/iso_c_binding_compiler_1.f90
@@ -1,4 +1,7 @@
! { dg-do link }
+! The compiler_options() function is dependent on the
+! command line options and thus incompatible with -fcompare-debug.
+! { dg-skip-if "-fcompare-debug incompatible test" { *-*-* } { "-fcompare-debug" } { "" } } */
!
! PR fortran/40569
!
diff --git a/gcc/testsuite/gfortran.dg/iso_c_binding_compiler_3.f90 b/gcc/testsuite/gfortran.dg/iso_c_binding_compiler_3.f90
index 71fde9d..d1a0f2f 100644
--- a/gcc/testsuite/gfortran.dg/iso_c_binding_compiler_3.f90
+++ b/gcc/testsuite/gfortran.dg/iso_c_binding_compiler_3.f90
@@ -1,5 +1,8 @@
! { dg-do compile }
! { dg-options "-Wall" }
+! The compiler_options() function is dependent on the
+! command line options and thus incompatible with -fcompare-debug.
+! { dg-skip-if "-fcompare-debug incompatible test" { *-*-* } { "-fcompare-debug" } { "" } } */
!
! PR fortran/45823
!
diff --git a/gcc/testsuite/gfortran.dg/unlimited_polymorphic_31.f03 b/gcc/testsuite/gfortran.dg/unlimited_polymorphic_31.f03
index dd47c34..72d90a0 100644
--- a/gcc/testsuite/gfortran.dg/unlimited_polymorphic_31.f03
+++ b/gcc/testsuite/gfortran.dg/unlimited_polymorphic_31.f03
@@ -1,4 +1,7 @@
! { dg-do run }
+! The compiler_options() function is dependent on the
+! command line options and thus incompatible with -fcompare-debug.
+! { dg-skip-if "-fcompare-debug incompatible test" { *-*-* } { "-fcompare-debug" } { "" } } */
!
! Test the fix for PR92785, where the array passed to 'write scalar' was not
! normalised to LBOUND = 1.