Duplicate --keep-locals entry in order to prevent it being confused with -k.

This commit is contained in:
Nick Clifton 2002-12-17 12:02:41 +00:00
parent 2a8ac465c4
commit 9c3b31c636
2 changed files with 9 additions and 0 deletions

View file

@ -1,3 +1,8 @@
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> 2002-12-16 Andrew MacLeod <amacleod@redhat.com>
* config/tc-xstormy16.c (md_cgen_lookup_reloc): If a relocation * config/tc-xstormy16.c (md_cgen_lookup_reloc): If a relocation

View file

@ -378,6 +378,10 @@ parse_args (pargc, pargv)
static const struct option std_longopts[] = { static const struct option std_longopts[] = {
#define OPTION_HELP (OPTION_STD_BASE) #define OPTION_HELP (OPTION_STD_BASE)
{"help", no_argument, NULL, OPTION_HELP}, {"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'}, {"keep-locals", no_argument, NULL, 'L'},
{"mri", no_argument, NULL, 'M'}, {"mri", no_argument, NULL, 'M'},
#define OPTION_NOCPP (OPTION_STD_BASE + 1) #define OPTION_NOCPP (OPTION_STD_BASE + 1)