From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,ecc38b3271b36b88 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!34g2000pru.googlegroups.com!not-for-mail From: ytomino Newsgroups: comp.lang.ada Subject: Re: What is the warning about builtin-function on gcc-4.6.0 ? Date: Sat, 26 Mar 2011 14:58:49 -0700 (PDT) Organization: http://groups.google.com Message-ID: <87a51f81-4704-42e6-98a0-dde50c74462e@34g2000pru.googlegroups.com> References: <87aagiclte.fsf@mid.deneb.enyo.de> <475d10ca-5d4e-490c-9b88-e12cd3cd3faa@b13g2000prf.googlegroups.com> <87d3lejjyv.fsf@mid.deneb.enyo.de> NNTP-Posting-Host: 114.164.26.2 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: posting.google.com 1301176729 9574 127.0.0.1 (26 Mar 2011 21:58:49 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sat, 26 Mar 2011 21:58:49 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: 34g2000pru.googlegroups.com; posting-host=114.164.26.2; posting-account=Mi71UQoAAACnFhXo1NVxPlurinchtkIj User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_8; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.151 Safari/534.16,gzip(gfe) Xref: g2news1.google.com comp.lang.ada:18484 Date: 2011-03-26T14:58:49-07:00 List-Id: In definition of builtin-functions: http://gcc.gnu.org/viewcvs/trunk/gcc/builtins.def?view=markup > DEF_C99_C90RES_BUILTIN (BUILT_IN_ISINF, "isinf", BT_FN_INT_VAR, ATTR_CONST_NOTHROW_TYPEGENERIC) > DEF_EXT_LIB_BUILTIN (BUILT_IN_ISINFF, "isinff", BT_FN_INT_FLOAT, ATTR_CONST_NOTHROW_LEAF_LIST) > DEF_EXT_LIB_BUILTIN (BUILT_IN_ISINFL, "isinfl", BT_FN_INT_LONGDOUBLE, ATTR_CONST_NOTHROW_LEAF_LIST) isinf has a "VAR" argument, it means overload, and isinff has an argument that is just float. This means, we can call isinff and isinfl, but can not call isinf (for double as Long_Float) from Ada. Is it right? It seems to me that the compiler shall accept isinf(double only).