diff options
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/gcc.c | 10 |
2 files changed, 14 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 3112b80b013..bd64d9daec0 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,10 @@ 2010-05-09 Richard Guenther <rguenther@suse.de> + * gcc.c (store_arg): Handle temporary file deletion for + joined arguments. + +2010-05-09 Richard Guenther <rguenther@suse.de> + PR middle-end/44043 * ipa-inline.c (estimate_function_body_sizes): Return after disregarding inline limits. diff --git a/gcc/gcc.c b/gcc/gcc.c index a0083e1d0f6..e2644c4a73e 100644 --- a/gcc/gcc.c +++ b/gcc/gcc.c @@ -2082,7 +2082,15 @@ store_arg (const char *arg, int delete_always, int delete_failure) if (strcmp (arg, "-o") == 0) have_o_argbuf_index = argbuf_index; if (delete_always || delete_failure) - record_temp_file (arg, delete_always, delete_failure); + { + const char *p; + /* If the temporary file we should delete is specified as + part of a joined argument extract the filename. */ + if (arg[0] == '-' + && (p = strrchr (arg, '='))) + arg = p + 1; + record_temp_file (arg, delete_always, delete_failure); + } } /* Load specs from a file name named FILENAME, replacing occurrences of |