> 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... And if the Ada run-time hasn't been built yet (partial build), then you can do: ./xgcc -Bstage1/ -c -Iada -Itestsuite/ada/acats/support although this is not recommended, as you will not end up using the same run-time file, which might have an impact on the generated code. Arno