]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
s390: adjust -mpacked-stack support check for clang 10
authorVasily Gorbik <gor@linux.ibm.com>
Wed, 8 Jan 2020 13:46:00 +0000 (14:46 +0100)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Tue, 7 Apr 2020 08:50:49 +0000 (10:50 +0200)
commit7d7073175ed0120bf9e1319c72c532375df2cbac
tree54fc231c241e445d518e55b3393cd5fccbeed529
parent9c1c2db5f0e042ac15493795ee5adb74ff71097d
s390: adjust -mpacked-stack support check for clang 10

BugLink: https://bugs.launchpad.net/bugs/1867837
[ Upstream commit 253b3c4b2920e07ce9e2b18800b9b65245e2fafa ]

clang 10 introduces -mpacked-stack compiler option implementation. At the
same time currently it does not support a combination of -mpacked-stack
and -mbackchain. This leads to the following build error:

clang: error: unsupported option '-mpacked-stack with -mbackchain' for
target 's390x-ibm-linux'

If/when clang adds support for a combination of -mpacked-stack and
-mbackchain it would also require -msoft-float (like gcc does). According
to Ulrich Weigand "stack slot assigned to the kernel backchain overlaps
the stack slot assigned to the FPR varargs (both are required to be
placed immediately after the saved r15 slot if present)."

Extend -mpacked-stack compiler option support check to include all 3
options -mpacked-stack -mbackchain -msoft-float which must present to
support -mpacked-stack with -mbackchain.

Acked-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
arch/s390/Makefile