aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@adacore.com>2012-05-06 10:46:17 +0000
committerEric Botcazou <ebotcazou@gcc.gnu.org>2012-05-06 10:46:17 +0000
commit1a5b6cd2af58039fc40ae410ad8fb272b4002ca8 (patch)
tree636a615d789e1e00949bc765ae349438fdfb2769 /gcc/ada
parent842d4ee2add5d9bc624857c3545d27f70e2fd37b (diff)
downloadgcc-1a5b6cd2af58039fc40ae410ad8fb272b4002ca8.zip
gcc-1a5b6cd2af58039fc40ae410ad8fb272b4002ca8.tar.gz
gcc-1a5b6cd2af58039fc40ae410ad8fb272b4002ca8.tar.bz2
* gcc-interface/misc.c (gnat_post_options): Disable caret by default.
From-SVN: r187207
Diffstat (limited to 'gcc/ada')
-rw-r--r--gcc/ada/ChangeLog4
-rw-r--r--gcc/ada/gcc-interface/misc.c4
2 files changed, 8 insertions, 0 deletions
diff --git a/gcc/ada/ChangeLog b/gcc/ada/ChangeLog
index 345f193..f564965 100644
--- a/gcc/ada/ChangeLog
+++ b/gcc/ada/ChangeLog
@@ -1,5 +1,9 @@
2012-05-06 Eric Botcazou <ebotcazou@adacore.com>
+ * gcc-interface/misc.c (gnat_post_options): Disable caret by default.
+
+2012-05-06 Eric Botcazou <ebotcazou@adacore.com>
+
* gcc-interface/gigi.h (make_packable_type): Declare.
(make_type_from_size): Likewise.
(relate_alias_sets): Likewise.
diff --git a/gcc/ada/gcc-interface/misc.c b/gcc/ada/gcc-interface/misc.c
index 08ca5bb..974827a 100644
--- a/gcc/ada/gcc-interface/misc.c
+++ b/gcc/ada/gcc-interface/misc.c
@@ -235,6 +235,10 @@ gnat_post_options (const char **pfilename ATTRIBUTE_UNUSED)
/* 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;