nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix

cc-wrapper: don't set -fno-omit-frame-pointer on s390/x390x

Without the change both `s390` and `s390x` `glibc` builds fail as
https://hydra.nixos.org/build/303208799:

In file included from ../sysdeps/s390/utf16-utf32-z9.c:501,
from ../sysdeps/s390/multiarch/utf16-utf32-z9.c:20:
../iconv/loop.c: In function '__from_utf16_loop_vx_cu':
../iconv/loop.c:274:1: error: %r11 cannot be used in 'asm' here
274 | }
| ^

Disable the `-fno-omit-frame-pointer` for now.

authored by

Sergei Trofimovich and committed by
Alyssa Ross
c331cfe5 2b78bc0e

+5 -1
+5 -1
pkgs/build-support/cc-wrapper/default.nix
··· 810 810 # Do not prevent omission of framepointers on x86 32bit due to the small 811 811 # number of general purpose registers. Keeping EBP available provides 812 812 # non-trivial performance benefits. 813 + # Also skip s390/s390x as it fails to build glibc and causes 814 + # performance regressions: 815 + # https://bugs.launchpad.net/ubuntu-z-systems/+bug/2064538 816 + # https://github.com/NixOS/nixpkgs/issues/428260 813 817 + ( 814 818 let 815 - enable_fp = !targetPlatform.isx86_32; 819 + enable_fp = !targetPlatform.isx86_32 && !targetPlatform.isS390; 816 820 enable_leaf_fp = 817 821 enable_fp 818 822 && (