From patchwork Wed Jun 30 01:57:07 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joern Rennecke X-Patchwork-Id: 57350 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id 56FA6B6F15 for ; Wed, 30 Jun 2010 11:57:15 +1000 (EST) Received: (qmail 5017 invoked by alias); 30 Jun 2010 01:57:13 -0000 Received: (qmail 4961 invoked by uid 22791); 30 Jun 2010 01:57:12 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL, BAYES_00, MIME_QP_LONG_LINE, RCVD_IN_DNSWL_LOW X-Spam-Check-By: sourceware.org Received: from c60.cesmail.net (HELO c60.cesmail.net) (216.154.195.49) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 30 Jun 2010 01:57:08 +0000 Received: from unknown (HELO delta2) ([192.168.1.50]) by c60.cesmail.net with ESMTP; 29 Jun 2010 21:57:07 -0400 Received: from 78.149.179.58 ([78.149.179.58]) by webmail.spamcop.net (Horde MIME library) with HTTP; Tue, 29 Jun 2010 21:57:07 -0400 Message-ID: <20100629215707.zb52a5x8zpwo8g8g-nzlynne@webmail.spamcop.net> Date: Tue, 29 Jun 2010 21:57:07 -0400 From: Joern Rennecke To: gcc-patches@gcc.gnu.org Subject: RFA: hook signture patches (2/11): TARGET_ASM_DECLARE_CONSTANT_NAME MIME-Version: 1.0 User-Agent: Internet Messaging Program (IMP) H3 (4.1.4) Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org 2010-06-29 Joern Rennecke * 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. */