From 5a30ea5ab825fae8166ee5152dac06bcbb020d8f Mon Sep 17 00:00:00 2001 From: nickc Date: Fri, 18 Jun 1999 01:14:34 +0000 Subject: [PATCH] Use .thumb_set pseudo op to mark aliases of thumb functions. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@27586 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 5 +++++ gcc/config/arm/telf.h | 20 ++++++++++++++++++++ 2 files changed, 25 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 6b08f8b977..f5b0a48 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +Fri Jun 18 09:11:07 1999 Nick Clifton + + * 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 * varasm.c (assemble_alias): Use ASM_OUTPUT_DEF_FROM_DECLS in diff --git a/gcc/config/arm/telf.h b/gcc/config/arm/telf.h index 69604a2..3e14a5f 100644 --- a/gcc/config/arm/telf.h +++ b/gcc/config/arm/telf.h @@ -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 -- 2.7.4