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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,5bef5e9c5bedc675 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2004-01-03 00:44:39 PST Path: archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!kibo.news.demon.net!news.demon.co.uk!demon!not-for-mail From: "Luke A. Guest" Newsgroups: comp.lang.ada Subject: Re: [No_Elaboration_Code] GNAT still generating rep_to_pos, why? Date: Sat, 03 Jan 2004 08:44:37 +0000 Message-ID: References: NNTP-Posting-Host: abyss2.demon.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: news.demon.co.uk 1073119478 6193 62.49.62.197 (3 Jan 2004 08:44:38 GMT) X-Complaints-To: abuse@demon.net NNTP-Posting-Date: Sat, 3 Jan 2004 08:44:38 +0000 (UTC) User-Agent: Pan/0.14.0 (I'm Being Nibbled to Death by Cats!) Xref: archiver1.google.com comp.lang.ada:4061 Date: 2004-01-03T08:44:37+00:00 List-Id: On Fri, 02 Jan 2004 16:17:59 -0500, Stephen Leake wrote: > At the same time, it wouldn't hurt to send a message to > report@gnat.com, describing what you are doing and what you'd like to Well, I did that and here's the reply: Luke A. Guest wrote: > I'm currently using GCC-3.3.2 with the FSF GNAT package. Sorry, we don't provide any kind of support for versions of GNAT compiled from the FSF sources at this address. But I have added a couple of notes below. > I have a package which has all my definitions and types needed by the > functions in the ARCS PROM. I have also needed to add the > No_Elaboration_Code pragma to get static initialisation code much like > that of C. Now, here are the problems: No_Run_Time is no longer a supported or documented pragma > 1) There are two _rep_to_pos functions generated but never > used (it doesn't need them). > > 2) I have set up my SP_Block record instance to be located at a > particular memory address, yet the compiler still generates code to > initialise this structure. Although it is in fact working as intended. > I have had to add the following GCC options "-ffunction-sections > -fdata-sections" and linker option "--gc-sections" to remove the > redundant code. We do not claim to support these options, so you are on your own if you use them > I have this in my gnat.adc file: > > pragma No_Run_Time; > pragma Restrictions(No_Exceptions); > > I also included this "pragma preelaborate" in my ARCS_Prom package. > > You can see the rest of the conversation in comp.lang.ada > "[No_Elaboration_Code] GNAT still generating rep_to_pos, why?" Sorry, I do not read comp.lang.ada (and have not for a long time). Perhaps someone there can help you further.