re PR lto/90369 (error: could not unlink output file)
2019-05-07 Richard Biener <rguenther@suse.de> PR lto/90369 * lto-wrapper.c (debug_objcopy): Use the original filename including archive offset for the filename used for -save-temps. From-SVN: r270937
This commit is contained in:
parent
03de295512
commit
fe26771191
2 changed files with 9 additions and 2 deletions
|
@ -1,3 +1,9 @@
|
|||
2019-05-07 Richard Biener <rguenther@suse.de>
|
||||
|
||||
PR lto/90369
|
||||
* lto-wrapper.c (debug_objcopy): Use the original filename
|
||||
including archive offset for the filename used for -save-temps.
|
||||
|
||||
2019-05-07 Li Jia He <helijia@linux.ibm.com>
|
||||
|
||||
* tree-ssa-phiopt.c (two_value_replacement): Fix a typo in parameter
|
||||
|
|
|
@ -1044,6 +1044,7 @@ debug_objcopy (const char *infile, bool rename)
|
|||
int err;
|
||||
|
||||
const char *p;
|
||||
const char *orig_infile = infile;
|
||||
off_t inoff = 0;
|
||||
long loffset;
|
||||
int consumed;
|
||||
|
@ -1080,9 +1081,9 @@ debug_objcopy (const char *infile, bool rename)
|
|||
|
||||
if (save_temps)
|
||||
{
|
||||
outfile = (char *) xmalloc (strlen (infile)
|
||||
outfile = (char *) xmalloc (strlen (orig_infile)
|
||||
+ sizeof (".debug.temp.o") + 1);
|
||||
strcpy (outfile, infile);
|
||||
strcpy (outfile, orig_infile);
|
||||
strcat (outfile, ".debug.temp.o");
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Add table
Reference in a new issue