From patchwork Wed May 12 08:51:42 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Lyon X-Patchwork-Id: 1477473 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=2620:52:3:1:0:246e:9693:128c; helo=sourceware.org; envelope-from=gcc-patches-bounces@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.a=rsa-sha256 header.s=default header.b=BpN6agQ+; dkim-atps=neutral Received: from sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4Fg7nh1P7Lz9sSn for ; Wed, 12 May 2021 18:51:52 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 6F27A3835400; Wed, 12 May 2021 08:51:49 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6F27A3835400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1620809509; bh=p8EN4UIFGGzqSjK4ous4XwVSXrGmip0w469h8eUAWyc=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=BpN6agQ+YyuRSitexRxaVqp7wVKmwvJIrhpsqOKa7vXObltggUXSkIDulNCw8bEFl UbD10khlnWyRCPq5+NT7nFGyLJc83iNJAPO1/d8n7dIs9TUg1reyd5S+yAkCgSdY0i v+YQD1n+E3ZwyPnQtC+5KqQ2h3tdriQI2sfvTHUg= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-wr1-x436.google.com (mail-wr1-x436.google.com [IPv6:2a00:1450:4864:20::436]) by sourceware.org (Postfix) with ESMTPS id 4A27C386EC5F for ; Wed, 12 May 2021 08:51:45 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 4A27C386EC5F Received: by mail-wr1-x436.google.com with SMTP id q5so3310107wrs.4 for ; Wed, 12 May 2021 01:51:45 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=p8EN4UIFGGzqSjK4ous4XwVSXrGmip0w469h8eUAWyc=; b=fMJSeEwk5Xv6hb9bbfv+XNWbryK2F1UJETJYKJ4lD1j8WltR1ooVyaj5tsx45aMiYQ A9n8PouUJQGQkyAaV5R/fAGIC4TXMy97G0pyXQ2Jo6mGB2CcSI6G8ijf6PpCyiMvvbfU SAkT8nJkEf4XnmOyeVT44jS1fXBTj7KeneuUTBfcaH1HUwegF9D7CoK0usYtt47CFYXv PVzyTkhTijmryq6sBb22Ltg+CUnrnhDoBhvb+70gbbrUf49kEkPG/w+1YTR2v/2ohmnp l2CUuTrONwOrSKmB2uj9ba5GLfpS7j+fK2BJgdDhUIob6Xnn4fcqekUh8/8a7WuPNEWA P8Yw== X-Gm-Message-State: AOAM531yQfrol+pLWMC1yrQkkFDdZhY0lX0NGK659Ve6S2BTSYGDLJii sBAvscllU5erUh+DvSSry0/Wkl502FMiswwZ X-Google-Smtp-Source: ABdhPJxklYNRWCs3zu+HvRlePmtINXxda8lTrN23bvSYRx1yw2G+vB1G499+2H7FhGn1NZpgUk1JkA== X-Received: by 2002:a05:6000:237:: with SMTP id l23mr38670693wrz.138.1620809503552; Wed, 12 May 2021 01:51:43 -0700 (PDT) Received: from localhost.localdomain (static.42.136.251.148.clients.your-server.de. [148.251.136.42]) by smtp.gmail.com with ESMTPSA id d9sm29975522wrp.47.2021.05.12.01.51.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 May 2021 01:51:43 -0700 (PDT) To: gcc-patches@gcc.gnu.org Subject: [PATCH] arm: remove error in CPP_SPEC when -mlittle-endian and -mbig-endian are used together Date: Wed, 12 May 2021 08:51:42 +0000 Message-Id: <20210512085142.31934-1-christophe.lyon@linaro.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Spam-Status: No, score=-14.4 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Christophe Lyon via Gcc-patches From: Christophe Lyon Reply-To: Christophe Lyon Errors-To: gcc-patches-bounces@gcc.gnu.org Sender: "Gcc-patches" arm.h has had this error message since 1997, but it is no longer needed since option parsing has been improved: -mXXX-endian is handled via arm.opt and updates the BIG_END mask. So, the last instance of -mXXX-endian on the command line wins. Tested on many arm* configurations, with no impact on the testsuite results. 2021-05-12 Christophe Lyon gcc/ * config/arm/arm.h (CPP_SPEC): Remove error message about -mlittle-endian/-mbig-endian conflict. --- gcc/config/arm/arm.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/gcc/config/arm/arm.h b/gcc/config/arm/arm.h index e430e4d50ed..8e5bd579323 100644 --- a/gcc/config/arm/arm.h +++ b/gcc/config/arm/arm.h @@ -89,9 +89,7 @@ extern tree arm_bf16_ptr_type_node; #undef CPP_SPEC -#define CPP_SPEC "%(subtarget_cpp_spec) \ -%{mbig-endian:%{mlittle-endian: \ - %e-mbig-endian and -mlittle-endian may not be used together}}" +#define CPP_SPEC "%(subtarget_cpp_spec)" #ifndef CC1_SPEC #define CC1_SPEC ""