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,UTF8 Path: g2news1.google.com!postnews.google.com!b13g2000prf.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 02:13:29 -0700 (PDT) Organization: http://groups.google.com Message-ID: <475d10ca-5d4e-490c-9b88-e12cd3cd3faa@b13g2000prf.googlegroups.com> References: <87aagiclte.fsf@mid.deneb.enyo.de> NNTP-Posting-Host: 114.164.26.2 Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1301130810 476 127.0.0.1 (26 Mar 2011 09:13:30 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sat, 26 Mar 2011 09:13:30 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: b13g2000prf.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:18461 Date: 2011-03-26T02:13:29-07:00 List-Id: On Mar 26, 5:45=C2=A0pm, Florian Weimer wrote: > * ytomino: > > > =C2=A0 =C2=A0function isfinite (X : Long_Float) return Integer; > > =C2=A0 =C2=A0pragma Import (Intrinsic, isfinite, "__builtin_isfinite"); > > isfinite and the corresponding GCC builtin are overloaded C99 > functions and cannot be called from Ada. I've used isfinite (and other builtins) with gcc-4.5.x=E3=80=81and it works fine. 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 ?