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

Joel Stanley joel at jms.id.au
Tue Jul 24 09:37:22 AEST 2018


As Segher points out, any compiler that is capable of building skiboot
will support these flags.

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

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
-- 
2.17.1



More information about the Skiboot mailing list