This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Patch] Minor fixes for regtesting gfortran with -flto
- From: Uros Bizjak <ubizjak at gmail dot com>
- To: "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Cc: Dominique Dhumieres <dominiq at lps dot ens dot fr>
- Date: Thu, 29 May 2014 10:41:37 +0200
- Subject: Re: [Patch] Minor fixes for regtesting gfortran with -flto
- Authentication-results: sourceware.org; auth=none
Hello!
> With the following patch, gfortran can be regtested with -flto
> with no failure, but pr54852 and pr60061.
-! { dg-final { scan-assembler-times "myBindC" 1 { target { ! {
hppa*-*-hpux* } } } } }
-! { dg-final { scan-assembler-times "myBindC,%r2" 1 { target {
hppa*-*-hpux* } } } }
+! { 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* } } } }
The change above fails on alpha, which doesn't emit "call" in the assembly, but:
$ grep myBindC bind_c_array_params_2.s
jsr $26,myBindC
Probably, alpha is not the only one that fails this assumption.
Uros.