> Am 09.05.2026 um 08:11 schrieb Andrew Pinski <[email protected]>:
> 
> cfg_hooks should be constified a long time ago. I suspect nobody looked
> into this code to try to improve it over the years even.
> There are a lot more like this can be done in the GCC code base but most
> of the time things like this is not done unless someone was looking into
> an issue of the code.  I even forgot why I was looking into this code
> at the time when I filed PR 117871 to remind myself and others that this
> should be done.
> Basically if you see some cleanup that should be done and don't have time
> to work on it, please file a bug report. I have seen recently new folks
> getting involved by doing these kind of cleanups even.

Ok for the series.

Thanks, Richard 

> Thanks,
> Drea
> 
> Andrew Pinski (3):
>  cfghooks: Move ir_type inside cfghooks
>  cfghooks: Remove name field
>  cfghooks: constifify cfg_hooks [PR117871]
> 
> gcc/cfghooks.cc     | 86 +++++++++++++++++++++++++++------------------
> gcc/cfghooks.h      | 14 ++++----
> gcc/cfgrtl.cc       |  8 ++---
> gcc/sel-sched-ir.cc |  8 ++---
> gcc/tree-cfg.cc     |  4 +--
> 5 files changed, 69 insertions(+), 51 deletions(-)
> 
> --
> 2.43.0
> 

Reply via email to