From: Christophe Lyon Date: Sun, 16 May 2021 13:48:21 +0000 (+0000) Subject: arm: remove error in CPP_SPEC when -mlittle-endian and -mbig-endian are used together X-Git-Tag: upstream/12.2.0~7880 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4a322345cab10879162a2ddf659fb0f873ba0182;p=platform%2Fupstream%2Fgcc.git 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 --git a/gcc/config/arm/arm.h b/gcc/config/arm/arm.h index e430e4d..8e5bd57 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 ""