aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Sandiford <rdsandiford@googlemail.com>2008-11-24 20:39:05 +0000
committerRichard Sandiford <rsandifo@gcc.gnu.org>2008-11-24 20:39:05 +0000
commit370d36c65639c542ac6fdc892164edc63b1f6221 (patch)
tree49896f3603f40b1cfa67a7476a42033acc337763 /gcc
parent60b5c18d0fb1be258d78271cb0f397086aff5edc (diff)
downloadgcc-370d36c65639c542ac6fdc892164edc63b1f6221.zip
gcc-370d36c65639c542ac6fdc892164edc63b1f6221.tar.gz
gcc-370d36c65639c542ac6fdc892164edc63b1f6221.tar.bz2
mips.h (ASM_OUTPUT_DEBUG_LABEL): Define.
gcc/ * config/mips/mips.h (ASM_OUTPUT_DEBUG_LABEL): Define. From-SVN: r142173
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/config/mips/mips.h26
2 files changed, 30 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 6ed8922..a82c6d3 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@
+2008-11-24 Richard Sandiford <rdsandiford@googlemail.com>
+
+ * config/mips/mips.h (ASM_OUTPUT_DEBUG_LABEL): Define.
+
2008-11-24 Maxim Kuvyrkov <maxim@codesourcery.com>
PR target/35018
diff --git a/gcc/config/mips/mips.h b/gcc/config/mips/mips.h
index 562c053..6f98cd0 100644
--- a/gcc/config/mips/mips.h
+++ b/gcc/config/mips/mips.h
@@ -2845,6 +2845,32 @@ while (0)
#define ASM_GENERATE_INTERNAL_LABEL(LABEL,PREFIX,NUM) \
sprintf ((LABEL), "*%s%s%ld", (LOCAL_LABEL_PREFIX), (PREFIX), (long)(NUM))
+/* Print debug labels as "foo = ." rather than "foo:" because they should
+ represent a byte pointer rather than an ISA-encoded address. This is
+ particularly important for code like:
+
+ $LFBxxx = .
+ .cfi_startproc
+ ...
+ .section .gcc_except_table,...
+ ...
+ .uleb128 foo-$LFBxxx
+
+ The .uleb128 requies $LFBxxx to match the FDE start address, which is
+ likewise a byte pointer rather than an ISA-encoded address.
+
+ At the time of writing, this hook is not used for the function end
+ label:
+
+ $LFExxx:
+ .end foo
+
+ But this doesn't matter, because GAS doesn't treat a pre-.end label
+ as a MIPS16 one anyway. */
+
+#define ASM_OUTPUT_DEBUG_LABEL(FILE, PREFIX, NUM) \
+ fprintf (FILE, "%s%s%d = .\n", LOCAL_LABEL_PREFIX, PREFIX, NUM)
+
/* This is how to output an element of a case-vector that is absolute. */
#define ASM_OUTPUT_ADDR_VEC_ELT(STREAM, VALUE) \