* gcc.c (store_arg): Handle temporary file deletion for
joined arguments.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159201
138bc75d-0d04-0410-961f-
82ee72b054a4
2010-05-09 Richard Guenther <rguenther@suse.de>
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.
PR middle-end/44043
* ipa-inline.c (estimate_function_body_sizes): Return after
disregarding inline limits.
if (strcmp (arg, "-o") == 0)
have_o_argbuf_index = argbuf_index;
if (delete_always || 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);
+ }
}
\f
/* Load specs from a file name named FILENAME, replacing occurrences of
}
\f
/* Load specs from a file name named FILENAME, replacing occurrences of