Re: [PATCH 2/3] Add one more argument to simulate_builtin_function_decl.

2024-11-03 Thread Richard Biener
On Fri, Nov 1, 2024 at 9:22 AM KuanLin Chen wrote: > > simulate_builtin_function_decl may return decl that be ggc_freed already > in pushdecl when duplicate_decls is true. It shouldn't do that. It should either return the duplicate or NULL, so this is definitely not a good fix - well, it's to th

Re: [PATCH 2/3] Add one more argument to simulate_builtin_function_decl.

2024-11-01 Thread Kito Cheng
Hi Richard: The last attempt[1] from Jin Ma is to check the returned decl, and I agree that seems not the right way to fix it, but I'm not sure if that's the right way to fix this issue from your point of view? Thanks [1] https://patchwork.sourceware.org/project/gcc/patch/2024091002.591-1-j