Eventually, Ada will be as well integrated into GCC as are other languages such as gcj, etc. Using the gcc-config script while I am building gcc-4.0 snapshots, I found this patch useful. Gnat has a bunch of gnat* files in addition to the regular files. This allows gcc-config/wrapper to be copied as these gnat files as well thus allowing different gnat versions to be used as easily as gcj. PS: Its 1:42 AM Reproducible: Always Steps to Reproduce: 1. 2. 3.
sohail ~ # diff -u `which gcc-config` gcc-config-me --- /usr/bin/gcc-config 2004-12-21 01:44:06.608389160 -0800 +++ gcc-config-me 2004-12-21 01:44:01.655142168 -0800 @@ -192,7 +192,8 @@ umask 022 # Update the wrappers for this profile - local native="gcc cpp cc c++ g++ f77 g77 gcj" + local gnat=`(cd ${ROOT}/${GCC_BIN_PATH}/ && ls gnat*) 2>/dev/null` + local native="gcc cpp cc c++ g++ f77 g77 gcj" ${gnat} is_cross_compiler && native="" for x in ${native} ${CTARGET}-{gcc,c++,g++,f77,g77,gcj} do
err nm, it seems that /etc/profile sets paths properly to use gnat* :)