]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Use ASM_OUTPUT_DEF_FROM_DECLS in preference to ASM_OUTPUT_DEF, if it is defined.
authorNick Clifton <nickc@cygnus.com>
Fri, 18 Jun 1999 01:03:36 +0000 (01:03 +0000)
committerNick Clifton <nickc@gcc.gnu.org>
Fri, 18 Jun 1999 01:03:36 +0000 (01:03 +0000)
From-SVN: r27585

gcc/ChangeLog
gcc/tm.texi
gcc/varasm.c

index 9dc2b79bc18567b8f5eacbaabdb3f26f51bf9081..6b08f8b9776ef3f06bbfbab24bab21e9b7f82511 100644 (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
index 8816d47487658d10d762c13027a57e21f3f55b4a..1527d31453613a1af381d0ae37723508631361a9 100644 (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
index f463d847d4ad742f3d745d5bccabf6cc42c2de4a..999456c5f7f1331ad0989ff2d3e75cd671ddcd68 100644 (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