mirror of
https://github.com/PowerShell/openssh-portable.git
synced 2025-07-27 15:54:22 +02:00
Stop using -fzero-call-used-regs=all
... since it seems to be problematic with several different versions of clang. Only use -fzero-call-used-regs=used which is less problematic, except with Apple's clang where we don't use it at all. bz#3629, ok djm@
This commit is contained in:
parent
2a19e02f36
commit
ff220d4010
@ -231,9 +231,12 @@ if test "$GCC" = "yes" || test "$GCC" = "egcs"; then
|
|||||||
# clang 15 seems to have a bug in -fzero-call-used-regs=all. See
|
# clang 15 seems to have a bug in -fzero-call-used-regs=all. See
|
||||||
# https://bugzilla.mindrot.org/show_bug.cgi?id=3475 and
|
# https://bugzilla.mindrot.org/show_bug.cgi?id=3475 and
|
||||||
# https://github.com/llvm/llvm-project/issues/59242
|
# https://github.com/llvm/llvm-project/issues/59242
|
||||||
|
# clang 17 has a different bug that causes an ICE when using this
|
||||||
|
# flag at all (https://bugzilla.mindrot.org/show_bug.cgi?id=3629)
|
||||||
case "$CLANG_VER" in
|
case "$CLANG_VER" in
|
||||||
15.*|apple*) OSSH_CHECK_CFLAG_COMPILE([-fzero-call-used-regs=used]) ;;
|
apple-15*) OSSH_CHECK_CFLAG_COMPILE([-fzero-call-used-regs=used]) ;;
|
||||||
*) OSSH_CHECK_CFLAG_COMPILE([-fzero-call-used-regs=all]) ;;
|
17*) ;;
|
||||||
|
*) OSSH_CHECK_CFLAG_COMPILE([-fzero-call-used-regs=used]) ;;
|
||||||
esac
|
esac
|
||||||
OSSH_CHECK_CFLAG_COMPILE([-ftrivial-auto-var-init=zero])
|
OSSH_CHECK_CFLAG_COMPILE([-ftrivial-auto-var-init=zero])
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user