Use ASM_OUTPUT_DEF_FROM_DECLS in preference to ASM_OUTPUT_DEF, if it is defined.

From-SVN: r27585
This commit is contained in:
Nick Clifton 1999-06-18 01:03:36 +00:00 committed by Nick Clifton
parent a281e39af5
commit e4faf1eb91
3 changed files with 20 additions and 0 deletions

View File

@ -1,3 +1,11 @@
Wed Jun 16 18:19:13 1999 Nick Clifton <nickc@cygnus.com>
* 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 <ddsinc09@ix.netcom.com>
* fixincludes: ISCNTL patch

View File

@ -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

View File

@ -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