From 2794f0bac8216b14607e7a8f02c59fe4e10507b0 Mon Sep 17 00:00:00 2001 From: "Federico G. Schwindt" Date: Thu, 19 Dec 2002 13:50:21 +0000 Subject: Add a second keep-locals entry to stop getopt from treating -k as an abbreviation for --keep-locals. from binutils-current. millert@ ok. --- gnu/usr.bin/binutils/gas/as.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gnu/usr.bin/binutils/gas/as.c b/gnu/usr.bin/binutils/gas/as.c index e8c22125f7f..57449870bae 100644 --- a/gnu/usr.bin/binutils/gas/as.c +++ b/gnu/usr.bin/binutils/gas/as.c @@ -374,6 +374,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) -- cgit v1.2.3