Use .thumb_set pseudo op to mark aliases of thumb functions.

From-SVN: r27586
This commit is contained in:
Nick Clifton 1999-06-18 01:14:34 +00:00 committed by Nick Clifton
parent e4faf1eb91
commit 9ddab891df
2 changed files with 25 additions and 0 deletions

View File

@ -1,3 +1,8 @@
Fri Jun 18 09:11:07 1999 Nick Clifton <nickc@cygnus.com>
* config/arm/telf.h (ASM_OUTPUT_DEF_FROM_DECLS): New Marco: USe
.thumb_set pseudo op to mark aliases of thumb functions.
Wed Jun 16 18:19:13 1999 Nick Clifton <nickc@cygnus.com>
* varasm.c (assemble_alias): Use ASM_OUTPUT_DEF_FROM_DECLS in

View File

@ -140,6 +140,26 @@ extern int arm_structure_size_boundary;
} \
while (0)
/* For aliases of functions we use .thumb_set instead. */
#define ASM_OUTPUT_DEF_FROM_DECLS(FILE,DECL1,DECL2) \
do \
{ \
char * LABEL1 = XSTR (XEXP (DECL_RTL (decl), 0), 0); \
char * LABEL2 = IDENTIFIER_POINTER (DECL2); \
\
if (TREE_CODE (DECL1) == FUNCTION_DECL) \
{ \
fprintf (FILE, "\t.thumb_set "); \
assemble_name (FILE, LABEL1); \
fprintf (FILE, ","); \
assemble_name (FILE, LABEL2); \
fprintf (FILE, "\n"); \
} \
else \
ASM_OUTPUT_DEF (FILE, LABEL1, LABEL2); \
} \
while (0)
/* A list of other sections which the compiler might be "in" at any
given time. */
#undef EXTRA_SECTIONS