final.c (output_addr_const): Use ASM_OUTPUT_SYMBOL_REF.

* final.c (output_addr_const): Use ASM_OUTPUT_SYMBOL_REF.
* tm.texi: Document it.

From-SVN: r38395
This commit is contained in:
Alexandre Oliva 2000-12-20 09:03:23 +00:00 committed by Alexandre Oliva
parent f4665e9ba4
commit 99c8c61c83
3 changed files with 17 additions and 0 deletions

View 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

View 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:

View 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