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: a07f3367d7,e615e5c9d121e052 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit X-Received: by 10.66.84.167 with SMTP id a7mr2079892paz.6.1358746577888; Sun, 20 Jan 2013 21:36:17 -0800 (PST) Path: 6ni9303pbd.1!nntp.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed.news.ucla.edu!news.snarked.org!news.glorb.com!news-out.readnews.com!transit3.readnews.com!panix!newsfeed-00.mathworks.com!nntp.TheWorld.com!.POSTED!not-for-mail From: Robert A Duff Newsgroups: comp.lang.ada Subject: Re: From 16 bit to 32 Date: Tue, 15 Jan 2013 09:40:45 -0500 Organization: The World Public Access UNIX, Brookline, MA Message-ID: References: NNTP-Posting-Host: shell01.theworld.com Mime-Version: 1.0 X-Trace: pcls6.std.com 1358260845 8533 192.74.137.71 (15 Jan 2013 14:40:45 GMT) X-Complaints-To: abuse@TheWorld.com NNTP-Posting-Date: Tue, 15 Jan 2013 14:40:45 +0000 (UTC) User-Agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.3 (irix) Cancel-Lock: sha1:rspZXWeJrpwIpLKNDFTnIhHN5Vs= Content-Type: text/plain; charset=us-ascii Date: 2013-01-15T09:40:45-05:00 List-Id: "Randy Brukardt" writes: > It specifically exists for a case like the OP's. According to the > documentation: > > -gnatI > Ignore representation clauses. When this switch is used, all representation > clauses are treated as comments. This is useful when initially porting code > where you want to ignore rep clause problems, and also for compiling foreign > code (particularly for use with ASIS). You can use it for experiments, but it's a dangerous switch. If you have nonportable code that you need to port, it's better to dig in and fix it. I rewrote the above documentation a while back, to make it sound a bit less appealing. The latest version says: `-gnatI' Ignore representation clauses. When this switch is used, representation clauses are treated as comments. This is useful when initially porting code where you want to ignore rep clause problems, and also for compiling foreign code (particularly for use with ASIS). The representation clauses that are ignored are: enumeration_representation_clause, record_representation_clause, and attribute_definition_clause for the following attributes: Address, Alignment, Bit_Order, Component_Size, Machine_Radix, Object_Size, Size, Small, Stream_Size, and Value_Size. Note that this option should be used only for compiling - the code is likely to malfunction at run time. We sometimes use it when running CodePeer, for example -- that's what "only for compiling" means. I also fixed some bugs. I think it was ignoring things like "for T'Write use...", which makes even less sense. Or something like that. - Bob