diff options
author | Nathan Sidwell <nathan@acm.org> | 2020-11-03 05:11:42 -0800 |
---|---|---|
committer | Nathan Sidwell <nathan@acm.org> | 2020-11-03 05:16:31 -0800 |
commit | 444655b6f02605ae936426a14ba527795795587b (patch) | |
tree | bf5cf729d143791165173465696e84df089dda42 /gcc/cp/init.c | |
parent | fbc3f847438f2297c31d9eaaec5e662192acb779 (diff) | |
download | gcc-444655b6f02605ae936426a14ba527795795587b.zip gcc-444655b6f02605ae936426a14ba527795795587b.tar.gz gcc-444655b6f02605ae936426a14ba527795795587b.tar.bz2 |
c++: cp_tree_equal cleanups
A couple of small fixes. I noticed bind_template_template_parms was
not marking the parm a template parm (this broke some module
handling). Debugging CALL_EXPR comparisons led me to refactor
cp_tree_equal's CALL_EXPR code (and my recent fix to debug printing of
same). Finally TREE_VECS are best compared by comp_template_args. I
recall that last piece being a left over from fixes during gcc-10.
I've been using it on the modules branch since then.
gcc/cp/
* tree.c (bind_template_template_parm): Mark the parm as a
template parm.
(cp_tree_equal): Refactor CALL_EXPR. Use comp_template_args for
TREE_VECs.
Diffstat (limited to 'gcc/cp/init.c')
0 files changed, 0 insertions, 0 deletions