From patchwork Fri Jul 4 16:24:20 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kyrylo Tkachov X-Patchwork-Id: 367141 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org 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 E89AF1400DE for ; Sat, 5 Jul 2014 02:24:39 +1000 (EST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :message-id:date:from:mime-version:to:cc:subject:content-type; q=dns; s=default; b=McCS9X8occz7oIYtELpog836Xi8PT3hjHbIxFcXFvP3 J4wVTL8/canGk9RQ/RKjfVlQ+lsiIZPxmPXU/5dB82fm141OzBUq82I92rWBgKZ7 UEXGuYRHt513NW3/8ri1l1nHkdp/0YcLsa8PweMvuW32h6C56uHqVCUvawarQvYQ = 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 :message-id:date:from:mime-version:to:cc:subject:content-type; s=default; bh=8hgjwmjeMFSYhMPBEfHCYIGgvUM=; b=auJ1Aj6sRq5REE7Qt 7zRGmhgG+Mecp6IB1JQcMW0PTAqoWADSAC9eF6a0cDW2TordTq2p+KEoeb9UL7a5 L327TezPlmSJVQGGK2elVF5gEOcKv7QNluW6NP4iPNBedLxmPfpHUIV9xfLqLhaE 0ZOwjkZ4J6aJlt0PKUcC7v7y2c= Received: (qmail 15438 invoked by alias); 4 Jul 2014 16:24:32 -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 15406 invoked by uid 89); 4 Jul 2014 16:24:30 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.1 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 X-HELO: service87.mimecast.com Received: from service87.mimecast.com (HELO service87.mimecast.com) (91.220.42.44) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 04 Jul 2014 16:24:23 +0000 Received: from cam-owa2.Emea.Arm.com (fw-tnat.cambridge.arm.com [217.140.96.21]) by service87.mimecast.com; Fri, 04 Jul 2014 17:24:21 +0100 Received: from [10.1.208.24] ([10.1.255.212]) by cam-owa2.Emea.Arm.com with Microsoft SMTPSVC(6.0.3790.3959); Fri, 4 Jul 2014 17:24:21 +0100 Message-ID: <53B6D534.9020008@arm.com> Date: Fri, 04 Jul 2014 17:24:20 +0100 From: Kyrill Tkachov User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 MIME-Version: 1.0 To: GCC Patches CC: Ramana Radhakrishnan , Richard Earnshaw Subject: [PATCH][ARM] Remove deprecated mwords-little-endian X-MC-Unique: 114070417242109301 X-IsSubscribed: yes Hi all, -mwords-little-endian was deprecated in GCC 4.7. This patch removes the option and associated machinery and documentation. Tested armeb-none-eabi and saw no regressions. Ok for trunk? Thanks, Kyrill 2014-07-04 Kyrylo Tkachov * config/arm/arm.opt (mwords-little-endian): Delete. * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Remove handling of TARGET_LITTLE_WORDS. (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN. * config/arm/arm.c (arm_option_override): Remove TARGET_LITTLE_WORDS warning. * doc/invoke.texi: Remove references to -mwords-little-endian. diff --git a/gcc/config/arm/arm.c b/gcc/config/arm/arm.c index 773e001..00b3ca2 100644 --- a/gcc/config/arm/arm.c +++ b/gcc/config/arm/arm.c @@ -2644,10 +2644,6 @@ arm_option_override (void) if (TARGET_APCS_FLOAT) warning (0, "passing floating point arguments in fp regs not yet supported"); - if (TARGET_LITTLE_WORDS) - warning (OPT_Wdeprecated, "% is deprecated and " - "will be removed in a future release"); - /* Initialize boolean versions of the flags, for use in the arm.md file. */ arm_arch3m = (insn_flags & FL_ARCH3M) != 0; arm_arch4 = (insn_flags & FL_ARCH4) != 0; diff --git a/gcc/config/arm/arm.h b/gcc/config/arm/arm.h index c325026..047df97 100644 --- a/gcc/config/arm/arm.h +++ b/gcc/config/arm/arm.h @@ -104,8 +104,6 @@ extern char arm_arch_name[]; builtin_define ("__ARM_BIG_ENDIAN"); \ if (TARGET_THUMB) \ builtin_define ("__THUMBEB__"); \ - if (TARGET_LITTLE_WORDS) \ - builtin_define ("__ARMWEL__"); \ } \ else \ { \ @@ -643,9 +641,8 @@ extern int arm_arch_crc; #define BYTES_BIG_ENDIAN (TARGET_BIG_END != 0) /* Define this if most significant word of a multiword number is the lowest - numbered. - This is always false, even when in big-endian mode. */ -#define WORDS_BIG_ENDIAN (BYTES_BIG_ENDIAN && ! TARGET_LITTLE_WORDS) + numbered. */ +#define WORDS_BIG_ENDIAN (BYTES_BIG_ENDIAN) #define UNITS_PER_WORD 4 diff --git a/gcc/config/arm/arm.opt b/gcc/config/arm/arm.opt index d80f1f1..0a80513 100644 --- a/gcc/config/arm/arm.opt +++ b/gcc/config/arm/arm.opt @@ -231,10 +231,6 @@ Tune code for the given processor EnumValue Enum(processor_type) String(native) Value(-1) DriverOnly -mwords-little-endian -Target Report RejectNegative Mask(LITTLE_WORDS) -Assume big endian bytes, little endian words. This option is deprecated. - mvectorize-with-neon-quad Target Report RejectNegative InverseMask(NEON_VECTORIZE_DOUBLE) Use Neon quad-word (rather than double-word) registers for vectorization diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index 3a02125d..62b7a69 100644 --- a/gcc/doc/invoke.texi +++ b/gcc/doc/invoke.texi @@ -517,7 +517,7 @@ Objective-C and Objective-C++ Dialects}. -mapcs-float -mno-apcs-float @gol -mapcs-reentrant -mno-apcs-reentrant @gol -msched-prolog -mno-sched-prolog @gol --mlittle-endian -mbig-endian -mwords-little-endian @gol +-mlittle-endian -mbig-endian @gol -mfloat-abi=@var{name} @gol -mfp16-format=@var{name} -mthumb-interwork -mno-thumb-interwork @gol @@ -12374,15 +12374,6 @@ the default for all standard configurations. Generate code for a processor running in big-endian mode; the default is to compile code for a little-endian processor. -@item -mwords-little-endian -@opindex mwords-little-endian -This option only applies when generating code for big-endian processors. -Generate code for a little-endian word order but a big-endian byte -order. That is, a byte order of the form @samp{32107654}. Note: this -option should only be used if you require compatibility with code for -big-endian ARM processors generated by versions of the compiler prior to -2.8. This option is now deprecated. - @item -march=@var{name} @opindex march This specifies the name of the target ARM architecture. GCC uses this