mingw32 gnat build on based on GCC gcc-4.4-20100223

2010-03-17 Thread PeteGarbett

My problems with GCC 4.4- were solved as suggested by adding in more
multiply patterns specifically smulsi3_highpart, which enabled
reciprocal multiplication to work. GCC 3.4.4 seems to be happy without
this, don't know why.

I have now built a mingw32 build of my private port, built on x86_64
linux, based on gcc-4.4-20100223

Building gnat for the final cross is the only problematic one

 
There seem to be 3 build problems.
 

1)  The ada bldtools don't build correctly, host versions of
xnmake,xtreeprs,xsinfo , xeinfo and  xgnatugn

are built but the makefile needs ones built for the build system.

 I put versions built for the build system on my path and re-enter these
lines, modified slightly

from the originals (e.g. "./" removed from xnmake etc )   :


(cd tools/objdir/gcc/ada/bldtools/nmake_b && i686-pc-mingw32-gnatmake -q
xnmake && xnmake -b ../../nmake.adb )


(cd tools/objdir/gcc/ada/bldtools/nmake_s && i686-pc-mingw32-gnatmake -q
xnmake && xnmake -s ../../nmake.ads )


(cd tools/objdir/gcc/ada/bldtools/treeprs && i686-pc-mingw32-gnatmake -q
xtreeprs && xtreeprs ../../treeprs.ads )


(cd tools/objdir/gcc/ada/bldtools/sinfo && i686-pc-mingw32-gnatmake -q
xsinfo && xsinfo ../../sinfo.h )


(cd tools/objdir/gcc/ada/bldtools/einfo && i686-pc-mingw32-gnatmake -q
xeinfo && xeinfo ../../einfo.h )


(cd /home/linux/lmp-elf-gcc-4.4.4-prerelease/tools/objdir/gcc &&
xgnatugn unw ../../gcc-4.4-20100223/gcc/ada/gnat_ugn.texi \

   ../../gcc-4.4-20100223/gcc/ada/ug_words doc/gnat_ugn.texi)

 

 

2) I had to form an appropriate s-oscons.ads for mingw32 outside the
build process

 

3) The Makefile in gnattools used build system adalib and adainclude
files, I had to change it to use

the cross libraries, in my case

 

"ADA_INCLUDES=-I/i686-pc-mingw32/lib/gcc/i686-pc-mingw32/4.4.4/adalib  \

-I/i686-pc-mingw32/lib/gcc/i686-pc-mingw32/4.4.4/adainclude  -I.
-I/home/linux/lmp-elf-gcc-4.4.4-prerelease/tools/gcc-4.4-20100223/gcc/ada " \

 

 

 

 

 

 

 

 






GCC plugin support when using Ada

2010-06-18 Thread PeteGarbett

I see nothing in the GCC 4.5 release notes about 
plugin support being language specific, and yet if I using the treehydra
plugin with Ada (admittedly using a patched GCC 4.3.4 as per the dehydra
notes), I get this

gnat1: warning: command line option
"-fplugin=/home/linux/gcc-dehydra/dehydra/gcc_treehydra.so" is valid for
C/C++ but not for Ada

I assume the plan is to have something in the GCC 4 series be agnostic
about what front end has generated your GIMPLE. Is this correct?
I'd like to be able to analyse GIMPLE structures generated from gnat.