This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [Patch] Minor fixes for regtesting gfortran with -flto


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]