On Fri, Feb 25, 2022 at 10:13:33AM +0100, Richard Biener via Gcc-patches wrote:
> I meant
> 
> /* Set the no_warning flag of STMT to NO_WARNING.  */
> 
> static inline void
> gimple_set_no_warning (gimple *stmt, bool no_warning)
> {
>   stmt->no_warning = (unsigned) no_warning;
> }
> 
> on the artificial stmt.

That seems to be the same case as TREE_NO_WARNING, all those calls
have been replaced:
$ grep -w gimple_set_no_warning *.{h,cc} */*.{h,cc}
gimple.h:gimple_set_no_warning (gimple *stmt, bool no_warning)

But perhaps it is a good idea to start using that when the location_t
isn't a good idea to use for suppression.
I think it will work.

        Jakub

Reply via email to