Do not strcat to result of getenv.
authorMartin Liska <mliska@suse.cz>
Fri, 13 Mar 2020 12:50:01 +0000 (13:50 +0100)
committerMartin Liska <mliska@suse.cz>
Fri, 13 Mar 2020 12:50:01 +0000 (13:50 +0100)
commit98ff89d1ac5872f29020fe5b5edfdf5abce59014
treedf56046e29ea5221aedee3252669de596a68bb7f
parent43d513af3f2026420312cc709dd729c81862de0c
Do not strcat to result of getenv.

PR lto/94157
* lto-wrapper.c (run_gcc): Use concat for appending
to collect_gcc_options.
PR lto/94157
* gcc.dg/lto/pr94157_0.c: New test.
gcc/ChangeLog
gcc/lto-wrapper.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/lto/pr94157_0.c [new file with mode: 0644]