This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Hookize ASM_OUTPUT_SOURCE_FILENAME
- From: Richard Henderson <rth at redhat dot com>
- To: Anatoly Sokolov <aesok at post dot ru>
- Cc: gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Fri, 16 Jul 2010 15:46:56 -0700
- Subject: Re: [PATCH] Hookize ASM_OUTPUT_SOURCE_FILENAME
- References: <1188184004.20100717005944@post.ru>
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~