OSDN Git Service

(main): If C++ for Dwarf requested, warn and turn it off.
authorrms <rms@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 5 May 1993 20:13:33 +0000 (20:13 +0000)
committerrms <rms@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 5 May 1993 20:13:33 +0000 (20:13 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@4340 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/toplev.c

index 45ea3d3..e887421 100644 (file)
@@ -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;