aboutsummaryrefslogtreecommitdiff
path: root/contrib/gcc-changelog/git_commit.py
diff options
context:
space:
mode:
authorMarek Polacek <polacek@redhat.com>2025-10-27 20:08:00 -0400
committerMarek Polacek <polacek@redhat.com>2025-10-28 16:28:05 -0400
commit4f06ce10a685dc793a8e6dbae00cdef0c3b15cc7 (patch)
tree6de3d40a15c8e191fcb290ddc298cf460d32944e /contrib/gcc-changelog/git_commit.py
parent14f7cfd292f18d9f83a9d4f36338b2399ad79a59 (diff)
downloadgcc-4f06ce10a685dc793a8e6dbae00cdef0c3b15cc7.zip
gcc-4f06ce10a685dc793a8e6dbae00cdef0c3b15cc7.tar.gz
gcc-4f06ce10a685dc793a8e6dbae00cdef0c3b15cc7.tar.bz2
c++: share more trees representing enumerators
This came up in Reflection where an assert fails because we have two different trees for same enumerators. The reason is that in finish_enum_value_list we copy_node when converting the enumerators. It should be more efficient to share trees for identical enumerators. This fix was proposed by Jakub. gcc/cp/ChangeLog: * decl.cc (finish_enum_value_list): Use fold_convert instead of copy_node. Co-authored-by: Jakub Jelinek <jakub@redhat.com> Reviewed-by: Jason Merrill <jason@redhat.com>
Diffstat (limited to 'contrib/gcc-changelog/git_commit.py')
0 files changed, 0 insertions, 0 deletions