aboutsummaryrefslogtreecommitdiff
path: root/gcc/toplev.c
diff options
context:
space:
mode:
authorJason Merrill <merrill@gnu.org>1997-07-14 07:12:36 +0000
committerJason Merrill <merrill@gnu.org>1997-07-14 07:12:36 +0000
commitfe0986b439159d4d89bba6afc5bcacffe32e8a2c (patch)
treed69e77a9bc72a94e999a0f559bc17a29d39ae6d9 /gcc/toplev.c
parent526039a09852d5fffad1f7624535af99abeeed94 (diff)
downloadgcc-fe0986b439159d4d89bba6afc5bcacffe32e8a2c.zip
gcc-fe0986b439159d4d89bba6afc5bcacffe32e8a2c.tar.gz
gcc-fe0986b439159d4d89bba6afc5bcacffe32e8a2c.tar.bz2
x
From-SVN: r14418
Diffstat (limited to 'gcc/toplev.c')
-rw-r--r--gcc/toplev.c14
1 files changed, 11 insertions, 3 deletions
diff --git a/gcc/toplev.c b/gcc/toplev.c
index eb6f14b..9ca2f75 100644
--- a/gcc/toplev.c
+++ b/gcc/toplev.c
@@ -4014,10 +4014,18 @@ main (argc, argv, envp)
level = 0;
}
- /* ??? A few targets use STR in the
- definition of PREFERRED_DEBUGGING_TYPE! */
if (type == NO_DEBUG)
- type = PREFERRED_DEBUGGING_TYPE;
+ {
+ type = PREFERRED_DEBUGGING_TYPE;
+ if (len > 1 && strncmp (str, "ggdb", len) == 0)
+ {
+#ifdef DWARF2_DEBUGGING_INFO
+ type = DWARF2_DEBUG;
+#elif defined DBX_DEBUGGING_INFO
+ type = DBX_DEBUG;
+#endif
+ }
+ }
if (type == NO_DEBUG)
warning ("`-%s' not supported by this configuration of GCC",