+2002-12-17 Nick Clifton <nickc@redhat.com>
+
+ * as.c (std_longopts): Duplicate --keep-locals entry in order to
+ prevent it being confused with -k.
+
2002-12-16 Andrew MacLeod <amacleod@redhat.com>
* config/tc-xstormy16.c (md_cgen_lookup_reloc): If a relocation
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)