[committed,obvious] Require pthread effective target for test case using -pthread option.

Message ID b354c47e-8154-fe0c-f20e-d52f51cf5c92@codesourcery.com
State New
Headers show
Series
  • [committed,obvious] Require pthread effective target for test case using -pthread option.
Related show

Commit Message

Sandra Loosemore April 9, 2020, 4:01 a.m.
I noticed g++.dg/tree-ssa/pr93940.C was giving an error on nios2-elf due 
to lack of support for the -pthread option on this bare-metal target.  I 
cut and pasted this fix from other existing testcases.  Committed as 
obvious.

-Sandra

Patch

commit fe1837143f1bf1d6b072a3973b00576ee17c30a9
Author: Sandra Loosemore <sandra@codesourcery.com>
Date:   Wed Apr 8 20:55:20 2020 -0700

    Require pthread effective target for test case using -pthread option.
    
    2020-04-08  Sandra Loosemore  <sandra@codesourcery.com>
    
    	gcc/testsuite/
    	* g++.dg/tree-ssa/pr93940.C: Require pthread target.

diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index d597508..45e7005 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,7 @@ 
+2020-04-08  Sandra Loosemore  <sandra@codesourcery.com>
+
+	* g++.dg/tree-ssa/pr93940.C: Require pthread target.
+
 2020-04-09  Kewen Lin  <linkw@gcc.gnu.org>
 
 	PR testsuite/94079
diff --git a/gcc/testsuite/g++.dg/tree-ssa/pr93940.C b/gcc/testsuite/g++.dg/tree-ssa/pr93940.C
index b656aad..111b33e 100644
--- a/gcc/testsuite/g++.dg/tree-ssa/pr93940.C
+++ b/gcc/testsuite/g++.dg/tree-ssa/pr93940.C
@@ -1,4 +1,5 @@ 
 /* { dg-do compile } */
+/* { dg-require-effective-target pthread } */
 /* { dg-options "-Og --coverage -pthread -fdump-tree-optimized -std=c++17" } */
 using uint16_t = unsigned short;