Re: [PATCH] tree.cc, v2: Add tree_builtin_call_types_compatible_p [PR105150]

2022-04-06 Thread Richard Biener via Gcc-patches
On Wed, 6 Apr 2022, Jakub Jelinek wrote: > On Wed, Apr 06, 2022 at 09:49:25AM +0200, Richard Biener wrote: > > On trees we'd use tree_[sign_]nop_conversion () instead of > > useless_type_conversion_p, I think it's OK to allow all such > > pointer conversions. In the end this probably means being

[PATCH] tree.cc, v2: Add tree_builtin_call_types_compatible_p [PR105150]

2022-04-06 Thread Jakub Jelinek via Gcc-patches
On Wed, Apr 06, 2022 at 09:49:25AM +0200, Richard Biener wrote: > On trees we'd use tree_[sign_]nop_conversion () instead of > useless_type_conversion_p, I think it's OK to allow all such > pointer conversions. In the end this probably means being > more forgiving than TYPE_MAIN_VARIANT