From 51b149870f2d2e765ec92624b9495b5103a9cdfd Mon Sep 17 00:00:00 2001 From: nickc Date: Tue, 17 Dec 2002 12:02:41 +0000 Subject: [PATCH] Duplicate --keep-locals entry in order to prevent it being confused with -k. --- gas/ChangeLog | 5 +++++ gas/as.c | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/gas/ChangeLog b/gas/ChangeLog index b48a63ee68..38634c223e 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +2002-12-17 Nick Clifton + + * as.c (std_longopts): Duplicate --keep-locals entry in order to + prevent it being confused with -k. + 2002-12-16 Andrew MacLeod * config/tc-xstormy16.c (md_cgen_lookup_reloc): If a relocation 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) -- 2.11.0