This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Patch: use -EL and -EB for pj gas port.



GCC currently calls gas with -mb and -ml to specify endianess, but
gas currently expects -big and -little.  Most ports use -EB and -EL.
This patches changes gas to use -EB and -EL, and I have a
corresponding GCC patch to put the two in sync again.

Ok to commit?

AG



2001-03-18  Anthony Green  <green@redhat.com>

	* config/tc-pj.c (md_longopts): Use -EL and -EB, not -little and
	-big.
	(md_show_usage): Describe -EL and -EB, not -little and -big.

Index: gas/config/tc-pj.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-pj.c,v
retrieving revision 1.4
diff -u -r1.4 tc-pj.c
--- tc-pj.c	2001/03/08 23:24:24	1.4
+++ tc-pj.c	2001/03/18 21:35:52
@@ -1,6 +1,6 @@
 /*-
    tc-pj.c -- Assemble code for Pico Java
-   Copyright 1999, 2000 Free Software Foundation, Inc.
+   Copyright 1999, 2000, 2001 Free Software Foundation, Inc.
 
    This file is part of GAS, the GNU Assembler.
 
@@ -389,8 +389,8 @@
 #define OPTION_LITTLE (OPTION_MD_BASE)
 #define OPTION_BIG    (OPTION_LITTLE + 1)
 
-  {"little", no_argument, NULL, OPTION_LITTLE},
-  {"big", no_argument, NULL, OPTION_BIG},
+  {"EL", no_argument, NULL, OPTION_LITTLE},
+  {"EB", no_argument, NULL, OPTION_BIG},
   {NULL, no_argument, NULL, 0}
 };
 size_t md_longopts_size = sizeof (md_longopts);
@@ -420,8 +420,8 @@
 {
   fprintf (stream, _("\
 PJ options:\n\
--little			generate little endian code\n\
--big			generate big endian code\n"));
+-EB			generate big endian output\n\
+-EL			generate little endian output\n"));
 }
 
 /* Apply a fixup to the object file.  */


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]