diff options
author | Nick Clifton <nickc@cygnus.com> | 1999-06-18 01:03:36 +0000 |
---|---|---|
committer | Nick Clifton <nickc@gcc.gnu.org> | 1999-06-18 01:03:36 +0000 |
commit | e4faf1eb91ef00a3f25dccec7bc7a20b922d4ead (patch) | |
tree | 05d575b233adb948f17e2868d6723786bfc51546 | |
parent | a281e39af547ec38b22d5e40461946a3b6049380 (diff) | |
download | gcc-e4faf1eb91ef00a3f25dccec7bc7a20b922d4ead.zip gcc-e4faf1eb91ef00a3f25dccec7bc7a20b922d4ead.tar.gz gcc-e4faf1eb91ef00a3f25dccec7bc7a20b922d4ead.tar.bz2 |
Use ASM_OUTPUT_DEF_FROM_DECLS in preference to ASM_OUTPUT_DEF, if it is defined.
From-SVN: r27585
-rw-r--r-- | gcc/ChangeLog | 8 | ||||
-rw-r--r-- | gcc/tm.texi | 8 | ||||
-rw-r--r-- | gcc/varasm.c | 4 |
3 files changed, 20 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 9dc2b79..6b08f8b977 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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 diff --git a/gcc/tm.texi b/gcc/tm.texi index 8816d47..1527d31 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 f463d84..999456c 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 |