diff mbox series

[2/2] Makefile: remove try-cflags on no-altivec and no-vsx

Message ID 20180723233722.9252-3-joel@jms.id.au
State Accepted
Headers show
Series makefile: tweak some flags | expand

Checks

Context Check Description
snowpatch_ozlabs/apply_patch success master/apply_patch Successfully applied
snowpatch_ozlabs/make_check success Test make_check on branch master

Commit Message

Joel Stanley July 23, 2018, 11:37 p.m. UTC
As Segher points out, any compiler that is capable of building skiboot
will support these flags.

Signed-off-by: Joel Stanley <joel@jms.id.au>
---
 Makefile.main | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)
diff mbox series

Patch

diff --git a/Makefile.main b/Makefile.main
index 487aa735a553..5776ac24b344 100644
--- a/Makefile.main
+++ b/Makefile.main
@@ -176,10 +176,9 @@  CFLAGS += -msoft-float
 CFLAGS += $(call try-cflag,$(CC),-mno-string)
 # do not use load/store multiple word instrcutions
 CFLAGS += $(call try-cflag,$(CC),-mno-multiple)
-# do not use any automatic vector foo
-# While it would be safe during boot, we don't save/restore across OPAL calls
-CFLAGS += $(call try-cflag,$(CC),-mno-vsx) \
-	$(call try-cflag,$(CC),-mno-altivec)
+# Do not use any automatic vector foo. While it would be safe during boot, we
+# don't save/restore across OPAL calls
+CFLAGS += -mno-vsx -mno-altivec
 
 # Do not use load/store update. You REALLY do not want to use this!
 # The async safety of the ABI stack depends on the atomicity