summaryrefslogtreecommitdiff
path: root/gas/as.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2002-12-17 12:02:41 +0000
committerNick Clifton <nickc@redhat.com>2002-12-17 12:02:41 +0000
commitcb861fcbad7bf5b7e4f9e07f0533fb2da0c95a0b (patch)
tree7f2e7c5236f67e3af3bc70776706e8ad1f0de5cc /gas/as.c
parentbbfbca5e662c53e942979ad699972f8ae5686fbb (diff)
downloadbinutils-redhat-cb861fcbad7bf5b7e4f9e07f0533fb2da0c95a0b.tar.gz
Duplicate --keep-locals entry in order to prevent it being confused with -k.
Diffstat (limited to 'gas/as.c')
-rw-r--r--gas/as.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gas/as.c b/gas/as.c
index 0a9d5201bd..43f413f5e1 100644
--- a/gas/as.c
+++ b/gas/as.c
@@ -378,6 +378,10 @@ parse_args (pargc, pargv)
static const struct option std_longopts[] = {
#define OPTION_HELP (OPTION_STD_BASE)
{"help", no_argument, NULL, OPTION_HELP},
+ /* getopt allows abbreviations, so we do this to stop it from
+ treating -k as an abbreviation for --keep-locals. Some
+ ports use -k to enable PIC assembly. */
+ {"keep-locals", no_argument, NULL, 'L'},
{"keep-locals", no_argument, NULL, 'L'},
{"mri", no_argument, NULL, 'M'},
#define OPTION_NOCPP (OPTION_STD_BASE + 1)