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,UTF8 Path: g2news1.google.com!news2.google.com!news.glorb.com!feeder.erje.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 10:43:04 +0100 Message-ID: <87d3lejjyv.fsf@mid.deneb.enyo.de> References: <87aagiclte.fsf@mid.deneb.enyo.de> <475d10ca-5d4e-490c-9b88-e12cd3cd3faa@b13g2000prf.googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ruchba.enyo.de 1301132585 10809 172.17.135.6 (26 Mar 2011 09:43:05 GMT) X-Complaints-To: news@enyo.de Cancel-Lock: sha1:6vlW+FVRw1tx2M6u2BvUL8FT/7A= Xref: g2news1.google.com comp.lang.ada:18462 Date: 2011-03-26T10:43:04+01:00 List-Id: * ytomino: > I've used isfinite (and other builtins) with gcc-4.5.x、and it works > fine. Yes, the check was added in r161257, which was after the release of GCC 4.5. > And, with gcc-4.6.0, it reports warning, but it works fine exactly. > So I think these builtins *can* called from Ada. > > Is it disallowed in the specification ? I'm not aware of any specification, unfortunately. Perhaps the warning should only check if the argument is a floating-point type. It might it work in this case. But the underlying problem is that the import mechanism only targets C-like functions, and those overloaded C99 functions are not really C-like at all.