2008/8/14 Joseph S. Myers <[EMAIL PROTECTED]>: > On Thu, 14 Aug 2008, Manuel López-Ibáñez wrote: > >> You can see many examples of the caret output by configuring with >> --enable-caret-diagnostics, then reverting the changes to >> gcc/testsuite/lib/gcc.exp and running the testsuite. Check the output >> in the gcc.log and g++.log files. > > It's clear it should be controlled by a -Wcaret (or similar) option rather > than a configure time option; the choice of style is a matter of user > preference. >
It is controlled by -fdiagnostics-show-caret. See the diff for gcc/opts.c. The configure options are meant to enable/disable all code related to caret printing in a similar way as it was done with mapped locations. This was requested the first time I sent this patch because it was considered too experimental to have it even with -fno-diagnostics-show-caret as the default. Cheers, Manuel.