rs6000: fixinc: Skip machine_name fix for powerpc*-*-linux*
diff mbox series

Message ID
State New
Headers show
  • rs6000: fixinc: Skip machine_name fix for powerpc*-*-linux*
Related show

Commit Message

Segher Boessenkool Feb. 13, 2020, 11:51 p.m. UTC
From: Matheus Castanho <>

Some system headers can be broken by the machine_name fix performed
by GCC during the fixincludes step. According to the comment in
fixincludes/fixinc.h:130 :

   On some platforms, machine_name doesn't work properly and
   breaks some of the header files.  Since everything works
   properly without it, just wipe the macro list to
   disable the fix.

So we can just skip it to avoid trouble.

	* Skip machine_name fix on powerpc*-*-linux*.
 fixincludes/ | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff mbox series

diff --git a/fixincludes/ b/fixincludes/
index cd0b458..de5a37f 100755
--- a/fixincludes/
+++ b/fixincludes/
@@ -136,7 +136,7 @@  fi
 #  disable the fix.
 case "${target_canonical}" in
-    *-*-vxworks*)
+    *-*-vxworks* | powerpc*-*-linux*)
 	test -f ${MACRO_LIST} &&  echo > ${MACRO_LIST}