Re: [PATCH] tree, c++: declare some basic functions inline

2023-04-21 Thread Jason Merrill via Gcc-patches
On 4/21/23 13:07, Patrick Palka wrote: On Sun, 4 Dec 2022, Patrick Palka wrote: The functions strip_array_types, is_typedef_decl, typedef_variant_p, cp_type_quals and cp_expr_location are used throughout the C++ frontend including in some fairly hot parts (e.g. in the tsubst routines and cp_wal

Re: [PATCH] tree, c++: declare some basic functions inline

2023-04-21 Thread Patrick Palka via Gcc-patches
On Sun, 4 Dec 2022, Patrick Palka wrote: > The functions strip_array_types, is_typedef_decl, typedef_variant_p, > cp_type_quals and cp_expr_location are used throughout the C++ frontend > including in some fairly hot parts (e.g. in the tsubst routines and > cp_walk_subtree) and they're small enoug

[PATCH] tree, c++: declare some basic functions inline

2022-12-04 Thread Patrick Palka via Gcc-patches
The functions strip_array_types, is_typedef_decl, typedef_variant_p, cp_type_quals and cp_expr_location are used throughout the C++ frontend including in some fairly hot parts (e.g. in the tsubst routines and cp_walk_subtree) and they're small enough that the overhead of calling them out-of-line is