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,92f1b9f519795959 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!newsread.com!news-xfer.newsread.com!news-feed01.roc.ny.frontiernet.net!nntp.frontiernet.net!newscon06.news.prodigy.com!prodigy.net!newsfeed-00.mathworks.com!nntp.TheWorld.com!not-for-mail From: Robert A Duff Newsgroups: comp.lang.ada Subject: Re: Gnat 3.15p pragma issues Date: 03 Nov 2005 18:00:17 -0500 Organization: The World Public Access UNIX, Brookline, MA Message-ID: References: <1131029395.700984.154230@f14g2000cwb.googlegroups.com> NNTP-Posting-Host: shell01.theworld.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: pcls4.std.com 1131058817 25713 192.74.137.71 (3 Nov 2005 23:00:17 GMT) X-Complaints-To: abuse@TheWorld.com NNTP-Posting-Date: Thu, 3 Nov 2005 23:00:17 +0000 (UTC) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Xref: g2news1.google.com comp.lang.ada:6162 Date: 2005-11-03T18:00:17-05:00 List-Id: "Erik Woulfe" writes: > I am attempting to move a large amount of code from an Apex compiler > system to the Gnat 3.15p compiler in order to gain more flexibility in > mutli-language code interaction (namely between C++ and Ada). One of > the problems that I encounter when making this move is that the Gnat > compiler does not recognize many of the pragma statements that Apex had > no problems with. However, I do not think that any/all of these are > Apex specific, such as pragma "Inline" and pragma "Not_Elaborated". Has > anyone had any experience with having common pragmas not being > recognized? Pragma Inline is defined by the language. Not_Elaborated is implementation defined. There is a list of language-defined pragmas in the back of the RM. To know whether it's safe to simply delete implementation-defined pragmas, you'll have to look at the Apex documentation. Some pragmas are "merely" optimization hints, for example. >... Am I perhaps not referencing the correct libraries in my > gnatmake call? No, that probably has nothing to do with it. - Bob