aboutsummaryrefslogtreecommitdiff
path: root/contrib/gcc-changelog/git_commit.py
diff options
context:
space:
mode:
authorAndrew Pinski <andrew.pinski@oss.qualcomm.com>2025-10-31 14:35:41 -0700
committerAndrew Pinski <andrew.pinski@oss.qualcomm.com>2025-10-31 19:07:30 -0700
commita3ee90fd3dc5d5c98f63a16f9cdd788c5d5c3335 (patch)
tree6eee70f273f9fd952b4084cd0c4b8b2598f795a1 /contrib/gcc-changelog/git_commit.py
parentee6766dbbaf36dd2470135b2e73ffb1c8b697eee (diff)
downloadgcc-a3ee90fd3dc5d5c98f63a16f9cdd788c5d5c3335.zip
gcc-a3ee90fd3dc5d5c98f63a16f9cdd788c5d5c3335.tar.gz
gcc-a3ee90fd3dc5d5c98f63a16f9cdd788c5d5c3335.tar.bz2
ipa: Fix pritting of symtab_node type [PR122512]
The problem here r16-4747-g529c25ed6e0a06 changed symtab_type to toplevel_type and then added 2 types at the begining but didn't update symtab_type_names. This obvious patch changes symtab_type_names to toplevel_type_names, adds a _MAX type to toplevel_type and a comment about keeping them in sync. Also adds an static assert to make sure if someone adds a toplevel_type that toplevel_type_names get updated too. Pushed as obvious after a build and test. PR ipa/122512 gcc/ChangeLog: * cgraph.h (enum toplevel_type): Add TOPLEVEL_MAX. Add comment about keeping toplevel_type_names in sync. * symtab.cc (symtab_type_names): Rename to ... (toplevel_type_names): Add new types and add an assert about the size. (symtab_node::get_symtab_type_string): Use toplevel_type_names instead of symtab_type_names. (symtab_node::dump_base): Likewise. Signed-off-by: Andrew Pinski <andrew.pinski@oss.qualcomm.com>
Diffstat (limited to 'contrib/gcc-changelog/git_commit.py')
0 files changed, 0 insertions, 0 deletions