powerpc/boot: Disable vector instructions
authorJoel Stanley <joel@jms.id.au>
Wed, 10 Oct 2018 02:45:22 +0000 (13:15 +1030)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 1 Dec 2019 08:13:18 +0000 (09:13 +0100)
commite04a317c9624bdaf420cdc1324e3dbe2d3b6555e
treed33e1b7071d68be3d0101e544fc05253bd884e99
parent40509aa7832306bd93faae648d4e2a3413938dcb
powerpc/boot: Disable vector instructions

[ Upstream commit e8e132e6885962582784b6fa16a80d07ea739c0f ]

This will avoid auto-vectorisation when building with higher
optimisation levels.

We don't know if the machine can support VSX and even if it's present
it's probably not going to be enabled at this point in boot.

These flag were both added prior to GCC 4.6 which is the minimum
compiler version supported by upstream, thanks to Segher for the
details.

Signed-off-by: Joel Stanley <joel@jms.id.au>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/powerpc/boot/Makefile