The trigger here is -gnatpg (actually, -gnatg): this is the "GNAT implementation mode (used to compile GNAT units)." -gnatp means suppress all checks.
I'm not sure about the full effect of -gnatg, although this certainly forces warnings to handle errors like -Werror, at least when creating the compiler itself; I think I remember that during the creation of RTS non-fatal warnings were observed.
One possibility would be to compile only exp_ch5.adb manually without -gnatg; the command you specified was released in gcc /, so
$ cd gcc $ gcc -c -g -O2 -gnatp -gnata -nostdinc -I- -I. -Iada -I../../gcc/ada \ ../../gcc/ada/exp_ch5.adb -o ada/exp_ch5.o
Then go back one level and do it again.
This is a cross-compiler, so you wonβt (I hope!) Need to repeat this for all three stages of a complete build.
Simon wright
source share