Commit 7877bbb3 by Richard Stallman

(main): If C++ for Dwarf requested, warn and turn it off.

From-SVN: r4340
parent 2abec1b7
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment