diff options
| author | Marek Polacek <polacek@redhat.com> | 2026-02-02 18:09:08 -0500 |
|---|---|---|
| committer | Marek Polacek <polacek@redhat.com> | 2026-02-03 09:06:55 -0500 |
| commit | d941833a7f8d44ad2c445b756156d4f61dc79ab5 (patch) | |
| tree | a2641ae1f03481f247fad6dc9e701775868c3168 /libjava/classpath/java/text | |
| parent | 4a514ea759f6045ef091504f2afcf4b618fe2639 (diff) | |
| download | gcc-d941833a7f8d44ad2c445b756156d4f61dc79ab5.zip gcc-d941833a7f8d44ad2c445b756156d4f61dc79ab5.tar.gz gcc-d941833a7f8d44ad2c445b756156d4f61dc79ab5.tar.bz2 | |
c++/reflection: refactor compare_reflections
In <https://gcc.gnu.org/pipermail/gcc-patches/2026-January/705756.html>
Jason suggested using cp_tree_equal for all exprs in compare_reflections.
This patch does so. We just have to handle comparing annotations and
types specially, then we can use cp_tree_equal for the rest. It just
had to be taught not to crash on unequal NAMESPACE_DECLs.
gcc/cp/ChangeLog:
* reflect.cc (compare_reflections): Handle comparing annotations
and types specially, use cp_tree_equal for the rest.
* tree.cc (cp_tree_equal) <case NAMESPACE_DECL>: New.
Reviewed-by: Jason Merrill <jason@redhat.com>
Diffstat (limited to 'libjava/classpath/java/text')
0 files changed, 0 insertions, 0 deletions
