aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTorbjorn Granlund <tege@gnu.org>1994-01-20 00:34:47 +0000
committerTorbjorn Granlund <tege@gnu.org>1994-01-20 00:34:47 +0000
commit9153589571987706e37e83f9bb06b232774bfe9e (patch)
tree580c050ef067ed69e8f151f3ec46022b8ef1e77f
parentced21a3242e2d733a6554fea7e89b6cfd35eb47e (diff)
downloadgcc-9153589571987706e37e83f9bb06b232774bfe9e.zip
gcc-9153589571987706e37e83f9bb06b232774bfe9e.tar.gz
gcc-9153589571987706e37e83f9bb06b232774bfe9e.tar.bz2
(ASM_GLOBALIZE_LABEL): Don't globalize function labels here.
From-SVN: r6400
-rw-r--r--gcc/config/pa/pa.h15
1 files changed, 10 insertions, 5 deletions
diff --git a/gcc/config/pa/pa.h b/gcc/config/pa/pa.h
index f8c6556..5e382ab 100644
--- a/gcc/config/pa/pa.h
+++ b/gcc/config/pa/pa.h
@@ -1712,11 +1712,16 @@ readonly_data () \
} while (0)
#define ASM_GLOBALIZE_LABEL(FILE, NAME) \
- do { fputs ("\t.EXPORT ", FILE); assemble_name (FILE, NAME); \
- if (FUNCTION_NAME_P (NAME)) \
- fputs (",CODE\n", FILE); \
- else \
- fputs (",DATA\n", FILE);} while (0)
+ do { \
+ /* We only handle DATA objects here, functions are globalized in \
+ ASM_DECLARE_FUNCTION_NAME. */ \
+ if (! FUNCTION_NAME_P (NAME)) \
+ { \
+ fputs ("\t.EXPORT ", FILE); \
+ assemble_name (FILE, NAME); \
+ fputs (",DATA\n", FILE); \
+ } \
+ } while (0)
/* This is how to output a reference to a user-level label named NAME.
`assemble_name' uses this. */