From patchwork Wed Jun 30 01:58:42 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joern Rennecke X-Patchwork-Id: 57351 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 1F7C6B6EFE for ; Wed, 30 Jun 2010 11:58:50 +1000 (EST) Received: (qmail 17827 invoked by alias); 30 Jun 2010 01:58:49 -0000 Received: (qmail 17772 invoked by uid 22791); 30 Jun 2010 01:58:48 -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:58:44 +0000 Received: from unknown (HELO delta2) ([192.168.1.50]) by c60.cesmail.net with ESMTP; 29 Jun 2010 21:58:42 -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:58:42 -0400 Message-ID: <20100629215842.y2kra1asgkko4ckc-nzlynne@webmail.spamcop.net> Date: Tue, 29 Jun 2010 21:58:42 -0400 From: Joern Rennecke To: gcc-patches@gcc.gnu.org Subject: RFA: hook signture patches (3/11): TARGET_BUILTIN_RECIPROCAL 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 (builtin_reciprocal): Change tm_fn to md_fn. Use DEFHOOK. * doc/tm.texi.in (TARGET_BUILTIN_RECIPROCAL): Use @hook. Index: doc/tm.texi =================================================================== --- doc/tm.texi.in (revision 161563) +++ doc/tm.texi.in (working copy) @@ -5645,7 +5645,7 @@ of @var{x}. The default version returns false for all constants. @end deftypefn -@deftypefn {Target Hook} tree TARGET_BUILTIN_RECIPROCAL (unsigned @var{fn}, bool @var{md_fn}, bool @var{sqrt}) +@hook TARGET_BUILTIN_RECIPROCAL This hook should return the DECL of a function that implements reciprocal of the builtin function with builtin function code @var{fn}, or @code{NULL_TREE} if such a function is not available. @var{md_fn} is true Index: target.def =================================================================== --- target.def (revision 161563) +++ target.def (working copy) @@ -1031,11 +1025,10 @@ DEFHOOK /* Returns a code for a target-specific builtin that implements reciprocal of the function, or NULL_TREE if not available. */ -/* ??? The documentation uses a different name for tm_fn. */ -DEFHOOK_UNDOC +DEFHOOK (builtin_reciprocal, "", - tree, (unsigned fn, bool tm_fn, bool sqrt), + tree, (unsigned fn, bool md_fn, bool sqrt), default_builtin_reciprocal) /* For a vendor-specific TYPE, return a pointer to a statically-allocated