Re: [patch,lto] Fix PR81487

2017-07-21 Thread Georg-Johann Lay
On 21.07.2017 13:41, Richard Biener wrote: On Thu, Jul 20, 2017 at 3:18 PM, Georg-Johann Lay wrote: Hi, this patch fixes some minor problems in lto-plugin: Some older mingw32 host environments have broken asprintf. As far as I can tell, the problem is that the mingw asprintf implementation cal

Re: [patch,lto] Fix PR81487

2017-07-21 Thread Richard Biener
On Thu, Jul 20, 2017 at 3:18 PM, Georg-Johann Lay wrote: > Hi, this patch fixes some minor problems in lto-plugin: > > Some older mingw32 host environments have broken asprintf. > As far as I can tell, the problem is that the mingw asprintf > implementation calls _vsnprintf (NULL, 0, ...) which al

[patch,lto] Fix PR81487

2017-07-20 Thread Georg-Johann Lay
Hi, this patch fixes some minor problems in lto-plugin: Some older mingw32 host environments have broken asprintf. As far as I can tell, the problem is that the mingw asprintf implementation calls _vsnprintf (NULL, 0, ...) which always returns -1 as length on the host. The patch fixes this by us