summaryrefslogtreecommitdiff
path: root/fixincludes
diff options
context:
space:
mode:
authorMatheus Castanho <msc@linux.ibm.com>2020-02-13 23:43:39 +0000
committerSegher Boessenkool <segher@kernel.crashing.org>2020-02-14 00:00:33 +0000
commitd876c8f9cfbf2b670bca9bc15bb2f472de5da57a (patch)
tree336ccf5509806055a1f77ebd4f34ea9bea6e44fa /fixincludes
parent994e0ad41529f5518fd013474a657968807d9ca5 (diff)
rs6000: fixinc: Skip machine_name fix for powerpc*-*-linux*
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*.
Diffstat (limited to 'fixincludes')
-rw-r--r--fixincludes/ChangeLog4
-rwxr-xr-xfixincludes/fixinc.in2
2 files changed, 5 insertions, 1 deletions
diff --git a/fixincludes/ChangeLog b/fixincludes/ChangeLog
index b3db80b29c1..5b3d9ae1055 100644
--- a/fixincludes/ChangeLog
+++ b/fixincludes/ChangeLog
@@ -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.
diff --git a/fixincludes/fixinc.in b/fixincludes/fixinc.in
index cd0b458b8f8..de5a37f6acc 100755
--- a/fixincludes/fixinc.in
+++ b/fixincludes/fixinc.in
@@ -136,7 +136,7 @@ fi
# disable the fix.
case "${target_canonical}" in
- *-*-vxworks*)
+ *-*-vxworks* | powerpc*-*-linux*)
test -f ${MACRO_LIST} && echo > ${MACRO_LIST}
;;
esac