This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[Ada] disable caret printing by default for Ada
- From: Eric Botcazou <ebotcazou at adacore dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Sun, 6 May 2012 12:43:52 +0200
- Subject: [Ada] disable caret printing by default for Ada
Like for front-end warnings.
Tested on i586-suse-linux, applied on the mainline.
2012-05-06 Eric Botcazou <ebotcazou@adacore.com>
* gcc-interface/misc.c (gnat_post_options): Disable caret by default.
--
Eric Botcazou
Index: gcc-interface/misc.c
===================================================================
--- gcc-interface/misc.c (revision 187074)
+++ gcc-interface/misc.c (working copy)
@@ -235,6 +235,10 @@ gnat_post_options (const char **pfilenam
/* No psABI change warnings for Ada. */
warn_psabi = 0;
+ /* No caret by default for Ada. */
+ if (!global_options_set.x_flag_diagnostics_show_caret)
+ global_dc->show_caret = false;
+
optimize = global_options.x_optimize;
optimize_size = global_options.x_optimize_size;
flag_compare_debug = global_options.x_flag_compare_debug;