From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26452 invoked by alias); 3 Jul 2005 06:53:09 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 26288 invoked by uid 22791); 3 Jul 2005 06:53:03 -0000 Received: from postfix3-1.free.fr (HELO postfix3-1.free.fr) (213.228.0.44) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Sun, 03 Jul 2005 06:53:03 +0000 Received: from [82.239.100.53] (coudert.name [82.239.100.53]) by postfix3-1.free.fr (Postfix) with ESMTP id 8788F173499; Sun, 3 Jul 2005 08:53:01 +0200 (CEST) Message-ID: <42C78B4C.6060802@gmail.com> Date: Sun, 03 Jul 2005 06:53:00 -0000 From: FX Coudert User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050317) MIME-Version: 1.0 To: =?ISO-8859-1?Q?Fran=E7ois-Xavier_Coudert?= CC: gcc@gcc.gnu.org, patch Subject: Re: Add clog10 to builtins.def, round 2 References: <19c433eb050629145115f1eb07@mail.gmail.com> In-Reply-To: <19c433eb050629145115f1eb07@mail.gmail.com> Content-Type: multipart/mixed; boundary="------------070103000100000209050903" X-SW-Source: 2005-07/txt/msg00083.txt.bz2 This is a multi-part message in MIME format. --------------070103000100000209050903 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-length: 323 > The fortran front-end needs to recognize clog10, clog10f and clog10l a > proper built-ins. Attached patch tries to add them to clog10, under a > new category: DEF_EXT_C99RES_BUILTIN (as suggested by jsm28). > > Can someone review this? Is it OK? Just realized I forgot the ChangeLog entry to go with it. OK to commit? --------------070103000100000209050903 Content-Type: text/plain; name="allkinds2_middle-end.ChangeLog" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="allkinds2_middle-end.ChangeLog" Content-length: 208 2005-06-28 Francois-Xavier Coudert * builtins.def: Add DEF_EXT_C99RES_BUILTIN to define builtins that C99 reserve for future use. Use it to define clog10, clog10f and clog10l. --------------070103000100000209050903 Content-Type: text/plain; name="allkinds2_middle-end.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="allkinds2_middle-end.diff" Content-length: 2093 Index: gcc/builtins.def =================================================================== RCS file: /cvsroot/gcc/gcc/gcc/builtins.def,v retrieving revision 1.105 diff -u -3 -p -r1.105 builtins.def --- gcc/builtins.def 27 Jun 2005 12:17:18 -0000 1.105 +++ gcc/builtins.def 3 Jul 2005 02:44:06 -0000 @@ -119,6 +119,13 @@ Software Foundation, 51 Franklin Street, DEF_BUILTIN (ENUM, "__builtin_" NAME, BUILT_IN_NORMAL, TYPE, TYPE, \ true, true, !flag_isoc99, ATTRS, TARGET_C99_FUNCTIONS, true) +/* Builtin that C99 reserve the name for future use. We can still recognize + the builtin in C99 mode but we can't produce it implicitly. */ +#undef DEF_EXT_C99RES_BUILTIN +#define DEF_EXT_C99RES_BUILTIN(ENUM, NAME, TYPE, ATTRS) \ + DEF_BUILTIN (ENUM, "__builtin_" NAME, BUILT_IN_NORMAL, TYPE, TYPE, \ + true, true, true, ATTRS, false, true) + /* Allocate the enum and the name for a builtin, but do not actually define it here at all. */ #undef DEF_BUILTIN_STUB @@ -436,6 +443,9 @@ DEF_C99_BUILTIN (BUILT_IN_CIMAGL, DEF_C99_BUILTIN (BUILT_IN_CLOG, "clog", BT_FN_COMPLEX_DOUBLE_COMPLEX_DOUBLE, ATTR_MATHFN_FPROUNDING) DEF_C99_BUILTIN (BUILT_IN_CLOGF, "clogf", BT_FN_COMPLEX_FLOAT_COMPLEX_FLOAT, ATTR_MATHFN_FPROUNDING) DEF_C99_BUILTIN (BUILT_IN_CLOGL, "clogl", BT_FN_COMPLEX_LONGDOUBLE_COMPLEX_LONGDOUBLE, ATTR_MATHFN_FPROUNDING) +DEF_EXT_C99RES_BUILTIN (BUILT_IN_CLOG10, "clog10", BT_FN_COMPLEX_DOUBLE_COMPLEX_DOUBLE, ATTR_MATHFN_FPROUNDING) +DEF_EXT_C99RES_BUILTIN (BUILT_IN_CLOG10F, "clog10f", BT_FN_COMPLEX_FLOAT_COMPLEX_FLOAT, ATTR_MATHFN_FPROUNDING) +DEF_EXT_C99RES_BUILTIN (BUILT_IN_CLOG10L, "clog10l", BT_FN_COMPLEX_LONGDOUBLE_COMPLEX_LONGDOUBLE, ATTR_MATHFN_FPROUNDING) DEF_C99_BUILTIN (BUILT_IN_CONJ, "conj", BT_FN_COMPLEX_DOUBLE_COMPLEX_DOUBLE, ATTR_CONST_NOTHROW_LIST) DEF_C99_BUILTIN (BUILT_IN_CONJF, "conjf", BT_FN_COMPLEX_FLOAT_COMPLEX_FLOAT, ATTR_CONST_NOTHROW_LIST) DEF_C99_BUILTIN (BUILT_IN_CONJL, "conjl", BT_FN_COMPLEX_LONGDOUBLE_COMPLEX_LONGDOUBLE, ATTR_CONST_NOTHROW_LIST) --------------070103000100000209050903--