]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
rs6000: fixinc: Skip machine_name fix for powerpc*-*-linux*
authorMatheus Castanho <msc@linux.ibm.com>
Thu, 13 Feb 2020 23:43:39 +0000 (23:43 +0000)
committerSegher Boessenkool <segher@kernel.crashing.org>
Fri, 14 Feb 2020 00:00:33 +0000 (00:00 +0000)
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.

fixincludes/
* fixinc.in: Skip machine_name fix on powerpc*-*-linux*.

fixincludes/ChangeLog
fixincludes/fixinc.in

index b3db80b29c108e4d51a0d342dfc1d8a8fcb135ed..5b3d9ae1055aa7ecf780013efadbdb5f35b51352 100644 (file)
@@ -1,3 +1,7 @@
+2020-02-13  Matheus Castanho  <msc@linux.ibm.com>
+
+       * fixinc.in: Skip machine_name fix on powerpc*-*-linux*.
+
 2020-02-13  Alexandre Oliva <oliva@adacore.com>
 
        * mkheaders.in: Re-create subdirs, copy limits.h into subdir.
index cd0b458b8f8b442977e24f19ed5b40c3bbac91d0..de5a37f6acc41fd872a56286459f5cf624693065 100755 (executable)
@@ -136,7 +136,7 @@ fi
 #  disable the fix.
 
 case "${target_canonical}" in
-    *-*-vxworks*)
+    *-*-vxworks* | powerpc*-*-linux*)
        test -f ${MACRO_LIST} &&  echo > ${MACRO_LIST}
         ;;
 esac