[Skiboot] [PATCH 1/2] Makefile: Remove -mno-direct-move cflag

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

GCC 8 warns that -mno-direct-move is depreciated. We had it there so
we wouldn't use VSX registers in skiboot, as they are not
saved/restored, however Segher confirms:

 > if you already have -mno-altivec  then -mno-direct-move does zilch

So it was never doing anything.

Resolves: open-power/skiboot#186
Signed-off-by: Joel Stanley <joel at jms.id.au>
 Makefile.main | 1 -
 1 file changed, 1 deletion(-)

diff --git a/Makefile.main b/Makefile.main
index a155e1e66601..487aa735a553 100644
--- a/Makefile.main
+++ b/Makefile.main
@@ -179,7 +179,6 @@ 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-direct-move) \
 	$(call try-cflag,$(CC),-mno-altivec)
 # Do not use load/store update. You REALLY do not want to use this!

More information about the Skiboot mailing list