summaryrefslogtreecommitdiff
path: root/gcc/collect2.c
diff options
context:
space:
mode:
authormerrill <merrill@138bc75d-0d04-0410-961f-82ee72b054a4>1994-09-28 00:11:31 +0000
committermerrill <merrill@138bc75d-0d04-0410-961f-82ee72b054a4>1994-09-28 00:11:31 +0000
commitf314c55f86259c7214be309e79b2b3254c23e364 (patch)
tree4dce93a3a09e744251e9e7672217282ab90f0607 /gcc/collect2.c
parent34916c7e2e15157d462d22da6707f3d3372e4a3c (diff)
downloadgcc-f314c55f86259c7214be309e79b2b3254c23e364.tar.gz
(main): Ignore options in COLLECT_SUPPRESS_OPTIONS
for the first link. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@8153 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/collect2.c')
-rw-r--r--gcc/collect2.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/gcc/collect2.c b/gcc/collect2.c
index 7decccd6170..8b98be6168f 100644
--- a/gcc/collect2.c
+++ b/gcc/collect2.c
@@ -1056,6 +1056,14 @@ main (argc, argv)
*ld1++ = *ld2++ = arg;
if (arg[0] == '-')
+ {
+#ifdef COLLECT_SUPPRESS_OPTIONS
+ if (index (COLLECT_SUPPRESS_OPTIONS, arg[1]))
+ {
+ ld1--;
+ continue;
+ }
+#endif
switch (arg[1])
{
case 'd':
@@ -1093,7 +1101,7 @@ main (argc, argv)
vflag = 1;
break;
}
-
+ }
else if (first_file
&& (p = rindex (arg, '.')) != (char *)0
&& strcmp (p, ".o") == 0)