public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH] rs6000: fixinc: Skip machine_name fix for powerpc*-*-linux*
@ 2020-02-13 23:52 Segher Boessenkool
  0 siblings, 0 replies; only message in thread
From: Segher Boessenkool @ 2020-02-13 23:52 UTC (permalink / raw)
  To: gcc-patches; +Cc: Matheus Castanho

From: Matheus Castanho <msc@linux.ibm.com>

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/fixinc.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fixincludes/fixinc.in b/fixincludes/fixinc.in
index cd0b458..de5a37f 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
-- 
1.8.3.1

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-02-13 23:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-13 23:52 [PATCH] rs6000: fixinc: Skip machine_name fix for powerpc*-*-linux* Segher Boessenkool

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).