* constexpr.c (literal_type_p): Return true for void type in C++14.

	* g++.dg/cpp0x/constexpr-function2.C: Limit dg-error to C++11.
	* g++.dg/cpp0x/constexpr-neg1.C: Likewise.
	* g++.dg/cpp1y/constexpr-void1.C: New test.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@218220 138bc75d-0d04-0410-961f-82ee72b054a4
	PR sanitizer/63956
	* ubsan.c (is_ubsan_builtin_p): Check also built-in class.
cp/
	* constexpr.c: Include ubsan.h.
	(cxx_eval_call_expression): Bail out for IFN_UBSAN_{NULL,BOUNDS}
	internal functions and for ubsan builtins.
	* error.c: Include internal-fn.h.
	(dump_expr): Add printing of internal functions.
testsuite/
	* c-c++-common/ubsan/shift-5.c: Add xfails.
	* g++.dg/ubsan/div-by-zero-1.C: Don't use -w.  Add xfail.
	* g++.dg/ubsan/pr63956.C: New test.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@218221 138bc75d-0d04-0410-961f-82ee72b054a4
	PR sanitizer/64121
	* ubsan.c (instrument_object_size): Stop searching if the base
	occurs in abnormal phi.

	* c-c++-common/ubsan/pr64121.c: New test.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@218222 138bc75d-0d04-0410-961f-82ee72b054a4
2014-12-01  Richard Biener  <rguenther@suse.de>

	* fold-const.c (const_binop): Handle POINTER_PLUS_EXPR.
	Properly handle FIXED_CST shifts by INTEGER_CST.
	(const_binop): Move COMPLEX_EXPR, VEC_PACK_TRUNC_EXPR,
	VEC_PACK_FIX_TRUNC_EXPR, VEC_WIDEN_MULT_LO_EXPR,
	VEC_WIDEN_MULT_HI_EXPR, VEC_WIDEN_MULT_EVEN_EXPR and
	VEC_WIDEN_MULT_ODD_EXPR handling here from ...
	(fold_binary_loc): ... here.  Call const_binop overload
	with result type.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@218223 138bc75d-0d04-0410-961f-82ee72b054a4
2014-12-01  Richard Biener  <rguenther@suse.de>

	* Makefile.in (gimple-match.o-warn): Use -Wno-unused instead of
	-Wno-unused-variable and -Wno-unused-but-set-variable to restore
	bootstrap with old GCC.
	(generic-match.o-warn): Likewise.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@218224 138bc75d-0d04-0410-961f-82ee72b054a4
jit.exp: Avoid embedding full paths into test results

gcc/testsuite/ChangeLog:
	* jit.dg/jit.exp (jit-dg-test): Use $name rathen than $prog
	when calling jit_check_compile to avoid embedding the full path of
	the testcase into the test results.



git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@218225 138bc75d-0d04-0410-961f-82ee72b054a4
PR jit/63969: Fix segfault in error-handling when driver isn't found

gcc/jit/ChangeLog:
	PR jit/63969
	* jit-playback.c: Ensure that ctxt_progname is non-NULL.

gcc/testsuite/ChangeLog:
	PR jit/63969
	* jit.dg/harness.h (CHECK_STRING_STARTS_WITH): New.
	(check_string_starts_with): New.
	* jit.dg/test-error-pr63969-missing-driver.c: New.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@218226 138bc75d-0d04-0410-961f-82ee72b054a4
PR jit/63854: Add support for running "make check-jit" under valgrind

gcc/testsuite/ChangeLog:
	PR jit/63854
	* jit.dg/jit.exp (report_leak): New.
	(parse_valgrind_logfile): New.
	(fixed_host_execute): Detect if RUN_UNDER_VALGRIND is present
	in the environment, and if so, run the executable under
	valgrind, capturing valgrind's output to a logfile.  Parse the
	log file, generating PASSes and XFAILs for the summary of leaks.
	Use "wait" before "close": valgrind might not have finished
	writing the log out before we parse it, so we need to wait for
	the spawnee to finish.



git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@218227 138bc75d-0d04-0410-961f-82ee72b054a4
jit.exp: fix timeout bug inherited from dejagnu.exp

gcc/testsuite/ChangeLog:
	* jit.dg/jit.exp (fixed_host_execute): Fix timeout bug.



git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@218228 138bc75d-0d04-0410-961f-82ee72b054a4
jit.exp: Verify the exit status of the spawnee

gcc/testsuite/ChangeLog:
	* jit.dg/jit.exp (verify_exit_status): New function.
	(fixed_host_execute): Verify the exit status of the spawnee.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@218229 138bc75d-0d04-0410-961f-82ee72b054a4
PR jit/63854: Fix leak in tree-ssa-math-opts.c

gcc/ChangeLog:
	PR jit/63854
	* tree-ssa-math-opts.c (execute_cse_sincos_1): Fix a missing
	release of stmts by converting it to an auto_vec.



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