rs6000 3.1 Ada bootstrap problem

Laurent Guerby guerby@acm.org
Mon Mar 18 10:24:00 GMT 2002


Geert Bosch wrote:
> 
> On Friday, March 15, 2002, at 05:16 , Laurent Guerby wrote:
> 
>> A solution to this would be to have the library build process
>> generate a file with all target constants known in a
>> package like GNAT.Target_Parameters which would
>> look like Get_Targ of the compiler but with Pure and no dependencies.
> 
> 
> This package should not be called GNAT.*, as the run-time library
> should not assume the presence of a GNAT library level package.
> This is a namespace issue. Yes, I know there are a few violations
> of that rule now, but these should eventually go and no new ones
> should be added.

No run-time library source would depend on GNAT.Target_Parameters,
this is for user code only, to provide named constants
of interesting target values.

Reusing an already existing GNAT specific system package would be fine too,
but we have to be aware of not adding unexpected build
problems as GNAT tends to depend on what is in those
packages. System.Parameters has already target specific
versions, adding build process generated stuff there could be a maintenance
problem (plus it has some code in its body),
so it might be better to create a new package with
user friendly constant names and no conflict
with the existing run-time.


-- 
Laurent Guerby <guerby@acm.org>



More information about the Gcc mailing list