aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/config/sh/elf.h10
2 files changed, 15 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 5f5960a..9bf2c70 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+2000-08-15 William Cohen <wcohen@redhat.com>
+
+ * config/sh/elf.h (DWARF2_DEBUGGING_INFO): Defined.
+ (PREFERRED_DEBUGGING_TYPE): Set to dwarf2 info.
+ (DWARF2_ASM_LINE_DEBUG_INFO): Defined.
+
2000-08-15 Richard Henderson <rth@cygnus.com>
* flow.c (mark_used_reg): Set reg_cond_reg appropriately.
diff --git a/gcc/config/sh/elf.h b/gcc/config/sh/elf.h
index ff57fca..0e8146f 100644
--- a/gcc/config/sh/elf.h
+++ b/gcc/config/sh/elf.h
@@ -25,6 +25,15 @@ Boston, MA 02111-1307, USA. */
/* No SDB debugging info. */
#undef SDB_DEBUGGING_INFO
+/* Generate DWARF2 debugging information and make it the default */
+#define DWARF2_DEBUGGING_INFO
+
+#undef PREFERRED_DEBUGGING_TYPE
+#define PREFERRED_DEBUGGING_TYPE DWARF2_DEBUG
+
+/* use a more compact format for line information */
+#define DWARF2_ASM_LINE_DEBUG_INFO 1
+
/* Undefine some macros defined in both sh.h and svr4.h. */
#undef IDENT_ASM_OP
#undef ASM_FILE_END
@@ -36,7 +45,6 @@ Boston, MA 02111-1307, USA. */
#undef ASM_OUTPUT_CONSTRUCTOR
#undef ASM_OUTPUT_DESTRUCTOR
#undef ASM_DECLARE_FUNCTION_NAME
-#undef PREFERRED_DEBUGGING_TYPE
#undef MAX_OFILE_ALIGNMENT
/* Be ELF-like. */