Allow tree-ssa.exp to be run by itself
authorAndrew Pinski <apinski@marvell.com>
Mon, 20 Jan 2020 22:10:32 +0000 (22:10 +0000)
committerAndrew Pinski <apinski@marvell.com>
Wed, 22 Jan 2020 20:44:07 +0000 (20:44 +0000)
commit9085381f1931cc3667412c8fff91878184835901
treee79a507b086afaaa78037f2feb18823ba364fed8
parent597e403d6dbb44315f33fb2b5bb0ca4946a4a1e1
Allow tree-ssa.exp to be run by itself

tree-ssa testcases sometimes check autovect effective target
but does not set it up.  On MIPS, those testcases fail with
some TCL error messages.  This fixes the issue by calling
check_vect_support_and_set_flags inside tree-ssa.exp.
There might be other .exp files which need to be done this
way too but I have not checked all of them.

Tested on x86_64-linux-gnu and a cross to mips64-octeon-linux-gnu.
Both full run of the testsuite and running tree-ssa.exp by itself.

testsuite/ChangeLog:
* tree-ssa.exp: Set DEFAULT_VECTCFLAGS and DEFAULT_VECTCFLAGS.
Call check_vect_support_and_set_flags also.
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/tree-ssa.exp