gcc/libcc1
Nathan Sidwell f40866967d c++: DECL_LOCAL_FUNCTION_P -> DECL_LOCAL_DECL_P
Our handling of block-scope extern decls is insufficient for modern
C++, in particular modules, (but also constexprs).  We mark such local
function decls, and this patch extends that to marking local var decls
too, so mainly a macro rename.  Also, we set this flag earlier, rather
than learning about it when pushing the decl.  This is a step towards
handling these properly.

	gcc/cp/
	* cp-tree.h (DECL_LOCAL_FUNCTION_P): Rename to ...
	(DECL_LOCAL_DECL_P): ... here.  Accept both fns and vars.
	* decl.c (start_decl): Set DECL_LOCAL_DECL_P for local externs.
	(omp_declare_variant_finalize_one): Use DECL_LOCAL_DECL_P.
	(local_variable_p): Simplify.
	* name-lookup.c (set_decl_context_in_fn): Assert DECL_LOCAL_DECL_P
	is as expected.  Simplify.
	(do_pushdecl): Don't set decl_context_in_fn for friends.
	(is_local_extern): Simplify.
	* call.c (equal_functions): Use DECL_LOCAL_DECL_P.
	* parser.c (cp_parser_postfix_expression): Likewise.
	(cp_parser_omp_declare_reduction): Likewise.
	* pt.c (check_default_tmpl_args): Likewise.
	(tsubst_expr): Assert nested reduction function is local.
	(type_dependent_expression_p): Use DECL_LOCAL_DECL_P.
	* semantics.c (finish_call_expr): Likewise.
	libcc1/
	* libcp1plugin.cc (plugin_build_call_expr): Use DECL_LOCAL_DECL_P.
2020-09-10 05:45:46 -07:00
..
ChangeLog Daily bump. 2020-08-15 00:16:22 +00:00
Makefile.am libcc1: Enable Intel CET on Intel CET enabled host 2020-05-12 09:12:37 -07:00
Makefile.in libcc1: Enable Intel CET on Intel CET enabled host 2020-05-12 09:12:37 -07:00
aclocal.m4 libcc1: Enable Intel CET on Intel CET enabled host 2020-05-12 09:12:37 -07:00
callbacks.cc Update copyright years. 2020-01-01 12:51:42 +01:00
callbacks.hh Update copyright years. 2020-01-01 12:51:42 +01:00
cc1plugin-config.h.in
compiler-name.hh Update copyright years. 2020-01-01 12:51:42 +01:00
configure Require CET support only for the final GCC build 2020-07-30 05:36:24 -07:00
configure.ac libcc1: Enable Intel CET on Intel CET enabled host 2020-05-12 09:12:37 -07:00
connection.cc Update copyright years. 2020-01-01 12:51:42 +01:00
connection.hh Update copyright years. 2020-01-01 12:51:42 +01:00
findcomp.cc Update copyright years. 2020-01-01 12:51:42 +01:00
findcomp.hh Update copyright years. 2020-01-01 12:51:42 +01:00
libcc1.cc Update copyright years. 2020-01-01 12:51:42 +01:00
libcc1.sym Introduce C++ support in libcc1 2017-01-31 01:02:03 +00:00
libcc1plugin.cc Update copyright years. 2020-01-01 12:51:42 +01:00
libcc1plugin.sym
libcp1.cc Update copyright years. 2020-01-01 12:51:42 +01:00
libcp1plugin.cc c++: DECL_LOCAL_FUNCTION_P -> DECL_LOCAL_DECL_P 2020-09-10 05:45:46 -07:00
libcp1plugin.sym Introduce C++ support in libcc1 2017-01-31 01:02:03 +00:00
marshall-c.hh Update copyright years. 2020-01-01 12:51:42 +01:00
marshall-cp.hh Update copyright years. 2020-01-01 12:51:42 +01:00
marshall.cc Update copyright years. 2020-01-01 12:51:42 +01:00
marshall.hh Update copyright years. 2020-01-01 12:51:42 +01:00
names.cc Update copyright years. 2020-01-01 12:51:42 +01:00
names.hh Update copyright years. 2020-01-01 12:51:42 +01:00
rpc.hh Update copyright years. 2020-01-01 12:51:42 +01:00
status.hh Update copyright years. 2020-01-01 12:51:42 +01:00