aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorAlan Modra <amodra@bigpond.net.au>2002-08-02 01:10:16 +0000
committerAlan Modra <amodra@gcc.gnu.org>2002-08-02 10:40:16 +0930
commit80926cc12127f53230a1f26d75ae778b81432191 (patch)
tree72250deec59eda30bcf000b004709ae4dcedad97 /gcc
parentfb52d8de78e4d308b95aa721c5c9dc2b4e796391 (diff)
downloadgcc-80926cc12127f53230a1f26d75ae778b81432191.zip
gcc-80926cc12127f53230a1f26d75ae778b81432191.tar.gz
gcc-80926cc12127f53230a1f26d75ae778b81432191.tar.bz2
linux64.h (DBX_OUTPUT_BRAC): Define.
* config/rs6000/linux64.h (DBX_OUTPUT_BRAC): Define. (DBX_OUTPUT_LBRAC, DBX_OUTPUT_RBRAC): Define. From-SVN: r55962
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog3
-rw-r--r--gcc/config/rs6000/linux64.h23
2 files changed, 26 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 5b5de59..ee4e5f1 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,8 @@
2002-08-02 Alan Modra <amodra@bigpond.net.au>
+ * config/rs6000/linux64.h (DBX_OUTPUT_BRAC): Define.
+ (DBX_OUTPUT_LBRAC, DBX_OUTPUT_RBRAC): Define.
+
* config/rs6000/rs6000.c (output_toc): Don't use lshift_double when
HOST_BITS_PER_WIDE_INT == 64.
diff --git a/gcc/config/rs6000/linux64.h b/gcc/config/rs6000/linux64.h
index 7a90598..a1f162e 100644
--- a/gcc/config/rs6000/linux64.h
+++ b/gcc/config/rs6000/linux64.h
@@ -330,6 +330,29 @@ do \
} \
while (0)
+/* Similarly, we want the function code label here. */
+#define DBX_OUTPUT_BRAC(FILE, NAME, BRAC) \
+ do \
+ { \
+ const char *flab; \
+ fprintf (FILE, "%s%d,0,0,", ASM_STABN_OP, BRAC); \
+ assemble_name (FILE, NAME); \
+ putc ('-', FILE); \
+ if (current_function_func_begin_label != NULL_TREE) \
+ flab = IDENTIFIER_POINTER (current_function_func_begin_label); \
+ else \
+ { \
+ putc ('.', FILE); \
+ flab = XSTR (XEXP (DECL_RTL (current_function_decl), 0), 0); \
+ } \
+ assemble_name (FILE, flab); \
+ putc ('\n', FILE); \
+ } \
+ while (0)
+
+#define DBX_OUTPUT_LBRAC(FILE, NAME) DBX_OUTPUT_BRAC (FILE, NAME, N_LBRAC)
+#define DBX_OUTPUT_RBRAC(FILE, NAME) DBX_OUTPUT_BRAC (FILE, NAME, N_RBRAC)
+
/* Override sysv4.h as these are ABI_V4 only. */
#undef ASM_OUTPUT_REG_PUSH
#undef ASM_OUTPUT_REG_POP