aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandre Oliva <aoliva@cygnus.com>2000-05-12 06:27:33 +0000
committerAlexandre Oliva <aoliva@gcc.gnu.org>2000-05-12 06:27:33 +0000
commit5c68706cb3dedbdb5e8c510cdbb474638a0c46d7 (patch)
tree386d4ac9786828cbbaa7adb3b1abb939aa4813a2
parent497eb8c3c7d5cd631798df5ac075352164c89add (diff)
downloadgcc-5c68706cb3dedbdb5e8c510cdbb474638a0c46d7.zip
gcc-5c68706cb3dedbdb5e8c510cdbb474638a0c46d7.tar.gz
gcc-5c68706cb3dedbdb5e8c510cdbb474638a0c46d7.tar.bz2
mn10300.h (PREFERRED_DEBUGGING_TYPE): Redefine as DWARF2_DEBUG.
* config/mn10300/mn10300.h (PREFERRED_DEBUGGING_TYPE): Redefine as DWARF2_DEBUG. (DWARF2_ASM_LINE_DEBUG_INFO): Define. (ASM_OUTPUT_DWARF2_ADDR_CONST): Define. From-SVN: r33869
-rw-r--r--gcc/ChangeLog7
-rw-r--r--gcc/config/mn10300/mn10300.h10
2 files changed, 15 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 7312b4d..9f254e6 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,10 @@
+2000-05-12 Alexandre Oliva <aoliva@cygnus.com>
+
+ * config/mn10300/mn10300.h (PREFERRED_DEBUGGING_TYPE): Redefine as
+ DWARF2_DEBUG.
+ (DWARF2_ASM_LINE_DEBUG_INFO): Define.
+ (ASM_OUTPUT_DWARF2_ADDR_CONST): Define.
+
2000-05-11 Richard Henderson <rth@cygnus.com>
* calls.c: Revert both 05-09 patches.
diff --git a/gcc/config/mn10300/mn10300.h b/gcc/config/mn10300/mn10300.h
index 5bc1452..0dd7ad1 100644
--- a/gcc/config/mn10300/mn10300.h
+++ b/gcc/config/mn10300/mn10300.h
@@ -1031,10 +1031,16 @@ do { char dstr[30]; \
/* We don't have to worry about dbx compatibility for the mn10300. */
#define DEFAULT_GDB_EXTENSIONS 1
-/* Use stabs debugging info by default. */
+/* Use dwarf2 debugging info by default. */
#undef PREFERRED_DEBUGGING_TYPE
-#define PREFERRED_DEBUGGING_TYPE DBX_DEBUG
+#define PREFERRED_DEBUGGING_TYPE DWARF2_DEBUG
+#define DWARF2_ASM_LINE_DEBUG_INFO 1
+
+/* We need to prepend underscores. */
+#define ASM_OUTPUT_DWARF2_ADDR_CONST(FILE,ADDR) \
+ fprintf ((FILE), "\t%s\t_%s", UNALIGNED_WORD_ASM_OP, (ADDR))
+
#define DBX_REGISTER_NUMBER(REGNO) REGNO
/* GDB always assumes the current function's frame begins at the value