This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] Fix regexp in gfortran.dg/bind_c_array_params_2.f90
- From: dominiq at lps dot ens dot fr (Dominique Dhumieres)
- To: fortran at gcc dot gnu dot org
- Cc: gcc-patches at gcc dot gnu dot org, dave dot anglin at bell dot net, schwab at linux-m68k dot org
- Date: Mon, 26 May 2014 17:35:59 +0200
- Subject: [PATCH] Fix regexp in gfortran.dg/bind_c_array_params_2.f90
- Authentication-results: sourceware.org; auth=none
The following patch adjust the regexp in gfortran.dg/bind_c_array_params_2.f90.
Tested on powerpc-apple-darwin9* and x86_64-apple-darwin*, and by
Andreas Schwab on unspecified targets (see
https://gcc.gnu.org/ml/fortran/2014-05/msg00137.html).
OK for trunk?
Dominique
2014-05-26 Dominique d'Humieres <dominiq@lps.ens.fr>
* gfortran.dg/gfortran.dg/bind_c_array_params_2.f90:
Adjust regexp for more targets.
--- ../_clean/gcc/testsuite/gfortran.dg/bind_c_array_params_2.f90 2014-05-24 16:17:53.000000000 +0200
+++ gcc/testsuite/gfortran.dg/bind_c_array_params_2.f90 2014-05-25 20:38:18.000000000 +0200
@@ -16,7 +16,7 @@ integer :: aa(4,4)
call test(aa)
end
-! { dg-final { scan-assembler-times "call\[^\n\r\]*myBindC" 1 { target { ! { hppa*-*-hpux* } } } } }
-! { dg-final { scan-assembler-times "call\[^\n\r\]*myBindC,%r2" 1 { target { hppa*-*-hpux* } } } }
+! { dg-final { scan-assembler-times "\[ \t\]_*myBindC" 1 { target { ! { hppa*-*-hpux* } } } } }
+! { dg-final { scan-assembler-times "\[ \t\]_*myBindC,%r2" 1 { target { hppa*-*-hpux* } } } }
! { dg-final { scan-tree-dump-times "test \\\(&parm\\." 1 "original" } }
! { dg-final { cleanup-tree-dump "original" } }