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:16:17 +0000 (09:16 +0100)
commit16e4657a1d2542dba2fce2c91ace742e2e47f6e7
treef4e18dbfcfba07caddbd33b297f568aff774de83
parent5346c840373348deb53bb2977ffb6b340770d201
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