[Ada] Make -gnatU and -gnatw.d the default

Pierre-Marie de Rodat derodat@adacore.com
Mon Jun 21 11:05:34 GMT 2021

-gnatU prepends `error:` to error messages, enabling it by default makes
error messages more consistent with warnings.  -gnatw.d tags messages
with the flag that caused them.

As users might need to switch back to the previous behavior, the
`-gnatd_U` flag is introduced to do exactly that.

Tested on x86_64-pc-linux-gnu, committed on trunk


	* debug.adb: Document -gnatd_U as taken.
	* err_vars.ads (Warning_Doc_Switch): Set to True.
	* errout.ads (Errout): Update documentation.
	* gnat1drv.adb (Adjust_Global_Switches): React to -gnatd_U.
	* hostparm.ads (Tag_Errors): Set to True.
	* opt.ads (Unique_Error_Tag): Document -gnatd_U.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.diff
Type: text/x-diff
Size: 3872 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20210621/eb7a68db/attachment-0001.bin>

More information about the Gcc-patches mailing list