On 12/10/25 1:39 PM, Alexandre Oliva wrote:
The wrappers for dg-warning and dg-error that handle relative line
numbers with process-message are only activated if the global
variables gcc_warning_prefix and gcc_error_prefix, respectively, are
defined.
gnat.exp didn't set these variables, so we couldn't use relative line
numbers.
Set them to empty strings, for minimal disruption.
Regstrapped on x86_64-linux-gnu. IIUC Marc also tried it with a WIP
gnat.dg testcase that relied on this feature, that wasn't working
before. Ok?
for gcc/testsuite/ChangeLog
* lib/gnat.exp (gnat_init): Set gcc_warning_prefix and
gcc_error_prefix.
OK
jeff