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, T_FILL_THIS_FORM_SHORT autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,b8a1363302988cfe X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "(see below)" Newsgroups: comp.lang.ada Subject: Re: GNAT GPL 2009 for Mac OS X (Snow Leopard) Date: Wed, 23 Dec 2009 03:29:14 +0000 Message-ID: References: <5b0bf629-0935-414d-9a57-1757632840b8@d10g2000yqh.googlegroups.com> <96854a61-2032-49b1-a8b2-8a5aee181701@22g2000yqr.googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Trace: individual.net 0Z4E2PHmpx9DSS6LBBQIUwMMOXfoq5iHl6E+Tu5eKax5UhDpmd Cancel-Lock: sha1:/AtMx1dm67UBrVGcc5bm9Q5ymTM= User-Agent: Microsoft-Entourage/12.20.0.090605 Thread-Topic: GNAT GPL 2009 for Mac OS X (Snow Leopard) Thread-Index: AcqDgBl6o4qPZ8w8oEm1A+VDIo7rjQ== Xref: g2news1.google.com comp.lang.ada:8494 Date: 2009-12-23T03:29:14+00:00 List-Id: On 22/12/2009 23:37, in article 96854a61-2032-49b1-a8b2-8a5aee181701@22g2000yqr.googlegroups.com, "sjw" wrote: > Have just uploaded gnat-gpl-2009-i386-apple-darwin10.2.0-1.tar.bz2, > without the dependency; will remove the offending files after a day or > two. Unfortunately, it goes very badly wrong at -O1 optimization level on another example: ---------------------------------------------------------------------------- package test is type i64 is mod 2**64; for i64'Size use 64; subtype a_virtual_address is i64; subtype an_offset is a_virtual_address; function fetch_byte_from ( location : i64; position : an_offset ) return i64; end test; -- package body test is type i08 is mod 2**8; for i08'Size use 8; type an_i08_array is array (a_virtual_address range <>) of i08; for an_i08_array'Component_Size use i08'Size; type an_i08_group is new an_i08_array (0..7); for an_i08_group'Size use i64'Size; pragma Convention (C, an_i08_group); function fetch_byte_from ( location : i64; position : an_offset ) return i64 is the_location_as_i08s : an_i08_group; for the_location_as_i08s'Address use location'Address; pragma Import (Ada, the_location_as_i08s); begin return i64(the_location_as_i08s ((position and 2#111#) xor 2#111#)); end fetch_byte_from; end test; ---------------------------------------------------------------------------- thus: +===========================GNAT BUG DETECTED==============================+ | GPL 2009 (20090519) (i386-apple-darwin10.2.0) GCC error: | | in gnat_to_gnu_entity, at ada/gcc-interface/decl.c:312 | | Error detected at test.adb:14:7 | ... This error message does not appear at -O3, but the generated object program is non-functional, although that may be for a different reason, of course. This code compiled and ran correctly under the Leopard compilers I was using until I stupidly installed SL. What on earth has happened for GNAT to regress so badly in the face of what is often described as a tidying-up and performance release of OS X? -- Bill Findlay chez blueyonder.co.uk