diff options
author | nathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-11-04 15:47:00 +0000 |
---|---|---|
committer | nathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-11-04 15:47:00 +0000 |
commit | 274d4128977962687fd761465e24811ad8e17ae7 (patch) | |
tree | d5f60b19d9114f3dc2d743b3cbee84d72a48ad9a /gcc/gcc.c | |
parent | 675d72cac328333d39da00dee95cf78944ea02a3 (diff) | |
download | gcc-274d4128977962687fd761465e24811ad8e17ae7.tar.gz |
PR driver/11810
* gcc.c (SWITCHES_NEED_SPACES): Define to "o".
* config/alpha/osf.h (SWITCHES_NEED_SPACES): Remove here.
* config/mips/iris.h (SWITCHES_NEED_SPACES): Remove here.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@153900 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/gcc.c')
-rw-r--r-- | gcc/gcc.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/gcc/gcc.c b/gcc/gcc.c index b033d62ff13..0f74dd07970 100644 --- a/gcc/gcc.c +++ b/gcc/gcc.c @@ -684,9 +684,15 @@ proper position among the other output files. */ #endif /* config.h can define SWITCHES_NEED_SPACES to control which options - require spaces between the option and the argument. */ + require spaces between the option and the argument. + + We define SWITCHES_NEED_SPACES to include "o" by default. This + causes "-ofoo.o" to be split into "-o foo.o" during the initial + processing of the command-line, before being seen by the specs + machinery. This makes sure we record "foo.o" as the temporary file + to be deleted in the case of error, rather than "-ofoo.o". */ #ifndef SWITCHES_NEED_SPACES -#define SWITCHES_NEED_SPACES "" +#define SWITCHES_NEED_SPACES "o" #endif /* config.h can define ENDFILE_SPEC to override the default crtn files. */ |