testsuite: add additional option to force DSE execution [PR103662]
authorMikael Morin <mikael@gcc.gnu.org>
Mon, 25 Apr 2022 11:14:20 +0000 (13:14 +0200)
committerMikael Morin <mikael@gcc.gnu.org>
Mon, 25 Apr 2022 11:26:18 +0000 (13:26 +0200)
This fixes a dump tree match check that is UNRESOLVED with the -O0
optimization option, as the optimization pass corresponding to the
dump file is not run at -O0, and the dump is not generated.

PR fortran/103662

gcc/testsuite/ChangeLog:

* gfortran.dg/unlimited_polymorphic_3.f03: Force execution of
the DSE optimization pass.

gcc/testsuite/gfortran.dg/unlimited_polymorphic_3.f03

index 780d68c..4104de6 100644 (file)
@@ -1,5 +1,5 @@
 ! { dg-do run }
-! { dg-additional-options "-fdump-tree-dse-details" }
+! { dg-additional-options "-ftree-dse -fdump-tree-dse-details" }
 !
 ! Check that pointer assignments allowed by F2003:C717
 ! work and check null initialization of CLASS(*) pointers.