OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9bb95ed
)
(main): If C++ for Dwarf requested, warn and turn it off.
author
rms
<rms@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 5 May 1993 20:13:33 +0000
(20:13 +0000)
committer
rms
<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
patch
|
blob
|
history
diff --git
a/gcc/toplev.c
b/gcc/toplev.c
index
45ea3d3
..
e887421
100644
(file)
--- 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;