gnat 3.10p patches for egcs

grahams@rcp.co.uk grahams@rcp.co.uk
Sat Aug 29 10:10:00 GMT 1998


All

Here are a set of patches that need to be applied to the gnat-3.10p
sources inorder for gnat to be bootstrapped using egcs-19980824.

The 1st  patch is required to bootstrap gnat using egcs.

The 2nd patch is optional but does allow gnattools and gnatlib to be   
built.

The 3rd patch may not be required on some targets. Apply it only if you   
have
trouble building gnatlib due to a ICE compiling i-cobol.ad[bs].

1. Patches to gnat-3.10p sources.
========================

 
 Th
GNAT-3~2.GZ
e above patches only patch the gnat-3.10p sources and have been
 tested on x86-linux using egcs-19980824.

 The new patches also integrate the patches currently in README.gnat
 with the exception of the "Fred Fish" patches (see item 2 below).

 The new patches cover 3 main areas.

 A) Fix bug in gnat type_for_size() in gcc/ada/a-misc.c
 B) Simplfiy command line parsing no longer uses saved_argc or   
saved_argv.
 C) Introduced a new gnu_size_unit() routine to Set TYPE_SIZE_UNIT().
 
 Everytime gnat sets a types TYPE_SIZE() entry I have added a call to a
 new routine gnu_size_unit() which sets the types corresponding   
TYPE_SIZE_UNIT()
 entry based on the types TYPE_SIZE() just set.

 This is not very efficient but does allow gnat to be bootstrapped using   
egcs. This
 could be improved later.

 Here are some additional patches you might wish to apply

2. Allow "make gnattools" and "make gnatlib" to work from the top level   
egcs makefile.
==============================================================

 There were some patches from Fred Fish in the egcs-19980824 README.gnat   
file
 which integrate gnat into the bootstrap process. I couldn't get them   
work work, the
 bootstrap always failed when compiling one of the (I don'tremember which   
one)
 gcc/ada/a-cal*.ad[bs] files.

 
  

 T
GNAT-3~3.GZ
his patch allows "make gnattools" and "make gnatlib" to
 be run after the "make bootstrap" and before "make install"

3. Problem compiling the i-cobol.ad[bs] file during make gnatlib.
=============================================

 This file causes a ICE abort, which have something to do with
 attempting to allocate a variable size object on the stack. I have
 not looked into this.

 
  

 T
GNAT-3~4.GZ
his patch removes the i-cobol.o from the gnatlib library.

I am on vacation until Sept. 9th.

 Graham  
-------------- next part --------------
A non-text attachment was scrubbed...
Name: GNAT-3~2.GZ
Type: application/x-gzip
Size: 7204 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/19980829/6236ec25/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: GNAT-3~3.GZ
Type: application/x-gzip
Size: 433 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/19980829/6236ec25/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: GNAT-3~4.GZ
Type: application/x-gzip
Size: 249 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/19980829/6236ec25/attachment-0002.bin>


More information about the Gcc-patches mailing list