From d5d8b1117e33f514ef6cacae4e6f6663c795152c Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Sat, 26 Jun 2010 18:04:16 +0100 Subject: collect2.c (main): Remove SWITCHES_NEED_SPACES conditional. * 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. From-SVN: r161436 --- gcc/collect2.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'gcc/collect2.c') diff --git a/gcc/collect2.c b/gcc/collect2.c index b542117..b26aaf3 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; -- cgit v1.1