From: "Luke A. Guest" <laguest@n_o_p_o_r_k_a_n_d_h_a_m.abyss2.demon.co.uk>
Subject: Re: [No_Elaboration_Code] GNAT still generating rep_to_pos, why?
Date: Sat, 03 Jan 2004 08:44:37 +0000
Date: 2004-01-03T08:44:37+00:00 [thread overview]
Message-ID: <pan.2004.01.03.08.44.37.847177@n_o_p_o_r_k_a_n_d_h_a_m.abyss2.demon.co.uk> (raw)
In-Reply-To: mailman.203.1073078292.31149.comp.lang.ada@ada-france.org
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 <enum type>_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.
next prev parent reply other threads:[~2004-01-03 8:44 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-01-02 11:59 [No_Elaboration_Code] GNAT still generating rep_to_pos, why? Luke A. Guest
2004-01-02 17:51 ` Stephen Leake
2004-01-02 18:14 ` Luke A. Guest
2004-01-02 19:31 ` Per Sandberg
2004-01-02 19:46 ` Luke A. Guest
2004-01-02 21:17 ` Stephen Leake
2004-01-02 22:16 ` Luke A. Guest
2004-01-03 1:43 ` Stephen Leake
[not found] ` <87ekuhe5wq.fsf@news.sdbk.de>
2004-01-03 9:58 ` Luke A. Guest
2004-01-03 8:44 ` Luke A. Guest [this message]
2004-01-03 1:12 ` Robert I. Eachus
2004-01-03 8:41 ` Luke A. Guest
2004-01-03 11:53 ` Simon Wright
2004-01-03 12:20 ` Luke A. Guest
2004-01-04 12:26 ` Simon Wright
2004-01-03 1:41 ` sk
2004-01-03 2:29 ` Luke A. Guest
2004-01-03 10:48 ` Florian Weimer
2004-01-03 11:32 ` Luke A. Guest
2004-01-03 13:11 ` Florian Weimer
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox