Re: [PATCH] Do not strcat to result of getenv.

2020-03-13 Thread Martin Liška
On 3/13/20 1:39 PM, Jakub Jelinek wrote: collect_gcc_options = concat (collect_gcc_options, xassembler_opts_string, NULL); instead? Ah, I forgot that concat is available here. I would choose this way, even though it's a small memory leak. I'm going to

Re: [PATCH] Do not strcat to result of getenv.

2020-03-13 Thread Jakub Jelinek via Gcc-patches
On Fri, Mar 13, 2020 at 01:26:02PM +0100, Martin Liška wrote: > diff --git a/gcc/lto-wrapper.c b/gcc/lto-wrapper.c > index b8a35c85714..84a0bd24e91 100644 > --- a/gcc/lto-wrapper.c > +++ b/gcc/lto-wrapper.c > @@ -1317,7 +1317,11 @@ run_gcc (unsigned argc, char *argv[]) > >char *xassembler