powerpc/boot: Disable vector instructions
authorJoel Stanley <joel@jms.id.au>
Wed, 10 Oct 2018 02:45:22 +0000 (13:15 +1030)
committerMichael Ellerman <mpe@ellerman.id.au>
Sat, 13 Oct 2018 11:21:25 +0000 (22:21 +1100)
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>
arch/powerpc/boot/Makefile

index 5d5ab6ee48e0978c23b2936008bb6cfe930ad68a..a90197f90149322bc88aea8b2ee824bb885f65d5 100644 (file)
@@ -32,8 +32,8 @@ else
 endif
 
 BOOTCFLAGS    := -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs \
-                -fno-strict-aliasing -Os -msoft-float -pipe \
-                -fomit-frame-pointer -fno-builtin -fPIC -nostdinc \
+                -fno-strict-aliasing -Os -msoft-float -mno-altivec -mno-vsx \
+                -pipe -fomit-frame-pointer -fno-builtin -fPIC -nostdinc \
                 -D$(compress-y)
 
 ifdef CONFIG_PPC64_BOOT_WRAPPER