aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/darwin.h
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/config/darwin.h')
-rw-r--r--gcc/config/darwin.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/config/darwin.h b/gcc/config/darwin.h
index c2685a8..03955c6 100644
--- a/gcc/config/darwin.h
+++ b/gcc/config/darwin.h
@@ -525,6 +525,9 @@ extern GTY(()) int darwin_ms_struct;
#define USER_LABEL_PREFIX "_"
+/* A dummy symbol that will be replaced with the function base name. */
+#define MACHOPIC_FUNCTION_BASE_NAME "<pic base>"
+
/* Don't output a .file directive. That is only used by the assembler for
error reporting. */
#undef TARGET_ASM_FILE_START_FILE_DIRECTIVE
@@ -609,7 +612,7 @@ extern GTY(()) int darwin_ms_struct;
#define ASM_OUTPUT_LABELREF(FILE,NAME) \
do { \
const char *xname = (NAME); \
- if (! strcmp (xname, "<pic base>")) \
+ if (! strcmp (xname, MACHOPIC_FUNCTION_BASE_NAME)) \
machopic_output_function_base_name(FILE); \
else if (xname[0] == '&' || xname[0] == '*') \
{ \