From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1652) id 514CD384A00F; Sun, 16 May 2021 13:48:39 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 514CD384A00F MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Christophe Lyon To: gcc-cvs@gcc.gnu.org Subject: [gcc r12-817] arm: remove error in CPP_SPEC when -mlittle-endian and -mbig-endian are used together X-Act-Checkin: gcc X-Git-Author: Christophe Lyon X-Git-Refname: refs/heads/master X-Git-Oldrev: f1146b50e8af87dc9da25cf6d8633e91dac07e1a X-Git-Newrev: 4a322345cab10879162a2ddf659fb0f873ba0182 Message-Id: <20210516134839.514CD384A00F@sourceware.org> Date: Sun, 16 May 2021 13:48:39 +0000 (GMT) X-BeenThere: gcc-cvs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 16 May 2021 13:48:39 -0000 https://gcc.gnu.org/g:4a322345cab10879162a2ddf659fb0f873ba0182 commit r12-817-g4a322345cab10879162a2ddf659fb0f873ba0182 Author: Christophe Lyon Date: Sun May 16 13:48:21 2021 +0000 arm: remove error in CPP_SPEC when -mlittle-endian and -mbig-endian are used together 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-16 Christophe Lyon gcc/ * config/arm/arm.h (CPP_SPEC): Remove error message about -mlittle-endian/-mbig-endian conflict. Diff: --- 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 ""