diff options
author | Nathan Sidwell <nathan@acm.org> | 2020-07-01 08:56:32 -0700 |
---|---|---|
committer | Giuliano Belinassi <giuliano.belinassi@usp.br> | 2020-08-17 13:15:44 -0300 |
commit | 4b8efc8ff4f9c9cfd0aad8c27581bb9db1ea28e9 (patch) | |
tree | 002a33813250f2c33a8a5a557354cbcbd3ce2255 /gcc/fortran/interface.c | |
parent | 7dee4b6aad35e9b50a2fedc4621e881cb870dbb9 (diff) | |
download | gcc-4b8efc8ff4f9c9cfd0aad8c27581bb9db1ea28e9.zip gcc-4b8efc8ff4f9c9cfd0aad8c27581bb9db1ea28e9.tar.gz gcc-4b8efc8ff4f9c9cfd0aad8c27581bb9db1ea28e9.tar.bz2 |
c++: Expose cloning form predicates
A further adjustment of the function cloning. Rather than have
copy_fndecl_with_name deduce whether a particular cdtor needs a
vtt_parm and/or has inherited parms to drop, pass that information in
from the caller. In particular build_cdtor_clones knows when its
building the particular cdtors that might need these. On the modules
branch I need to clone cdtors before the underlying class information
is necessarily complete. There build_cdtor_clones is externally
callable to facilitate that.
gcc/cp/
* class.c (copy_fndecl_with_name): Add additional predicate args, do
not deduce them locally.
(copy_operator_fn): Adjust copy_fndecl_with_name call.
(build_clone): Add vtt and inherited predicate args. Pass through
to copy_fndecl_with_name call.
(build_cdtor_clones): Likewise, pass through to build_clone as
needed.
(build_cdtor): Determine vtt and inherited here.
* cp-tree.h (DECL_NEEDS_CTT_PARM_P): Delete.
Diffstat (limited to 'gcc/fortran/interface.c')
0 files changed, 0 insertions, 0 deletions