aboutsummaryrefslogtreecommitdiff
path: root/gcc/collect2.c
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2010-06-26 17:04:16 +0000
committerJoseph Myers <joseph@codesourcery.com>2010-06-26 17:04:16 +0000
commit9e18cb4084ff96dc388b280a3e13902af94634e0 (patch)
tree7dedea3332fdbb66a9633e1476683abb625fc438 /gcc/collect2.c
parentc901464e284c983fd669aaa0141e116c0dc65fec (diff)
* collect2.c (main): Remove SWITCHES_NEED_SPACES conditional.
* doc/tm.texi (SWITCHES_NEED_SPACES): Don't document. * gcc.c (SWITCHES_NEED_SPACES, switches_need_spaces): Remove. (static_specs): Remove switches_need_spaces. (process_command, do_self_spec): Hardcode handling "-o" instead of checking switches_need_spaces. * system.h (SWITCHES_NEED_SPACES): Poison. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@161436 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/collect2.c')
-rw-r--r--gcc/collect2.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/gcc/collect2.c b/gcc/collect2.c
index b5421179fd2..b26aaf31485 100644
--- a/gcc/collect2.c
+++ b/gcc/collect2.c
@@ -1535,12 +1535,7 @@ main (int argc, char **argv)
case 'o':
if (arg[2] == '\0')
output_file = *ld1++ = *ld2++ = *++argv;
- else if (1
-#ifdef SWITCHES_NEED_SPACES
- && ! strchr (SWITCHES_NEED_SPACES, arg[1])
-#endif
- )
-
+ else
output_file = &arg[2];
break;