2014-01-30  Richard Biener  <rguenther@suse.de>

	PR c/59905
	* c-typeck.c (build_function_call_vec): Do not replace calls
	to a function via an incompatible type with a runtime abort.

	* gcc.dg/cast-function-1.c: Adjust to survive DCE.
	* gcc.dg/call-diag-2.c: Remove expected warnings about calling
	abort.
	* gcc.dg/invalid-call-1.c: Likewise.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@207300 138bc75d-0d04-0410-961f-82ee72b054a4
	PR c++/59645
	* cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@207301 138bc75d-0d04-0410-961f-82ee72b054a4
	PR c++/59633
gcc/
	* tree.c (walk_type_fields): Handle VECTOR_TYPE.
gcc/cp/
	* decl2.c (attributes_naming_typedef_ok): New.
	* cp-tree.h: Declare it.
	* decl.c (grokdeclarator): Check it.
	* tree.c (no_linkage_check): Handle VECTOR_TYPE.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@207302 138bc75d-0d04-0410-961f-82ee72b054a4
2014-01-30  Paolo Carlini  <paolo.carlini@oracle.com>

	* decl.c (duplicate_decls, typename_hash, typename_compare):
	Use TYPE_IDENTIFIER.
	* error.c (dump_type): Likewise.
	* mangle.c (dump_substitution_candidates): Likewise.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@207303 138bc75d-0d04-0410-961f-82ee72b054a4
/cp
2014-01-30  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/58649
	* pt.c (lookup_template_class_1): Check start_enum return value
	for error_mark_node.

/testsuite
2014-01-30  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/58649
	* g++.dg/template/crash117.C: New.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@207304 138bc75d-0d04-0410-961f-82ee72b054a4
/cp
2014-01-30  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/58843
	* typeck.c (lookup_destructor): Check dtor_type for error_mark_node.

/testsuite
2014-01-30  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/58843
	* g++.dg/lookup/crash8.C: New.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@207305 138bc75d-0d04-0410-961f-82ee72b054a4