This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Patch: use -EL and -EB for pj gas port.
- To: binutils at sources dot redhat dot com
- Subject: Patch: use -EL and -EB for pj gas port.
- From: Anthony Green <green at cygnus dot com>
- Date: Sun, 18 Mar 2001 13:44:49 -0800
- CC: sac at pobox dot com
- Reply-to: green at cygnus dot com
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. */