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
+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
int err;
const char *p;
+ const char *orig_infile = infile;
off_t inoff = 0;
long loffset;
int consumed;
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