gcc/libcc1
Paolo Carlini 3554d8ffc5 typeck.c (cp_build_indirect_ref_1): Add location_t parameter and use it in error messages.
/gcc
2019-11-25  Paolo Carlini  <paolo.carlini@oracle.com>

	* typeck.c (cp_build_indirect_ref_1): Add location_t parameter
	and use it in error messages.
	(build_x_indirect_ref): Adjust call.
	(build_indirect_ref): Likewise.
	(cp_build_fold_indirect_ref): Likewise.
	(cp_build_array_ref): Likewise.
	* call.c (build_new_op_1): Likewise.
	* semantics.c (finish_omp_clauses): Likewise.
	(finish_omp_depobj): Likewise.
	* typeck2.c (build_x_arrow): Likewise.
	* cp-tree.h (cp_build_indirect_ref): Update declaration.

	* call.c (build_new_op_1): Use location argument in warning_at.

	* typeck.c (cp_build_modify_expr): Consistently use the
	location_t argument.

/libcc1
2019-11-25  Paolo Carlini  <paolo.carlini@oracle.com>

	* libcp1plugin.cc (plugin_pragma_push_user_expression): Update
	cp_build_indirect_ref call.

/gcc/testsuite
2019-11-25  Paolo Carlini  <paolo.carlini@oracle.com>

	* g++.dg/diagnostic/base-operand-non-pointer-1.C: New.
	* g++.dg/pr53055.C: Check location too.
	* g++.old-deja/g++.bugs/900213_02.C: Likewise.
	* g++.old-deja/g++.bugs/900215_02.C: Likewise.
	* g++.old-deja/g++.other/badarrow.C: Likewise.
	* g++.old-deja/g++.other/deref1.C: Likewise.

	* g++.dg/warn/Wenum-compare.C: Check location too.

	* g++.dg/cpp0x/initlist26.C: Check location too.
	* g++.dg/cpp0x/initlist28.C: Likewise.
	* g++.dg/cpp0x/initlist29.C: Likewise.
	* g++.dg/cpp0x/initlist33.C: Likewise.
	* g++.dg/expr/string-2.C: Likewise.
	* g++.dg/other/ptrmem5.C: Likewise.
	* g++.old-deja/g++.benjamin/14664-1.C: Likewise.
	* g++.old-deja/g++.benjamin/14664-2.C: Likewise.
	* g++.old-deja/g++.brendan/init12.C: Likewise.
	* g++.old-deja/g++.bugs/900324_04.C: Likewise.
	* g++.old-deja/g++.ext/array1.C: Likewise.
	* g++.old-deja/g++.jason/rfg17.C: Likewise.

From-SVN: r278685
2019-11-25 13:49:50 +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 (cp_build_indirect_ref_1): Add location_t parameter and use it in error messages. 2019-11-25 13:49:50 +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 (cp_build_indirect_ref_1): Add location_t parameter and use it in error messages. 2019-11-25 13:49:50 +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