diff options
author | Jason Merrill <merrill@gnu.org> | 1996-10-03 23:41:51 +0000 |
---|---|---|
committer | Jason Merrill <merrill@gnu.org> | 1996-10-03 23:41:51 +0000 |
commit | 2d37f024c092e51c2c03665408a9db2e5f3cebb4 (patch) | |
tree | 56b64b848d1908f4ce1c5d197b29c23e519b608a | |
parent | 2b77deccd9ded4565364a242f9bb17d6fe2285c8 (diff) | |
download | gcc-2d37f024c092e51c2c03665408a9db2e5f3cebb4.zip gcc-2d37f024c092e51c2c03665408a9db2e5f3cebb4.tar.gz gcc-2d37f024c092e51c2c03665408a9db2e5f3cebb4.tar.bz2 |
oops
From-SVN: r12895
-rw-r--r-- | gcc/toplev.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/toplev.c b/gcc/toplev.c index 7ad7d22..662ebaa 100644 --- a/gcc/toplev.c +++ b/gcc/toplev.c @@ -3974,6 +3974,15 @@ main (argc, argv, envp) 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 not supported for C++ on systems using the DWARF debugging format"); + write_symbols = NO_DEBUG; + } +#endif /* defined(DWARF_DEBUGGING_INFO) */ + #ifdef OVERRIDE_OPTIONS /* Some machines may reject certain combinations of options. */ OVERRIDE_OPTIONS; |