summaryrefslogtreecommitdiff
path: root/gcc/config/i386
diff options
context:
space:
mode:
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2000-03-29 08:54:15 +0000
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2000-03-29 08:54:15 +0000
commitd468785c2513fd797c8e87d6baa7cc4a1715a565 (patch)
tree33125162a09458aaddbb3166c3ab2637e9963021 /gcc/config/i386
parente9c5ddd98e8c34a94447de09d3296c2d9e3833c9 (diff)
downloadgcc-d468785c2513fd797c8e87d6baa7cc4a1715a565.tar.gz
* config/i386/att.h (LOCAL_LABEL_PREFIX): Define.
(ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL): Use it. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@32801 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/i386')
-rw-r--r--gcc/config/i386/att.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/gcc/config/i386/att.h b/gcc/config/i386/att.h
index e5c2d9c7e99..b98948e2bf2 100644
--- a/gcc/config/i386/att.h
+++ b/gcc/config/i386/att.h
@@ -71,6 +71,10 @@ do \
/* Define the syntax of labels and symbol definitions/declarations. */
+/* The prefix to add for compiler private assembler symbols. */
+#undef LOCAL_LABEL_PREFIX
+#define LOCAL_LABEL_PREFIX "."
+
/* This is how to store into the string BUF
the symbol_ref name of an internal numbered label where
PREFIX is the class of label and NUM is the number within the class.
@@ -78,14 +82,14 @@ do \
#undef ASM_GENERATE_INTERNAL_LABEL
#define ASM_GENERATE_INTERNAL_LABEL(BUF,PREFIX,NUMBER) \
- sprintf ((BUF), ".%s%d", (PREFIX), (NUMBER))
+ sprintf ((BUF), "%s%s%d", LOCAL_LABEL_PREFIX, (PREFIX), (NUMBER))
/* This is how to output an internal numbered label where
PREFIX is the class of label and NUM is the number within the class. */
#undef ASM_OUTPUT_INTERNAL_LABEL
#define ASM_OUTPUT_INTERNAL_LABEL(FILE,PREFIX,NUM) \
- fprintf (FILE, ".%s%d:\n", PREFIX, NUM)
+ fprintf (FILE, "%s%s%d:\n", LOCAL_LABEL_PREFIX, PREFIX, NUM)
/* The prefix to add to user-visible assembler symbols. */