From patchwork Thu Feb 13 23:51:57 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Segher Boessenkool X-Patchwork-Id: 1237818 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=gcc-patches-return-519525-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=kernel.crashing.org Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.a=rsa-sha1 header.s=default header.b=DO/+zb7k; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 48JYG23R3Nz9sP7 for ; Fri, 14 Feb 2020 10:52:09 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:cc:subject:date:message-id; q=dns; s=default; b=FgOgpDWTCUo+ aWBGVdy/r4F7/+1F9HVtJ1QrNwF2Laq6YRIzhdd4olOm4geS8vcjSnI1M0tXM/c7 PEJxBwiU2iGkAzWwuqWpxwZv00Ee6TigeOhI+EC6hbaOGf7pqJeexDzFhMvk8fDt NY+0luUt5PNCMxmYlTaHAKrMbYVrPlk= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:cc:subject:date:message-id; s=default; bh=npTq6UZQbiqXThItG9 qJRjV0kok=; b=DO/+zb7kDQA6oGCWi8itUPm7dKgdhKdND/neFN+SEni5bJvEBh 29UIiB6yzvX3Q4Uwr+SHA1zearRLmnjLFp1jj/khvOq3dW68ngzxeYEfqDZDGr5B PGv/Hqhxg92rDhFwf7t/2KTNe5jhJz90ku4j4bRdkUrO07aSX3PFQ7Sf4= Received: (qmail 89208 invoked by alias); 13 Feb 2020 23:52:02 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 89194 invoked by uid 89); 13 Feb 2020 23:52:02 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-18.2 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3 autolearn=ham version=3.3.1 spammy=esac X-HELO: gcc1-power7.osuosl.org Received: from gcc1-power7.osuosl.org (HELO gcc1-power7.osuosl.org) (140.211.15.137) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 13 Feb 2020 23:52:01 +0000 Received: by gcc1-power7.osuosl.org (Postfix, from userid 10019) id 8180B124032B; Thu, 13 Feb 2020 23:51:59 +0000 (UTC) From: Segher Boessenkool To: gcc-patches@gcc.gnu.org Cc: Matheus Castanho Subject: [PATCH] rs6000: fixinc: Skip machine_name fix for powerpc*-*-linux* Date: Thu, 13 Feb 2020 23:51:57 +0000 Message-Id: <07d0fa3d0881719d67a4a38e1389569993dfbca0.1581637823.git.segher@kernel.crashing.org> X-IsSubscribed: yes 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. 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