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=-1.9 required=5.0 tests=BAYES_00 autolearn=ham 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: g2news2.google.com!news3.google.com!proxad.net!feeder1-2.proxad.net!weretis.net!feeder5.news.weretis.net!news.szaf.org!news.gnuher.de!news.enyo.de!not-for-mail From: Florian Weimer Newsgroups: comp.lang.ada Subject: Re: What is the warning about builtin-function on gcc-4.6.0 ? Date: Sat, 26 Mar 2011 23:00:48 +0100 Message-ID: <87vcz5tucv.fsf@mid.deneb.enyo.de> References: <87aagiclte.fsf@mid.deneb.enyo.de> <475d10ca-5d4e-490c-9b88-e12cd3cd3faa@b13g2000prf.googlegroups.com> <87d3lejjyv.fsf@mid.deneb.enyo.de> <87a51f81-4704-42e6-98a0-dde50c74462e@34g2000pru.googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ruchba.enyo.de 1301176848 23919 172.17.135.6 (26 Mar 2011 22:00:48 GMT) X-Complaints-To: news@enyo.de Cancel-Lock: sha1:TOnn37dtkU+ifXHvHSSu2Fp9bAQ= Xref: g2news2.google.com comp.lang.ada:19456 Date: 2011-03-26T23:00:48+01:00 List-Id: * ytomino: > 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? I believe the compiler will resolve the overload internally, but I'm not sure. > It seems to me that the compiler shall accept isinf(double only). I think you mean "isinfl", but that should be accepted.