[PATCH] Hookize ASM_OUTPUT_SOURCE_FILENAME
Richard Henderson
rth@redhat.com
Fri Jul 16 22:47:00 GMT 2010
On 07/16/2010 01:59 PM, Anatoly Sokolov wrote:
> Index: gcc/doc/tm.texi.in
> ===================================================================
> --- gcc/doc/tm.texi.in (revision 162265)
> +++ gcc/doc/tm.texi.in (working copy)
> @@ -7287,6 +7287,15 @@
> for the file format in use is appropriate.
> @end defmac
>
> +@hook TARGET_ASM_OUTPUT_SOURCE_FILENAME
> +Output COFF information or DWARF debugging information which indicates
> +that filename @var{name} is the current source file to the stdio
> +stream @var{file}.
> +
> +This target hook need not be defined if the standard form of output
> +for the file format in use is appropriate.
> +@end deftypefn
This text goes ....
> +
> @defmac OUTPUT_QUOTED_STRING (@var{stream}, @var{string})
> A C statement to output the string @var{string} to the stdio stream
> @var{stream}. If you do not call the function @code{output_quoted_string}
> Index: gcc/target.def
> ===================================================================
> --- gcc/target.def (revision 162265)
> +++ gcc/target.def (working copy)
> @@ -404,6 +404,14 @@
> void, (FILE *f),
> NULL)
>
> +/* Output information which indicates that filename is the current source
> + file. */
> +DEFHOOK
> +(output_source_filename,
> + "",
... here.
> + void ,(FILE *file, const char *name),
> + default_asm_output_source_filename)
Otherwise ok.
r~
More information about the Gcc-patches
mailing list