]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
final.c (output_addr_const): Use ASM_OUTPUT_SYMBOL_REF.
authorAlexandre Oliva <aoliva@redhat.com>
Wed, 20 Dec 2000 09:03:23 +0000 (09:03 +0000)
committerAlexandre Oliva <aoliva@gcc.gnu.org>
Wed, 20 Dec 2000 09:03:23 +0000 (09:03 +0000)
* final.c (output_addr_const): Use ASM_OUTPUT_SYMBOL_REF.
* tm.texi: Document it.

From-SVN: r38395

gcc/ChangeLog
gcc/final.c
gcc/tm.texi

index 79cb407608cf32b17161f9261fa58810dc01fcc5..1bfbdfa17f1c964a5e9b6d9b53afd46bda046154 100644 (file)
@@ -1,3 +1,8 @@
+2000-12-20  Alexandre Oliva  <aoliva@redhat.com>
+
+       * final.c (output_addr_const): Use ASM_OUTPUT_SYMBOL_REF.
+       * tm.texi: Document it.
+
 2000-12-19  Benjamin Kosnik  <bkoz@redhat.com>
 
        * Makefile.in (-DGPLUSPLUS_TOOL_INCLUDE_DIR): Use build_tooldir
index 0d320e8b3486af4a486b0b53d5d3877bcc657a90..bbdb59eb13e6b4cb8c827a3bb7315e2f893706b8 100644 (file)
@@ -3673,7 +3673,11 @@ output_addr_const (file, x)
       break;
 
     case SYMBOL_REF:
+#ifdef ASM_OUTPUT_SYMBOL_REF
+      ASM_OUTPUT_SYMBOL_REF (file, x);
+#else
       assemble_name (file, XSTR (x, 0));
+#endif
       break;
 
     case LABEL_REF:
index 85923e617005dc2bde75cbe79ad8e525a3a18541..511f8f0dd4dd569f0bbe233d60fcc32be5f5694b 100644 (file)
@@ -5949,6 +5949,14 @@ The definition should be a C statement to output a word containing
 a reference to the label @var{label}.
 @end ignore
 
+@findex ASM_OUTPUT_SYMBOL_REF
+@item ASM_OUTPUT_SYMBOL_REF (@var{stream}, @var{sym})
+A C statement (sans semicolon) to output a reference to
+@code{SYMBOL_REF} @var{sym}.  If not defined, @code{assemble_output}
+will be used to output the name of the symbol.  This macro may be used
+to modify the way a symbol is referenced depending on information
+encoded by @code{ENCODE_SECTION_INFO}.
+
 @findex ASM_OUTPUT_INTERNAL_LABEL
 @item ASM_OUTPUT_INTERNAL_LABEL (@var{stream}, @var{prefix}, @var{num})
 A C statement to output to the stdio stream @var{stream} a label whose