comp.lang.ada
 help / color / mirror / Atom feed
From: Simon Wright <simon@pushface.org>
Subject: Re: -fdump-ada-spec
Date: Tue, 07 Oct 2014 17:05:36 +0100
Date: 2014-10-07T17:05:36+01:00	[thread overview]
Message-ID: <lysiizamr3.fsf@pushface.org> (raw)
In-Reply-To: 85iojwkm66.fsf@stephe-leake.org

Stephen Leake <stephen_leake@stephe-leake.org> writes:

> Simon Wright <simon@pushface.org> writes:
>
>> Does anyone know where this is implemented in the GCC sources?
>
> I don't; I guess you want to develop a patch?

Not really; just to understand it better!

For example, you may have taken the online manual's remark "C++ classes
will be mapped to Ada tagged types" as gospel; it turns out that this
only happens for C++ classes with virtual methods. I think.

>>  <snip>
>>
>> and the 'limited with' magic only works for _types_, so you get the
>> error '"FILE" not declared in "Stdio"'.
>>
>> Stdio.FILE should be declared as
>>
>>       type FILE is new Blah;

Thinking about it, that doesn't match the 'semantics' of typedef.

> As a workaround, you can maintain a patch for the generated code, and
> apply it in your Makefile.

Actually, an editor script to change 'limited with' to plain 'with'
would sort this one out nicely.

  reply	other threads:[~2014-10-07 16:05 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-06 17:45 -fdump-ada-spec Simon Wright
2014-10-07 14:08 ` -fdump-ada-spec Stephen Leake
2014-10-07 16:05   ` Simon Wright [this message]
2014-10-07 15:12 ` -fdump-ada-spec Markus Schöpflin
2014-10-07 16:05   ` -fdump-ada-spec Simon Wright
2014-10-10 10:06 ` -fdump-ada-spec Simon Wright
  -- strict thread matches above, loose matches on Subject: below --
2014-10-06 22:42 Newcomers to comp.lang.ada: welcome and how did you end up here ? Simon Clubley
2014-10-07  8:10 ` Gour
2014-10-07 10:49   ` Luke A. Guest
2014-10-08  7:23     ` Gour
2014-10-08  8:35       ` Brian Drummond
2014-10-08  9:15         ` Simon Wright
2014-10-08 19:14           ` -fdump-ada-spec (was: Newcomers to comp.lang.ada: welcome and how did you end up here ?) Ludovic Brenta
2014-10-08 19:48             ` -fdump-ada-spec Simon Wright
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox