diff options
author | Pierre-Marie de Rodat <derodat@adacore.com> | 2015-09-14 07:53:49 +0000 |
---|---|---|
committer | Eric Botcazou <ebotcazou@gcc.gnu.org> | 2015-09-14 07:53:49 +0000 |
commit | 8f64c1daf3a393f6614aaf6fdaaf867ccd66006c (patch) | |
tree | 962833f3b63a8b033f2bc5e594c44682f5126679 /gcc/ada/gcc-interface | |
parent | ba4643153b87f84c0ee07ffd7f7fd53589c94ddc (diff) | |
download | gcc-8f64c1daf3a393f6614aaf6fdaaf867ccd66006c.zip gcc-8f64c1daf3a393f6614aaf6fdaaf867ccd66006c.tar.gz gcc-8f64c1daf3a393f6614aaf6fdaaf867ccd66006c.tar.bz2 |
misc.c (gnat_post_options): Issue a warning if generating STABS debugging information when not the default.
* gcc-interface/misc.c (gnat_post_options): Issue a warning if
generating STABS debugging information when not the default.
From-SVN: r227737
Diffstat (limited to 'gcc/ada/gcc-interface')
-rw-r--r-- | gcc/ada/gcc-interface/misc.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/ada/gcc-interface/misc.c b/gcc/ada/gcc-interface/misc.c index 9d8d262..da91c6f 100644 --- a/gcc/ada/gcc-interface/misc.c +++ b/gcc/ada/gcc-interface/misc.c @@ -268,6 +268,13 @@ gnat_post_options (const char **pfilename ATTRIBUTE_UNUSED) if (!global_options_set.x_flag_diagnostics_show_caret) global_dc->show_caret = false; + /* Warn only if STABS is not the default: we don't want to emit a warning if + the user did not use a -gstabs option. */ + if (PREFERRED_DEBUGGING_TYPE != DBX_DEBUG && write_symbols == DBX_DEBUG) + warning (0, "STABS debugging information for Ada is obsolete and not " + "supported anymore"); + + /* Copy global settings to local versions. */ optimize = global_options.x_optimize; optimize_size = global_options.x_optimize_size; flag_compare_debug = global_options.x_flag_compare_debug; |