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 12:20:26 +0000
Date: 2004-01-03T12:20:26+00:00 [thread overview]
Message-ID: <pan.2004.01.03.12.20.22.494534@n_o_p_o_r_k_a_n_d_h_a_m.abyss2.demon.co.uk> (raw)
In-Reply-To: x7visjtnt9c.fsf@smaug.pushface.org
On Sat, 03 Jan 2004 11:53:03 +0000, Simon Wright wrote:
> I found Suppress_Initialization at
> http://gcc.gnu.org/onlinedocs/gnat_rm/Implementation-Defined-Pragmas.html#Implementation%20Defined%20Pragmas
> but I don't know whether it is officially supported by ACT for the
> future (I tried it with 3.15p and 5.01a, the latter is closer to the
> GCC version).
As for support from ACT, I'm even sure if they'll give any kind of support
unless you pay for it. You'd think that a minimum level of support would
do?? Considering the email I got from Robert Dewar, I'm not too sure that
an OS built with GNAT would be too portable across different versions
either, which is bad in itself.
> The key was to apply the pragma to type P.
Genius! That does indeed work. Thanks for that one. I just need to be
careful of what I apply it to. I suppose for this kind of work, it could
possible be applied to all record types. I'll have to play and see.
> I've managed to get myself confused about which combination of
> options/compiler produced which effect, but I get the impression that
> there is a difference between 3.15p and 5.01a here ..
>
> I'm not familiar with System'To_Address .. neater than the
> Storage_Elements version, but more difficult to grep for in the
> source!
Well, the difference is that System.Storage_Elements.To_Address is a
function call and System'To_Address isn't. So with the latter, you get a
nice static initialisation, which is what is really required in this case.
As for grepping, this works for me: grep -r System\'To\_Address *
Thanks,
Luke.
next prev parent reply other threads:[~2004-01-03 12:20 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
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 [this message]
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