aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJim Wilson <wilson@gcc.gnu.org>1993-12-23 16:26:16 -0800
committerJim Wilson <wilson@gcc.gnu.org>1993-12-23 16:26:16 -0800
commitfb99c21cfafa28704c637df116f483000b2cb65b (patch)
tree25d3ab1bcb675ef9b53d4a31114dfb231ef99208 /gcc
parenta6642da8c0978a553075224409c1ee5fd12dc219 (diff)
downloadgcc-fb99c21cfafa28704c637df116f483000b2cb65b.zip
gcc-fb99c21cfafa28704c637df116f483000b2cb65b.tar.gz
gcc-fb99c21cfafa28704c637df116f483000b2cb65b.tar.bz2
(translate_options): Skip arguments of -B, -b, -V, -x,
and -Xlinker options. From-SVN: r6289
Diffstat (limited to 'gcc')
-rw-r--r--gcc/gcc.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/gcc.c b/gcc/gcc.c
index 96fe072..c6f2e79 100644
--- a/gcc/gcc.c
+++ b/gcc/gcc.c
@@ -844,6 +844,11 @@ translate_options (argcp, argvp)
nskip += SWITCH_TAKES_ARG (c) - (p[1] != 0);
else if (WORD_SWITCH_TAKES_ARG (p))
nskip += WORD_SWITCH_TAKES_ARG (p);
+ else if ((c == 'B' || c == 'b' || c == 'V' || c == 'x')
+ && p[1] == 0)
+ nskip += 1;
+ else if (! strcmp (p, "Xlinker"))
+ nskip += 1;
while (nskip > 0)
{