aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Kenner <kenner@gcc.gnu.org>1996-09-24 07:28:50 -0400
committerRichard Kenner <kenner@gcc.gnu.org>1996-09-24 07:28:50 -0400
commit30657ee33dd334a375a7aaf5f76f45ffddd0c189 (patch)
tree8ef4e88243b3c62f7cb9fbf165ba75d4fa469eb2 /gcc
parent1507aa7422143858fed608767a4416ee0735fa77 (diff)
downloadgcc-30657ee33dd334a375a7aaf5f76f45ffddd0c189.zip
gcc-30657ee33dd334a375a7aaf5f76f45ffddd0c189.tar.gz
gcc-30657ee33dd334a375a7aaf5f76f45ffddd0c189.tar.bz2
(PREFERRED_DEBUGGING_TYPE): If no debugging formats are supported, set to NO_DEBUG.
(PREFERRED_DEBUGGING_TYPE): If no debugging formats are supported, set to NO_DEBUG. (main): Don't do setting of PREFERRED_DEBUGGING_TYPE here. From-SVN: r12829
Diffstat (limited to 'gcc')
-rw-r--r--gcc/toplev.c54
1 files changed, 30 insertions, 24 deletions
diff --git a/gcc/toplev.c b/gcc/toplev.c
index bd4b3bd..3373f76 100644
--- a/gcc/toplev.c
+++ b/gcc/toplev.c
@@ -93,6 +93,36 @@ vms_fopen (fname, type)
#define DEFAULT_GDB_EXTENSIONS 1
#endif
+/* If more than one debugging type is supported, you must define
+ PREFERRED_DEBUGGING_TYPE to choose a format in a system-dependent way.
+
+ This is one long line cause VAXC can't handle a \-newline. */
+#if 1 < (defined (DBX_DEBUGGING_INFO) + defined (SDB_DEBUGGING_INFO) + defined (DWARF_DEBUGGING_INFO) + defined (XCOFF_DEBUGGING_INFO))
+#ifndef PREFERRED_DEBUGGING_TYPE
+You Lose! You must define PREFERRED_DEBUGGING_TYPE!
+#endif /* no PREFERRED_DEBUGGING_TYPE */
+#else /* Only one debugging format supported. Define PREFERRED_DEBUGGING_TYPE
+ so the following code needn't care. */
+#ifdef DBX_DEBUGGING_INFO
+#define PREFERRED_DEBUGGING_TYPE DBX_DEBUG
+#endif
+#ifdef SDB_DEBUGGING_INFO
+#define PREFERRED_DEBUGGING_TYPE SDB_DEBUG
+#endif
+#ifdef DWARF_DEBUGGING_INFO
+#define PREFERRED_DEBUGGING_TYPE DWARF_DEBUG
+#endif
+#ifdef XCOFF_DEBUGGING_INFO
+#define PREFERRED_DEBUGGING_TYPE XCOFF_DEBUG
+#endif
+#endif /* More than one debugger format enabled. */
+
+/* If still not defined, must have been because no debugging formats
+ are supported. */
+#ifndef PREFERRED_DEBUGGING_TYPE
+#define PREFERRED_DEBUGGING_TYPE NO_DEBUG
+#endif
+
extern int rtx_equal_function_value_matters;
#if ! (defined (VMS) || defined (OS2))
@@ -3781,30 +3811,6 @@ main (argc, argv, envp)
}
else if (str[0] == 'g')
{
- /* If more than one debugging type is supported,
- you must define PREFERRED_DEBUGGING_TYPE
- to choose a format in a system-dependent way. */
- /* This is one long line cause VAXC can't handle a \-newline. */
-#if 1 < (defined (DBX_DEBUGGING_INFO) + defined (SDB_DEBUGGING_INFO) + defined (DWARF_DEBUGGING_INFO) + defined (XCOFF_DEBUGGING_INFO))
-#ifndef PREFERRED_DEBUGGING_TYPE
-You Lose! You must define PREFERRED_DEBUGGING_TYPE!
-#endif /* no PREFERRED_DEBUGGING_TYPE */
-#else /* Only one debugging format supported. Define PREFERRED_DEBUGGING_TYPE
- so the following code needn't care. */
-#ifdef DBX_DEBUGGING_INFO
-#define PREFERRED_DEBUGGING_TYPE DBX_DEBUG
-#endif
-#ifdef SDB_DEBUGGING_INFO
-#define PREFERRED_DEBUGGING_TYPE SDB_DEBUG
-#endif
-#ifdef DWARF_DEBUGGING_INFO
-#define PREFERRED_DEBUGGING_TYPE DWARF_DEBUG
-#endif
-#ifdef XCOFF_DEBUGGING_INFO
-#define PREFERRED_DEBUGGING_TYPE XCOFF_DEBUG
-#endif
-#endif /* More than one debugger format enabled. */
-
char *p = str + 1;
char *q;
unsigned len;