nixpkgs/pkgs/development/compilers/gcc/9
Maximilian Bosch e10ea9608a
gcc{7,9,10}: apply patches for asan w/glibc-2.34
This should fix a few broken cc-wrapper tests that also check for
libasan[1][2][3]:

    [...]
    checking whether sanitizers are fully functional... ==243==ERROR: AddressSanitizer failed to allocate 0x0 (0) bytes of SetAlternateSignalStack (error code: 22)
    [...]

The underlying issue is that `SIGSTKSZ` isn't a compile-time constant
anymore, but in this case the uninitialized `kAltStackSize` was
initialized early enough to evalute to `0`[4].

The issue is already fixed in gcc11 and there's  GCC 8.5 which also
contains the patch, however the backports to v9 and v10 aren't released
yet, so we have to apply patches on our own here.

For GCC 7.5 I applied the patch from gcc8 as it doesn't seem as if
there's an official upstream backport.

[1] https://hydra.nixos.org/build/163102264
[2] https://hydra.nixos.org/build/163624687
[3] https://hydra.nixos.org/build/163619227
[4] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100114
2022-02-27 10:26:58 +01:00
..
Added-mcf-thread-model-support-from-mcfgthread.patch gcc10: fix MinGW build & use local copy of mcfgthread patches 2021-01-03 23:04:37 -05:00
avoid-cycling-subreg-reloads.patch Revert "Merge #142792: gcc9: 9.3.0 -> 9.4.0" 2021-12-19 10:36:57 +01:00
default.nix gcc{7,9,10}: apply patches for asan w/glibc-2.34 2022-02-27 10:26:58 +01:00
gcc9-asan-glibc-2.34.patch gcc{7,9,10}: apply patches for asan w/glibc-2.34 2022-02-27 10:26:58 +01:00