On 26.11.18 10:22, Arnaud Charlet wrote: >> r266136 broke the ada build on alpha-linux-gnu, filed as PR88191. I didn't >> find this patch posted to gcc-patches. > > Thanks for the heads up. > > This is this change: > > [Ada] Update signal constants for GNU/Linux > > Add the signal SIGSYS and mark the glibc reserved real-time signals > (32-34) as reserved rather than not maskable. > > 2018-11-14 Patrick Bernardi <berna...@adacore.com> > > gcc/ada/ > > * libgnarl/a-intnam__linux.ads: Add SIGSYS. > * libgnarl/s-linux__alpha.ads, libgnarl/s-linux__android.ads, > libgnarl/s-linux__hppa.ads, libgnarl/s-linux__mips.ads, > libgnarl/s-linux__riscv.ads, libgnarl/s-linux__sparc.ads, > libgnarl/s-linux__x32.ads: Rename SIGLTHRRES, SIGLTHRCAN and > SIGLTHRDBG to SIG32, SIG33 and SIG34 as their names are > implementation specific. > * libgnarl/s-osinte__linux.ads, libgnarl/s-linux.ads: Add > SIGSYS. Move SIG32, SIG33 and SIG34 from the unmasked list to > the reserved list. > > Pat, can you have a look? Matthias, can you suggest a suitable change since > we don't have access to an alpha-linux setup? >
that fixes the build, taken from the sparc64 file. not sure if that is appropriate. --- gcc/ada/libgnarl/s-linux__alpha.ads (revision 266457) +++ gcc/ada/libgnarl/s-linux__alpha.ads (working copy) @@ -87,6 +87,7 @@ SIGKILL : constant := 9; -- kill (cannot be caught or ignored) SIGBUS : constant := 10; -- bus error SIGSEGV : constant := 11; -- segmentation violation + SIGSYS : constant := 12; -- bad system call SIGPIPE : constant := 13; -- write on a pipe with no one to read it SIGALRM : constant := 14; -- alarm clock SIGTERM : constant := 15; -- software termination signal from kill The build continues, but then fails with: /home/packages/cross/9/p/gcc-cross-ports/gcc/build/./gcc/xgcc -B/home/packages/cross/9/p/gcc-cross-ports/gcc/build/./gcc/ - B/usr/alpha-linux-gnu/bin/ -B/usr/alpha-linux-gnu/lib/ -isystem /usr/alpha-linux-gnu/include -isystem /usr/alpha-linux-gnu/ sys-include -isystem /home/packages/cross/9/p/gcc-cross-ports/gcc/build/sys-include -c -g -O2 -W -Wall -gnatpg -nostdi nc -gnatn s-secsta.adb -o s-secsta.o raised STORAGE_ERROR : stack overflow or erroneous memory access make[8]: *** [../gcc-interface/Makefile:299: s-secsta.o] Error 1