aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/pa/pa.h
diff options
context:
space:
mode:
authorJeff Law <law@gcc.gnu.org>1998-02-18 05:38:29 -0700
committerJeff Law <law@gcc.gnu.org>1998-02-18 05:38:29 -0700
commit38488222568aa311219ead7362588e7104b94cc1 (patch)
treeae6fd71d11b4fd707c7ce916bf67a87318183526 /gcc/config/pa/pa.h
parentdffc0da4570b303370ea1182964c9c27ba4d13c1 (diff)
downloadgcc-38488222568aa311219ead7362588e7104b94cc1.zip
gcc-38488222568aa311219ead7362588e7104b94cc1.tar.gz
gcc-38488222568aa311219ead7362588e7104b94cc1.tar.bz2
pa.h (ASM_OUTPUT_FUNCTION_PREFIX): Correctly translate from a function name to a section name.
8 * pa.h (ASM_OUTPUT_FUNCTION_PREFIX): Correctly translate from a function name to a section name. From-SVN: r18078
Diffstat (limited to 'gcc/config/pa/pa.h')
-rw-r--r--gcc/config/pa/pa.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/config/pa/pa.h b/gcc/config/pa/pa.h
index 0e9d040..bfa815c 100644
--- a/gcc/config/pa/pa.h
+++ b/gcc/config/pa/pa.h
@@ -1123,6 +1123,9 @@ extern enum cmp_type hppa_branch_type;
fprintf (FILE, "\n\t.EXIT\n\t.PROCEND\n"); \
}
+/* NAME refers to the function's name. If we are placing each function into
+ its own section, we need to switch to the section for this function. Note
+ that the section name will have a "." prefix. */
#define ASM_OUTPUT_FUNCTION_PREFIX(FILE, NAME) \
{ \
char *name; \
@@ -1131,7 +1134,7 @@ extern enum cmp_type hppa_branch_type;
fputs ("\t.NSUBSPA $CODE$,QUAD=0,ALIGN=8,ACCESS=44,CODE_ONLY\n", FILE); \
else if (! TARGET_PORTABLE_RUNTIME && TARGET_GAS) \
fprintf (FILE, \
- "\t.SUBSPA %s\n", name); \
+ "\t.SUBSPA .%s\n", name); \
}
#define ASM_DECLARE_FUNCTION_NAME(FILE, NAME, DECL) \