nixpkgs/pkgs/development/compilers/gcc
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
..
4.8 Drop myself from meta.maintainers for most packages. 2021-10-14 11:01:27 +02:00
4.9 Drop myself from meta.maintainers for most packages. 2021-10-14 11:01:27 +02:00
6 Drop myself from meta.maintainers for most packages. 2021-10-14 11:01:27 +02:00
7 gcc{7,9,10}: apply patches for asan w/glibc-2.34 2022-02-27 10:26:58 +01:00
8 gcc8: 8.4.0 -> 8.5.0 2021-10-27 17:49:56 +02:00
9 gcc{7,9,10}: apply patches for asan w/glibc-2.34 2022-02-27 10:26:58 +01:00
10 gcc{7,9,10}: apply patches for asan w/glibc-2.34 2022-02-27 10:26:58 +01:00
11 gcc{10,11}: add no-sys-dir patch for RiscV 2021-11-30 16:58:45 +08:00
common Merge pull request #135360 from r-burns/gcc-musl-libgomp 2021-09-23 17:22:21 -07:00
builder.sh gcc: allow stripping gcc libraries 2021-01-21 16:25:48 -06:00
gfortran-darwin-NXConstStr.patch
gfortran-driving.patch
gnat-cflags-11.patch gnat11: extract gnat-cflags-11.patch from gnat-cflags.patch 2021-05-04 20:14:01 -07:00
gnat-cflags.patch gnat: init at 9.3.0 2020-04-20 14:41:22 +02:00
libgomp-dont-force-initial-exec.patch
libphobos.patch gdc: init at 9.3.0 2020-05-19 23:06:52 +02:00
libsanitizer-no-cyclades-9.patch gcc: remove <cyclades.h> from libsanitizer 2021-09-20 19:37:19 +01:00
libsanitizer-no-cyclades.patch gcc: remove <cyclades.h> from libsanitizer 2021-09-20 19:37:19 +01:00
libstdc++-netbsd-ctypes.patch
libstdc++-target.patch
no-sys-dirs-riscv-gcc9.patch gcc9: Add no-sys-dir patch for RISC-V (#154230) 2022-01-12 06:27:48 -05:00
no-sys-dirs-riscv.patch gcc{10,11}: add no-sys-dir patch for RiscV 2021-11-30 16:58:45 +08:00
no-sys-dirs.patch
parallel-bconfig.patch
ppc-musl.patch
res_state-not-declared.patch
sigsegv-not-declared.patch
struct-sigaltstack-4.9.patch
struct-sigaltstack.patch
struct-ucontext-4.5.patch
struct-ucontext-4.8.patch
struct-ucontext-libjava.patch
struct-ucontext.patch
update-mcfgthread-patches.sh gcc10: fix MinGW build & use local copy of mcfgthread patches 2021-01-03 23:04:37 -05:00
use-source-date-epoch.patch