From: Richard Stallman Date: Wed, 5 May 1993 20:13:33 +0000 (+0000) Subject: (main): If C++ for Dwarf requested, warn and turn it off. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7877bbb364b78492cb70bffb72c2eea65bbe3b04;p=gcc.git (main): If C++ for Dwarf requested, warn and turn it off. From-SVN: r4340 --- diff --git a/gcc/toplev.c b/gcc/toplev.c index 45ea3d3afa4..e8874214101 100644 --- a/gcc/toplev.c +++ b/gcc/toplev.c @@ -3301,6 +3301,15 @@ You Lose! You must define PREFERRED_DEBUGGING_TYPE! warning ("-Wuninitialized is not supported without -O"); } +#if defined(DWARF_DEBUGGING_INFO) + if (write_symbols == DWARF_DEBUG + && strcmp (language_string, "GNU C++") == 0) + { + warning ("-g option for g++ on SVR4 systems: -g disabled"); + write_symbols = NO_DEBUG; + } +#endif /* defined(DWARF_DEBUGGING_INFO) */ + #ifdef OVERRIDE_OPTIONS /* Some machines may reject certain combinations of options. */ OVERRIDE_OPTIONS;