public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [ARM] Deprecate -mwords-little-endian
@ 2011-06-29 11:33 Richard Sandiford
  2011-06-29 13:41 ` Richard Earnshaw
  0 siblings, 1 reply; 5+ messages in thread
From: Richard Sandiford @ 2011-06-29 11:33 UTC (permalink / raw)
  To: gcc-patches; +Cc: richard.earnshaw

ARM has an option called -mwords-little-endian that provides big-endian
compatibility with pre-2.8 compilers.  When I asked Richard about it,
he seemed to think it had outlived its usefulness, so this patch
deprecates it.  We can then remove it once 4.7 is out.

Tested on arm-linux-gnueabi.  OK to install?  If so, I'll do a patch
for the web page as well.

Richard


Index: gcc/config/arm/arm.c
===================================================================
--- gcc/config/arm/arm.c	2011-06-29 09:33:37.000000000 +0100
+++ gcc/config/arm/arm.c	2011-06-29 12:20:35.000000000 +0100
@@ -1483,6 +1483,10 @@ 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, "%<mwords-little-endian%> 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;
Index: gcc/doc/invoke.texi
===================================================================
--- gcc/doc/invoke.texi	2011-06-22 16:45:29.000000000 +0100
+++ gcc/doc/invoke.texi	2011-06-29 12:17:40.000000000 +0100
@@ -10237,7 +10237,7 @@ Generate code for a little-endian word o
 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.
+2.8.  This option is now deprecated.
 
 @item -mcpu=@var{name}
 @opindex mcpu

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-07-08  9:57 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-29 11:33 [ARM] Deprecate -mwords-little-endian Richard Sandiford
2011-06-29 13:41 ` Richard Earnshaw
2011-07-07 15:19   ` Richard Sandiford
2011-07-07 15:44     ` Richard Earnshaw
2011-07-08 10:04       ` Gerald Pfeifer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).