aboutsummaryrefslogtreecommitdiff
path: root/gas/as.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2003-10-04 12:07:27 +0000
committerNick Clifton <nickc@redhat.com>2003-10-04 12:07:27 +0000
commitd3fb7ca2141c52427552a5834c13e84429919bd6 (patch)
tree95c42eb602107c1922d65978ca69d915178164bc /gas/as.c
parentb256d4fdd25ed91f9d5edcdd23d3558b4cbca71b (diff)
downloadfsf-binutils-gdb-d3fb7ca2141c52427552a5834c13e84429919bd6.zip
fsf-binutils-gdb-d3fb7ca2141c52427552a5834c13e84429919bd6.tar.gz
fsf-binutils-gdb-d3fb7ca2141c52427552a5834c13e84429919bd6.tar.bz2
(std_shortopts): Remove 'f'.
(std_longopts): Add 'f'. Doing this prevents -f<foo> being acecpted as an alias for -f
Diffstat (limited to 'gas/as.c')
-rw-r--r--gas/as.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/gas/as.c b/gas/as.c
index 5ff1403..459ce0c 100644
--- a/gas/as.c
+++ b/gas/as.c
@@ -375,7 +375,7 @@ parse_args (pargc, pargv)
/* -K is not meaningful if .word is not being hacked. */
'K',
#endif
- 'L', 'M', 'R', 'W', 'Z', 'f', 'a', ':', ':', 'D', 'I', ':', 'o', ':',
+ 'L', 'M', 'R', 'W', 'Z', 'a', ':', ':', 'D', 'I', ':', 'o', ':',
#ifndef VMS
/* -v takes an argument on VMS, so we don't make it a generic
option. */
@@ -449,6 +449,12 @@ parse_args (pargc, pargv)
#define OPTION_NOEXECSTACK (OPTION_STD_BASE + 21)
{"noexecstack", no_argument, NULL, OPTION_NOEXECSTACK},
#endif
+ /* Treat '-f' as a long switch so that getopt will not accept
+ -f<some-text> as a synonym for -f. This can cause confusion
+ when -f switches are passed through from the compiler.
+ FIXME - should we handle other single character switches in the
+ same way ? */
+ {"f", no_argument, NULL, 'f'},
#define OPTION_WARN_FATAL (OPTION_STD_BASE + 22)
{"fatal-warnings", no_argument, NULL, OPTION_WARN_FATAL}
/* When you add options here, check that they do not collide with