public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r10-6155] Allow tree-ssa.exp to be run by itself
@ 2020-01-22 20:46 Andrew Pinski
  0 siblings, 0 replies; only message in thread
From: Andrew Pinski @ 2020-01-22 20:46 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:9085381f1931cc3667412c8fff91878184835901

commit r10-6155-g9085381f1931cc3667412c8fff91878184835901
Author: Andrew Pinski <apinski@marvell.com>
Date:   Mon Jan 20 22:10:32 2020 +0000

    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.

Diff:
---
 gcc/testsuite/ChangeLog                    |  5 +++++
 gcc/testsuite/gcc.dg/tree-ssa/tree-ssa.exp | 11 +++++++++++
 2 files changed, 16 insertions(+)

diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index c11a68d..9a87cfe 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2020-01-22  Andrew Pinski  <apinski@marvell.com>
+
+	* tree-ssa.exp: Set DEFAULT_VECTCFLAGS and DEFAULT_VECTCFLAGS.
+	Call check_vect_support_and_set_flags also.
+
 2020-01-22  David Malcolm  <dmalcolm@redhat.com>
 
 	PR analyzer/93378
diff --git a/gcc/testsuite/gcc.dg/tree-ssa/tree-ssa.exp b/gcc/testsuite/gcc.dg/tree-ssa/tree-ssa.exp
index 7d262ff..464fef6 100644
--- a/gcc/testsuite/gcc.dg/tree-ssa/tree-ssa.exp
+++ b/gcc/testsuite/gcc.dg/tree-ssa/tree-ssa.exp
@@ -19,6 +19,17 @@
 # Load support procs.
 load_lib gcc-dg.exp
 
+# Set up flags used for tests that don't specify options.
+global DEFAULT_VECTCFLAGS
+set DEFAULT_VECTCFLAGS ""
+
+# Set up a list of effective targets to run vector tests for all supported
+# targets.
+global EFFECTIVE_TARGETS
+set EFFECTIVE_TARGETS ""
+
+check_vect_support_and_set_flags
+
 # If a testcase doesn't have special options, use these.
 global DEFAULT_CFLAGS
 if ![info exists DEFAULT_CFLAGS] then {


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-01-22 20:46 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-22 20:46 [gcc r10-6155] Allow tree-ssa.exp to be run by itself Andrew Pinski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).