On Tue, 13 Dec 2005, Arnaud Charlet wrote: > > This is exactly what I'm trying to do, as I'm testing with the > > stage1 compiler that happens to miscompile the stage2 compiler, > > so I guessed it might be easier to debug the testsuite fallout > > of the stage1 compiler. > > > > I'm used to do ./xgcc -B/whatever in the gcc/ directory, maybe > > gnatmake can be taught to do the required setup following this > > way, too? > > Well, that's basically what gnatmake does in the script... > Except that unlike C, Ada needs a run-time, even for simple things, > so you need in addition to point (using e.g. -I) to the runtime, > which is built under obj/gcc/ada/rts, > > so from obj/gcc directory, you can do e.g: > > ./xgcc -Bstage1/ -c -Iada/rts -Itestsuite/ada/acats/support > > Not that difficult after all...
Ah! This works very many thanks! So maybe we can print this additional -I and full path to the source in the acats.log file? I.e. instead of /space/rguenther/obj/obj3/gcc/xgcc -c -B/space/rguenther/obj/obj3/gcc/ -gnatws -O2 -I/space/rguenther/obj/obj3/gcc/testsuite/ada/acats/support c32001e.adb print /space/rguenther/obj/obj3/gcc/xgcc -c -B/space/rguenther/obj/obj3/gcc/ -gnatws -O2 -I/space/rguenther/obj/obj3/gcc/testsuite/ada/acats/support /space/rguenther/obj/obj3/gcc/testsuite/ada/acats/tests/c3/c32001e/c32001e.adb -I/space/rguenther/obj/obj3/gcc/ada/rts ? This way it would work out-of-the box with cut&paste and avoid some confusion. Thanks again, Richard.