From e4faf1eb91ef00a3f25dccec7bc7a20b922d4ead Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Fri, 18 Jun 1999 01:03:36 +0000 Subject: [PATCH] Use ASM_OUTPUT_DEF_FROM_DECLS in preference to ASM_OUTPUT_DEF, if it is defined. From-SVN: r27585 --- gcc/ChangeLog | 8 ++++++++ gcc/tm.texi | 8 ++++++++ gcc/varasm.c | 4 ++++ 3 files changed, 20 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 9dc2b79bc18..6b08f8b9776 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,11 @@ +Wed Jun 16 18:19:13 1999 Nick Clifton + + * varasm.c (assemble_alias): Use ASM_OUTPUT_DEF_FROM_DECLS in + preference to ASM_OUTPUT_DEF, if it is defined. + + * tm.texi: Document new, optional target macro + ASM_OUTPUT_DEF_FROM_DECLS. + Thu Jun 17 15:07 1999 Bruce Korb * fixincludes: ISCNTL patch diff --git a/gcc/tm.texi b/gcc/tm.texi index 8816d474876..1527d314536 100644 --- a/gcc/tm.texi +++ b/gcc/tm.texi @@ -5763,6 +5763,14 @@ which defines (equates) the symbol @var{name} to have the value @var{value}. If SET_ASM_OP is defined, a default definition is provided which is correct for most systems. +@findex ASM_OUTPUT_DEF_FROM_DECLS +@item ASM_OUTPUT_DEF (@var{stream}, @var{decl_of_name}, @var{decl_of_value}) +A C statement to output to the stdio stream @var{stream} assembler code +which defines (equates) the symbol whoes tree node is @var{decl_of_name} +to have the value of the tree node @var{decl_of_value}. This macro will +be used in preference to @samp{ASM_OUTPUT_DEF} if it is defined and if +the tree nodes are available. + @findex ASM_OUTPUT_DEFINE_LABEL_DIFFERENCE_SYMBOL @item ASM_OUTPUT_DEFINE_LABEL_DIFFERENCE_SYMBOL (@var{stream}, @var{symbol}, @var{high}, @var{low}) A C statement to output to the stdio stream @var{stream} assembler code diff --git a/gcc/varasm.c b/gcc/varasm.c index f463d847d4a..999456c5f7f 100644 --- a/gcc/varasm.c +++ b/gcc/varasm.c @@ -4423,7 +4423,11 @@ assemble_alias (decl, target) ASM_GLOBALIZE_LABEL (asm_out_file, name); } +#ifdef ASM_OUTPUT_DEF_FROM_DECLS + ASM_OUTPUT_DEF_FROM_DECLS (asm_out_file, decl, target); +#else ASM_OUTPUT_DEF (asm_out_file, name, IDENTIFIER_POINTER (target)); +#endif TREE_ASM_WRITTEN (decl) = 1; #else #ifdef ASM_OUTPUT_WEAK_ALIAS