Re: [PATCH] offloading: fix -foffload hinting

2021-07-12 Thread Martin Liška
On 7/12/21 11:17 AM, Jakub Jelinek wrote: Please move char *s; declaration into the new scope. Sure. Ok with that change. I've just pushed to master. Martin

Re: [PATCH] offloading: fix -foffload hinting

2021-07-12 Thread Jakub Jelinek via Gcc-patches
On Mon, Jul 12, 2021 at 11:01:39AM +0200, Martin Liška wrote: > We should not call candidates_list_and_hint if there are no candidates. > > Ready after testing finishes? > Thanks, > Martin > > sanitizer/101425 > > gcc/ChangeLog: > > * gcc.c (check_offload_target_name): Call >

[PATCH] offloading: fix -foffload hinting

2021-07-12 Thread Martin Liška
We should not call candidates_list_and_hint if there are no candidates. Ready after testing finishes? Thanks, Martin sanitizer/101425 gcc/ChangeLog: * gcc.c (check_offload_target_name): Call candidates_list_and_hint only if we have a candidate. --- gcc/gcc.c | 15 +++