Re: [libbacktrace] Fix and simplify xcoff_%.c pattern rule

2019-01-28 Thread Ian Lance Taylor
On Mon, Jan 28, 2019 at 1:25 AM Tom de Vries wrote: > > [ was: Re: [backtrace] Avoid segfault ] > On 27-01-19 22:53, Ian Lance Taylor wrote: > > On Sun, Jan 27, 2019 at 1:16 PM Tom de Vries wrote: > >> > >> On 25-01-19 18:15, Nathan Sidwell wrote: > >>> On 1/25/19 5:28 AM, Tom de Vries wrote: >

[libbacktrace] Fix and simplify xcoff_%.c pattern rule

2019-01-28 Thread Tom de Vries
;> + > $@ > > You need to use a temporary file, such as $@.tmp, for the final sed > command, followed by a mv to $@. Otherwise a failure in the sed will > leave what appears to be an up to date file. I noticed the same problem in the xcoff_%.c pattern rule. OK for trunk? Thanks