gcc/gcc/testsuite
Richard Biener 87c7cf4766 Backport PRs 82244, 82264, 82276, 82285, 82291
2017-09-26  Richard Biener  <rguenther@suse.de>

	Backport from mainline
	2017-09-19  Richard Biener  <rguenther@suse.de>

	PR tree-optimization/82244
	* tree-vrp.c (remove_range_assertions): Do not propagate
	a constant to abnormals but replace the assert with a copy.

	* gcc.dg/torture/pr82244.c: New testcase.

	2017-09-21  Richard Biener  <rguenther@suse.de>

	PR tree-optimization/82276
	PR tree-optimization/82244
	* tree-vrp.c (build_assert_expr_for): Set
	SSA_NAME_OCCURS_IN_ABNORMAL_PHI if the variable we assert on
	has it set.
	(remove_range_assertions): Revert earlier change.

	* gcc.dg/torture/pr82276.c: New testcase.

	2017-09-20  Richard Biener  <rguenther@suse.de>

	PR tree-optimization/82264
	* tree-ssa-sccvn.c (vn_phi_eq): Use safe_dyn_cast to check
	for GIMPLE_CONDs.
	(vn_phi_lookup): Likewise.
	(vn_phi_insert): Likewise.
	* is-a.h (safe_dyn_cast): New.

	* gcc.dg/torture/pr82264.c: New testcase.

	2017-09-25  Richard Biener  <rguenther@suse.de>

	PR tree-optimization/82285
	* tree-vect-patterns.c (vect_recog_bool_pattern): Also handle
	enumeral types.

	* gcc.dg/torture/pr82285.c: New testcase.

	2017-09-22  Richard Biener  <rguenther@suse.de>

	PR tree-optimization/82291
	* tree-if-conv.c (predicate_mem_writes): Make sure to
	remove writes in blocks predicated with false.

	* gcc.dg/torture/pr82291.c: New testcase.

From-SVN: r253190
2017-09-26 10:16:40 +00:00
..
ada
brig.dg
c-c++-common backport: re PR target/82112 (internal compiler error: in fold_convert_loc, at fold-const.c:2262) 2017-09-15 13:22:57 +02:00
config
g++.dg re PR sanitizer/81929 (exponential slowdown in undefined behavior sanitizer for streaming) 2017-09-22 21:00:03 +02:00
g++.old-deja Use relative line number for subsequent dg directives 2017-04-19 06:55:33 +00:00
gcc.c-torture backport: re PR tree-optimization/81503 (Wrong code at -O2) 2017-09-05 21:49:01 +00:00
gcc.dg Backport PRs 82244, 82264, 82276, 82285, 82291 2017-09-26 10:16:40 +00:00
gcc.misc-tests
gcc.target backport: re PR target/82112 (internal compiler error: in fold_convert_loc, at fold-const.c:2262) 2017-09-15 13:24:49 +02:00
gcc.test-framework Use relative line number for subsequent dg directives 2017-04-19 06:55:33 +00:00
gfortran.dg backport: re PR fortran/81770 (Bogus warning: Pointer in pointer assignment might outlive the pointer target) 2017-09-02 21:04:08 +02:00
gfortran.fortran-torture S/390: PR80464: Split MEM->GPR vector moves 2017-04-25 11:18:52 +00:00
gnat.dg re PR ada/79441 (gnat.dg/pack9.adb fails) 2017-09-10 17:03:40 +00:00
go.dg
go.go-torture/execute
go.test
jit.dg
lib backport: target-supports.exp (check_avx2_hw_available): Fix breakage due NULL being undefined. 2017-08-24 16:30:51 +02:00
obj-c++.dg Use relative line number for subsequent dg directives 2017-04-19 06:55:33 +00:00
objc
objc-obj-c++-shared
objc.dg Use relative line number for subsequent dg directives 2017-04-19 06:55:33 +00:00
selftests
.gitattributes
ChangeLog Backport PRs 82244, 82264, 82276, 82285, 82291 2017-09-26 10:16:40 +00:00
ChangeLog-1993-2007
ChangeLog-2008
ChangeLog-2009
ChangeLog-2010
ChangeLog-2011
ChangeLog-2012
ChangeLog-2013
ChangeLog-2014
ChangeLog-2015
ChangeLog-2016
ChangeLog.graphite
ChangeLog.jit
ChangeLog.ptr
ChangeLog.tree-ssa
README
README.compat
README.gcc

README

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This is a collection of tests for GCC. For further information about
the C testsuite, see README.gcc.

The driver that runs this testsuite is called DejaGnu and you will
need a current DejaGnu snapshot, which is available from
ftp://gcc.gnu.org/pub/gcc/infrastructure, for example.

These tests are included "as is". If any of them fails, do not report
a bug.  Bug reports for DejaGnu can go to bug-dejagnu@gnu.org.
Discussion and comments about this testsuite should be sent to
gcc@gcc.gnu.org; additions and changes to should go to sent to
gcc-patches@gcc.gnu.org.

The entire testsuite is invoked by `make check` at the top level of
the GCC tree. `make check-g++` runs the C++ testsuite only.

STRUCTURE OF THE G++ TESTSUITE

  g++.dg tests:

  All new tests should be placed in an appropriate subdirectory of g++.dg.

  g++.old-deja tests:

  g++.benjamin	Tests by Benjamin Koz
  g++.bob
  g++.brendan	Tests by Brendan Kehoe
  g++.bugs
  g++.eh  	Tests for exception handling
  g++.ext  	Tests for g++ extensions
  g++.gb  	Tests by Gerald Baumgartner
  g++.jason	Tests by Jason Merill
  g++.jeff	Tests by Jeffrey A Law
  g++.martin	Tests by Martin v. Löwis
  g++.mike	Tests by Mike Stump
  g++.niklas	Tests by Niklas Hallqvist
  g++.ns  	Tests for namespaces
  g++.other
  g++.pt  	Tests for templates
  g++.rfg
  g++.robertl	Tests from gcc-bugs@gcc.gnu.org, gathered by Robert Lipe
	
Finally, some random last minute notes by Mike Stump <mrs@cygnus.com>, on
how to run tests (in the GCC 2.7 era):

	runtest --tool g++ --srcdir ./testsuite

where 

	runtest	Is the name used to invoke DejaGnu.   If DejaGnu is not
		install this will be the relative path name for runtest.

	--tool	This tells DejaGnu which tool you are testing. It is
		mainly used to find the testsuite directories for a
		particular tool when several testsuites are in the
		same directory. (like the gcc and g++ testsuites)

	--srcdir This points to the top level of the directory
		containing the sources of the testsuite. This is
		./testsuite if you are in the directory that has the
		testsuite directory.


Copyright (C) 1998-2017 Free Software Foundation, Inc.

Copying and distribution of this file, with or without modification,
are permitted in any medium without royalty provided the copyright
notice and this notice are preserved.