public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* RFA: hook signture patches (2/11): TARGET_ASM_DECLARE_CONSTANT_NAME
@ 2010-06-30  2:11 Joern Rennecke
  0 siblings, 0 replies; only message in thread
From: Joern Rennecke @ 2010-06-30  2:11 UTC (permalink / raw)
  To: gcc-patches

[-- Attachment #1: Type: text/plain, Size: 1 bytes --]



[-- Attachment #2: TARGET_ASM_DECLARE_CONSTANT_NAME --]
[-- Type: text/plain, Size: 2488 bytes --]

2010-06-29  Joern Rennecke  <joern.rennecke@embecosm.com>

	* target.def (declare_constant_name): Change exp to expr.  Use DEFHOOK.
	* doc/tm.texi.in (TARGET_ASM_DECLARE_CONSTANT_NAME): Use @hook.
	* doc/tm.texi: Regenerate.

Index: doc/tm.texi
===================================================================
--- doc/tm.texi	(revision 161563)
+++ doc/tm.texi	(working copy)
@@ -7780,7 +7779,7 @@ You may wish to use @code{ASM_OUTPUT_TYP
 @code{ASM_OUTPUT_SIZE_DIRECTIVE} in the definition of this macro.
 @end defmac
 
-@deftypefn {Target Hook} void TARGET_ASM_DECLARE_CONSTANT_NAME (FILE * @var{file}, const char * @var{name}, const_tree @var{expr}, HOST_WIDE_INT @var{size})
+@deftypefn {Target Hook} void TARGET_ASM_DECLARE_CONSTANT_NAME (FILE *@var{file}, const char *@var{name}, const_tree @var{expr}, HOST_WIDE_INT @var{size})
 A target hook to output to the stdio stream @var{file} any text necessary
 for declaring the name @var{name} of a constant which is being defined.  This
 target hook is responsible for outputting the label definition (perhaps using
Index: doc/tm.texi.in
===================================================================
--- doc/tm.texi.in	(revision 161563)
+++ doc/tm.texi.in	(working copy)
@@ -7779,7 +7778,7 @@ You may wish to use @code{ASM_OUTPUT_TYP
 @code{ASM_OUTPUT_SIZE_DIRECTIVE} in the definition of this macro.
 @end defmac
 
-@deftypefn {Target Hook} void TARGET_ASM_DECLARE_CONSTANT_NAME (FILE * @var{file}, const char * @var{name}, const_tree @var{expr}, HOST_WIDE_INT @var{size})
+@hook TARGET_ASM_DECLARE_CONSTANT_NAME
 A target hook to output to the stdio stream @var{file} any text necessary
 for declaring the name @var{name} of a constant which is being defined.  This
 target hook is responsible for outputting the label definition (perhaps using
Index: target.def
===================================================================
--- target.def	(revision 161563)
+++ target.def	(working copy)
@@ -160,11 +160,10 @@ DEFHOOK
  default_internal_label)
 
 /* Output label for the constant.  */
-/* ??? The documentation uses a different name for the hook argument EXP.  */
-DEFHOOK_UNDOC
+DEFHOOK
 (declare_constant_name,
  "",
- void, (FILE *file, const char *name, const_tree exp, HOST_WIDE_INT size),
+ void, (FILE *file, const char *name, const_tree expr, HOST_WIDE_INT size),
  default_asm_declare_constant_name)
 
 /* Emit a ttype table reference to a typeinfo object.  */

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-06-30  1:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-06-30  2:11 RFA: hook signture patches (2/11): TARGET_ASM_DECLARE_CONSTANT_NAME Joern Rennecke

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).