From patchwork Tue Oct 25 15:37:30 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cesar Philippidis X-Patchwork-Id: 79220 Delivered-To: patch@linaro.org Received: by 10.140.97.247 with SMTP id m110csp3182856qge; Tue, 25 Oct 2016 08:38:08 -0700 (PDT) X-Received: by 10.36.107.72 with SMTP id v69mr2242563itc.37.1477409888438; Tue, 25 Oct 2016 08:38:08 -0700 (PDT) Return-Path: Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id y4si17732093pab.169.2016.10.25.08.38.08 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 25 Oct 2016 08:38:08 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-return-439516-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) client-ip=209.132.180.131; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org; spf=pass (google.com: domain of gcc-patches-return-439516-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=gcc-patches-return-439516-patch=linaro.org@gcc.gnu.org DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :subject:to:references:from:message-id:date:mime-version :in-reply-to:content-type; q=dns; s=default; b=JMwtFecPJjyurSTjh fu2AmqacNKVEBZLJy72cL6q9CypZzufSccvQA9UFJyVpruucY6QX0Z2ZDwlgZBBg zl5Ac1LByLChAX/3XjD4pYlfdL3jOgZll+T0ZCsU42Pjz701wpWwPheNedlaMbO8 fnEyCjP/DlBrvRfCZxrEdV/eYw= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :subject:to:references:from:message-id:date:mime-version :in-reply-to:content-type; s=default; bh=CquDYYvENMa7+4tbzglrL1k TgrI=; b=wJDKKMmxKcUAMH06tI8Pj8Aku/w0MJq69eCuzW7oL2Cbszv/Yhz1BNu sch5Zx5fslGSim+O+i8xwvoc5vtY+iwL03QBBZ7nK8d+hQzTpMNjaCV6T1vbegHW xMDZQ/+Jy84keGEAP+eq3LfDY1jG6K91JVijQMDWsYHGOxqEwHWE= Received: (qmail 127027 invoked by alias); 25 Oct 2016 15:37:48 -0000 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 Received: (qmail 126945 invoked by uid 89); 25 Oct 2016 15:37:46 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_NONE, SPF_PASS, URIBL_RED autolearn=ham version=3.3.2 spammy=lies, degrees, cesar, Hx-languages-length:1556 X-Spam-User: qpsmtpd, 2 recipients X-HELO: relay1.mentorg.com Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 25 Oct 2016 15:37:36 +0000 Received: from svr-orw-mbx-04.mgc.mentorg.com ([147.34.90.204]) by relay1.mentorg.com with esmtp id 1bz3nB-0002Kn-8U from Cesar_Philippidis@mentor.com ; Tue, 25 Oct 2016 08:37:33 -0700 Received: from [127.0.0.1] (147.34.91.1) by SVR-ORW-MBX-04.mgc.mentorg.com (147.34.90.204) with Microsoft SMTP Server (TLS) id 15.0.1210.3; Tue, 25 Oct 2016 08:37:30 -0700 Subject: Re: PING! Re: [PATCH, Fortran] Extension: COTAN and degree-valued trig intrinsics with -fdec-math To: Fritz Reese , fortran , Steve Kargl , gcc-patches References: From: Cesar Philippidis Message-ID: <57f18bee-dbd3-50d4-a377-8578b0a9e12a@codesourcery.com> Date: Tue, 25 Oct 2016 08:37:30 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 MIME-Version: 1.0 In-Reply-To: X-ClientProxiedBy: svr-orw-mbx-01.mgc.mentorg.com (147.34.90.201) To SVR-ORW-MBX-04.mgc.mentorg.com (147.34.90.204) On 10/10/2016 08:06 AM, Fritz Reese wrote: > --- a/gcc/fortran/intrinsic.texi > +++ b/gcc/fortran/intrinsic.texi > @@ -23,6 +23,9 @@ Some basic guidelines for editing this document: > @end ignore > > @tex > +\gdef\acosd{\mathop{\rm acosd}\nolimits} > +\gdef\asind{\mathop{\rm asind}\nolimits} > +\gdef\atand{\mathop{\rm atand}\nolimits} > \gdef\acos{\mathop{\rm acos}\nolimits} > \gdef\asin{\mathop{\rm asin}\nolimits} > \gdef\atan{\mathop{\rm atan}\nolimits} There should be a new mathop for cosd or else ... > +@item @emph{Return value}: > +The return value is of the same type and kind as @var{X}. The real part > +of the result is in degrees. If @var{X} is of the type @code{REAL}, > +the return value lies in the range @math{ -1 \leq \cosd (x) \leq 1}. ... this will cause texinfo/pdflatex to complain about an undefined function when you try to run 'make pdf'. The attached adds a mathop for cosd. Is this patch OK for trunk? Cesar 2016-10-25 Cesar Philippidis gcc/fortran/ * intrinsic.texi (cosd): New mathop. diff --git a/gcc/fortran/intrinsic.texi b/gcc/fortran/intrinsic.texi index 16e1d5c..85f781e 100644 --- a/gcc/fortran/intrinsic.texi +++ b/gcc/fortran/intrinsic.texi @@ -32,6 +32,7 @@ Some basic guidelines for editing this document: \gdef\acosh{\mathop{\rm acosh}\nolimits} \gdef\asinh{\mathop{\rm asinh}\nolimits} \gdef\atanh{\mathop{\rm atanh}\nolimits} +\gdef\cosd{\mathop{\rm cosd}\nolimits} @end tex