https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122810
Tobias Burnus <burnus at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |burnus at gcc dot gnu.org,
| |tschwinge at gcc dot gnu.org
--- Comment #1 from Tobias Burnus <burnus at gcc dot gnu.org> ---
The problem seems to be that Jerry's run lacks the output of:
Error termination. Backtrace:
required by:
! { dg-output "Error termination.*" { target { ! {
openacc_nvidia_accel_selected || openacc_radeon_accel_selected } } } }
That's produced by:
exit_error (int status)
{
if (options.backtrace == 1
|| (options.backtrace == -1 && compile_options.backtrace == 1))
{
estr_write ("\nError termination. Backtrace:\n");
show_backtrace (false);
}
exit (status);
}
and the result if one, e.g., runs with GFORTRAN_ERROR_BACKTRACE=no
or has not configured backtracing (e.g. because it doesn't work for a certain
system or ...)
I wonder whether we can just remove this check for good, which is also not
shown when aborting via libgomp's gomp_fatal/GOMP_PLUGIN_fatal.