Am 21.09.25 um 00:24 schrieb Andreas Schwab:
I wrote "like gcc.dg/Wfatal-2.c" for a reason, it contains the correct
answer to your question.
That turns out not to be the case.
! { dg-message "compilation terminated" "compilation terminated" { target *-*-*
} 0 }
Wfatal-2.c has
/* { dg-message "being treated as errors" "treated as errors" { target
*-*-* } 0 } */
/* { dg-message "terminated due to -Wfatal-errors" "terminated" { target
*-*-* } 0 } */
I tried all four combinations of dg-error and dg-message with
! { dg-do compile }
! { dg-options "-ffrontend-optimize -fexternal-blas64" }
! { dg-require-effective-target ilp32 }
! { dg-message "-fexternal-blas64 requires a 64-bit system"
"matmul_blas_4.f90" { target *-*-* } 0 }
! { dg-message "compilation terminated" "compilation terminated" {
target *-*-* } 0 }
! PR 121161 - do not use -fexternal-blas64 with a 32-bit system.
subroutine foo(a,b,c,n)
implicit none
integer(kind=8) :: n
real, dimension(n,n) :: a, b, c
c = matmul(a,b)
end subroutine foo
and always got the same result:
Running /home/ig25/Gcc/trunk/gcc/testsuite/gfortran.dg/dg.exp ...
FAIL: gfortran.dg/matmul_blas_4.f90 -O compilation terminated at line
5 (test for errors, line )
FAIL: gfortran.dg/matmul_blas_4.f90 -O (test for excess errors)
=== gfortran Summary ===
# of expected passes 1
# of unexpected failures 2
Any other ideas?
Best regards
Thomas