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: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: Richard Henderson <rth at redhat dot com>
- Cc: Anatoly Sokolov <aesok at post dot ru>, gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Mon, 26 Jul 2010 21:33:58 +0000 (UTC)
- Subject: Re: [PATCH] Hookize ASM_OUTPUT_SOURCE_FILENAME
- References: <1188184004.20100717005944@post.ru> <4C40E160.7090805@redhat.com>
On Fri, 16 Jul 2010, Richard Henderson wrote:
> 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 ....
> > +DEFHOOK
> > +(output_source_filename,
> > + "",
>
> ... here.
This only applies for new hook documentation text written from scratch,
not text based on existing target macro documentation. For text based on
old target macro documentation (under the GFDL), FSF approval is needed
for licensing it under the GPL. RMS can be quite efficient about
approving relicensing for existing text, so I encourage producing such
patches and seeking the relicensing, but they do need to go by RMS. (The
same applies to all the existing hooks with documentation not in
target.def: I encourage producing concrete patches for RMS's attention
showing the specific text that should be relicensed.)
--
Joseph S. Myers
joseph@codesourcery.com