gcc/libcc1
Paolo Carlini d3769410c6 typeck.c (cxx_sizeof_or_alignof_type): Add location_t parameter and use it throughout.
/gcc/cp
2019-12-18  Paolo Carlini  <paolo.carlini@oracle.com>

	* typeck.c (cxx_sizeof_or_alignof_type): Add location_t parameter
	and use it throughout.
	(cxx_sizeof_expr): Likewise.
	(cxx_alignof_expr): Likewise.
	(cxx_sizeof_or_alignof_expr): Likewise.
	(cxx_alignas_expr): Update call.
	* decl.c (fold_sizeof_expr): Likewise.
	* pt.c (tsubst_copy): Likewise.
	(tsubst_copy_and_build): Likewise.
	* except.c (build_throw): Add location_t parameter and use it.
	(expand_end_catch_block): Update call.
	* parser.c (cp_parser_unary_expression): Update
	cxx_sizeof_or_alignof_type and cxx_sizeof_or_alignof_expr calls,
	pass the compound location.
	(cp_parser_throw_expression): Likewise pass the combined location
	to build_throw.
	* cp-tree.h: Update declarations.

	* semantics.c (finish_handler_parms): Use DECL_SOURCE_LOCATION.
	* decl2.c (check_classfn): Likewise.

	* except.c (is_admissible_throw_operand_or_catch_parameter):
	Exploit cp_expr_loc_or_input_loc in one place.

	* except.c (create_try_catch_expr): Remove, unused.

/libcc1
2019-12-18  Paolo Carlini  <paolo.carlini@oracle.com>

	* libcp1plugin.cc (plugin_build_unary_expr): Update build_throw
	and cxx_sizeof_or_alignof_expr calls.
	(plugin_build_unary_type_expr): Likewise for
	cxx_sizeof_or_alignof_type.

/gcc/testsuite
2019-12-18  Paolo Carlini  <paolo.carlini@oracle.com>

	* g++.dg/diagnostic/alignof2.C: New.
	* g++.dg/diagnostic/alignof3.C: Likewise.
	* g++.dg/diagnostic/incomplete-type-1.C: Likewise.
	* g++.dg/warn/Wcatch-value-3b.C: Likewise.
	* g++.dg/cpp0x/alignof3.C: Check location(s) too.
	* g++.dg/cpp1z/decomp-bitfield1.C: Likewise.
	* g++.dg/cpp1z/has-unique-obj-representations2.C: Likewise.
	* g++.dg/expr/sizeof3.C: Likewise.
	* g++.dg/ext/flexary6.C: Likewise.
	* g++.dg/ext/vla4.C: Likewise.
	* g++.dg/template/sizeof11.C: Likewise.
	* g++.dg/warn/Wcatch-value-1.C: Likewise.
	* g++.dg/warn/Wcatch-value-2.C: Likewise.
	* g++.dg/warn/Wcatch-value-3.C: Likewise.
	* g++.old-deja/g++.brendan/sizeof1.C: Likewise.
	* g++.old-deja/g++.brendan/sizeof3.C: Likewise.
	* g++.old-deja/g++.brendan/sizeof4.C: Likewise.
	* g++.old-deja/g++.eh/ctor1.C: Likewise.
	* g++.old-deja/g++.jason/ambig1.C: Likewise.
	* g++.old-deja/g++.other/sizeof4.C: Likewise.

From-SVN: r279543
2019-12-18 19:23:01 +00:00
..
aclocal.m4 Update GCC to autoconf 2.69, automake 1.15.1 (PR bootstrap/82856). 2018-10-31 17:03:16 +00:00
callbacks.cc Update copyright years. 2019-01-01 13:31:55 +01:00
callbacks.hh Update copyright years. 2019-01-01 13:31:55 +01:00
cc1plugin-config.h.in
ChangeLog typeck.c (cxx_sizeof_or_alignof_type): Add location_t parameter and use it throughout. 2019-12-18 19:23:01 +00:00
compiler-name.hh Update copyright years. 2019-01-01 13:31:55 +01:00
configure Regenerate configure' scripts for uclinuxfdpiceabi' libtool.m4 update 2019-09-27 21:24:42 +00:00
configure.ac Update copyright years. 2019-01-01 13:31:55 +01:00
connection.cc Update copyright years. 2019-01-01 13:31:55 +01:00
connection.hh Update copyright years. 2019-01-01 13:31:55 +01:00
findcomp.cc Update copyright years. 2019-01-01 13:31:55 +01:00
findcomp.hh Update copyright years. 2019-01-01 13:31:55 +01:00
libcc1.cc Update copyright years. 2019-01-01 13:31:55 +01:00
libcc1.sym Introduce C++ support in libcc1 2017-01-31 01:02:03 +00:00
libcc1plugin.cc Update copyright years. 2019-01-01 13:31:55 +01:00
libcc1plugin.sym
libcp1.cc Update copyright years. 2019-01-01 13:31:55 +01:00
libcp1plugin.cc typeck.c (cxx_sizeof_or_alignof_type): Add location_t parameter and use it throughout. 2019-12-18 19:23:01 +00:00
libcp1plugin.sym Introduce C++ support in libcc1 2017-01-31 01:02:03 +00:00
Makefile.am Update copyright years. 2019-01-01 13:31:55 +01:00
Makefile.in Update GCC to autoconf 2.69, automake 1.15.1 (PR bootstrap/82856). 2018-10-31 17:03:16 +00:00
marshall-c.hh Update copyright years. 2019-01-01 13:31:55 +01:00
marshall-cp.hh Update copyright years. 2019-01-01 13:31:55 +01:00
marshall.cc Update copyright years. 2019-01-01 13:31:55 +01:00
marshall.hh Update copyright years. 2019-01-01 13:31:55 +01:00
names.cc Update copyright years. 2019-01-01 13:31:55 +01:00
names.hh Update copyright years. 2019-01-01 13:31:55 +01:00
rpc.hh Update copyright years. 2019-01-01 13:31:55 +01:00
status.hh Update copyright years. 2019-01-01 13:31:55 +01:00