// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
// { dg-require-gthreads "" }
// Copyright (C) 2014-2020 Free Software Foundation, Inc.
// 20.6.6.2 Template class shared_ptr [util.smartptr.shared]
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-add-options libatomic }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
+// { dg-require-gthreads "" }
// { dg-require-cstdint "" }
#include <memory>
// 20.6.6.2 Template class shared_ptr [util.smartptr.shared]
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-add-options libatomic }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
+// { dg-require-gthreads "" }
// { dg-require-cstdint "" }
#include <memory>
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
// { dg-require-gthreads "" }
// Copyright (C) 2010-2020 Free Software Foundation, Inc.
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
// { dg-require-gthreads "" }
// Copyright (C) 2011-2020 Free Software Foundation, Inc.
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
// { dg-require-gthreads "" }
// { dg-require-sleep "" }
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
// { dg-require-gthreads "" }
// Copyright (C) 2010-2020 Free Software Foundation, Inc.
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
// { dg-require-gthreads "" }
// Copyright (C) 2010-2020 Free Software Foundation, Inc.
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
// { dg-require-gthreads "" }
// Copyright (C) 2010-2020 Free Software Foundation, Inc.
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
// { dg-require-gthreads "" }
// Copyright (C) 2011-2020 Free Software Foundation, Inc.
// <http://www.gnu.org/licenses/>.
// { dg-do compile }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
// { dg-require-gthreads "" }
// LWG 2021. Further incorrect usages of result_of
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
// { dg-require-gthreads "" }
// Copyright (C) 2010-2020 Free Software Foundation, Inc.
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
// { dg-require-gthreads "" }
// Copyright (C) 2009-2020 Free Software Foundation, Inc.
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
// { dg-require-gthreads "" }
// Copyright (C) 2011-2020 Free Software Foundation, Inc.
// { dg-do compile }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
// { dg-require-gthreads "" }
// Copyright (C) 2014-2020 Free Software Foundation, Inc.
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
// { dg-require-gthreads "" }
// Copyright (C) 2008-2020 Free Software Foundation, Inc.
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
// { dg-require-gthreads "" }
// Copyright (C) 2016-2020 Free Software Foundation, Inc.
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
// { dg-require-gthreads "" }
// Copyright (C) 2012-2020 Free Software Foundation, Inc.
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
// { dg-require-gthreads "" }
// Copyright (C) 2008-2020 Free Software Foundation, Inc.
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
// { dg-require-gthreads "" }
// Copyright (C) 2008-2020 Free Software Foundation, Inc.
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
// { dg-require-gthreads "" }
// Copyright (C) 2008-2020 Free Software Foundation, Inc.
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
// { dg-require-gthreads "" }
// Copyright (C) 2014-2020 Free Software Foundation, Inc.
// { dg-do compile }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
// { dg-require-gthreads "" }
// Copyright (C) 2012-2020 Free Software Foundation, Inc.
// <http://www.gnu.org/licenses/>.
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
// { dg-require-gthreads "" }
#include <condition_variable>
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
// { dg-require-gthreads "" }
// Copyright (C) 2009-2020 Free Software Foundation, Inc.
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
// { dg-require-gthreads "" }
// { dg-require-sched-yield "" }
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
// { dg-require-gthreads "" }
// { dg-require-sched-yield "" }
// { dg-require-sleep "" }
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
// { dg-require-gthreads "" }
// Copyright (C) 2018-2020 Free Software Foundation, Inc.
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
// { dg-require-gthreads "" }
// Copyright (C) 2008-2020 Free Software Foundation, Inc.
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
// { dg-require-gthreads "" }
// Copyright (C) 2010-2020 Free Software Foundation, Inc.
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
// { dg-require-gthreads "" }
// Copyright (C) 2010-2020 Free Software Foundation, Inc.
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
// { dg-require-gthreads "" }
// Copyright (C) 2009-2020 Free Software Foundation, Inc.
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
// { dg-require-gthreads "" }
// Copyright (C) 2010-2020 Free Software Foundation, Inc.
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
// { dg-require-gthreads "" }
// Copyright (C) 2009-2020 Free Software Foundation, Inc.
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
// { dg-require-gthreads "" }
// Copyright (C) 2009-2020 Free Software Foundation, Inc.
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
// { dg-require-gthreads "" }
// Copyright (C) 2011-2020 Free Software Foundation, Inc.
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
// { dg-require-gthreads "" }
// Copyright (C) 2010-2020 Free Software Foundation, Inc.
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
// { dg-require-gthreads "" }
// Copyright (C) 2009-2020 Free Software Foundation, Inc.
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
// { dg-require-gthreads "" }
// Copyright (C) 2009-2020 Free Software Foundation, Inc.
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
// { dg-require-gthreads "" }
// Copyright (C) 2009-2020 Free Software Foundation, Inc.
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
// { dg-require-gthreads "" }
// Copyright (C) 2010-2020 Free Software Foundation, Inc.
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
// { dg-require-gthreads "" }
// Copyright (C) 2010-2020 Free Software Foundation, Inc.
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
// { dg-require-gthreads "" }
// Copyright (C) 2010-2020 Free Software Foundation, Inc.
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
// { dg-require-gthreads "" }
// Copyright (C) 2010-2020 Free Software Foundation, Inc.
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
// { dg-require-gthreads "" }
// Copyright (C) 2008-2020 Free Software Foundation, Inc.
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
// { dg-require-gthreads "" }
// Copyright (C) 2008-2020 Free Software Foundation, Inc.
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
// { dg-require-gthreads "" }
// Copyright (C) 2008-2020 Free Software Foundation, Inc.
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
// { dg-require-gthreads "" }
// Copyright (C) 2008-2020 Free Software Foundation, Inc.
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
// { dg-require-gthreads "" }
// Copyright (C) 2009-2020 Free Software Foundation, Inc.
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
// { dg-require-gthreads "" }
// Copyright (C) 2008-2020 Free Software Foundation, Inc.
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
// { dg-require-gthreads "" }
// Copyright (C) 2008-2020 Free Software Foundation, Inc.
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
// { dg-require-gthreads "" }
// Copyright (C) 2008-2020 Free Software Foundation, Inc.
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
// { dg-require-gthreads "" }
// Copyright (C) 2015-2020 Free Software Foundation, Inc.
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
// { dg-require-gthreads "" }
// Copyright (C) 2011-2020 Free Software Foundation, Inc.
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
// { dg-require-gthreads "" }
// Copyright (C) 2014-2020 Free Software Foundation, Inc.
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
// { dg-require-gthreads "" }
// Copyright (C) 2009-2020 Free Software Foundation, Inc.
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
// { dg-require-gthreads "" }
// Copyright (C) 2009-2020 Free Software Foundation, Inc.
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
// { dg-require-gthreads "" }
// Copyright (C) 2011-2020 Free Software Foundation, Inc.
// { dg-do compile }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
// { dg-require-gthreads "" }
// Copyright (C) 2013-2020 Free Software Foundation, Inc.
-// { dg-do run { target { c++11_only || c++14_only } } }
-// { dg-options "-pthread" }
-// { dg-require-effective-target pthread }
+// { dg-do run }
+// { dg-additional-options "-pthread" { target pthread } }
+// { dg-require-effective-target c++11 }
// { dg-require-gthreads "" }
// Copyright (C) 2010-2020 Free Software Foundation, Inc.
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
// { dg-require-gthreads "" }
// Copyright (C) 2009-2020 Free Software Foundation, Inc.
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
// { dg-require-gthreads "" }
// Copyright (C) 2009-2020 Free Software Foundation, Inc.
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
// { dg-require-gthreads "" }
// Copyright (C) 2014-2020 Free Software Foundation, Inc.
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
// { dg-require-gthreads "" }
// Copyright (C) 2009-2020 Free Software Foundation, Inc.
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
// { dg-require-gthreads "" }
// Copyright (C) 2009-2020 Free Software Foundation, Inc.
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
// { dg-require-gthreads "" }
// Copyright (C) 2009-2020 Free Software Foundation, Inc.
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
// { dg-require-gthreads "" }
// Copyright (C) 2009-2020 Free Software Foundation, Inc.
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
// { dg-require-gthreads "" }
// Copyright (C) 2009-2020 Free Software Foundation, Inc.
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
// { dg-require-gthreads "" }
// Copyright (C) 2009-2020 Free Software Foundation, Inc.
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
// { dg-require-gthreads "" }
// Copyright (C) 2009-2020 Free Software Foundation, Inc.
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
// { dg-require-gthreads "" }
// Copyright (C) 2009-2020 Free Software Foundation, Inc.
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
// { dg-require-gthreads "" }
// Copyright (C) 2009-2020 Free Software Foundation, Inc.
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
// { dg-require-gthreads "" }
// Copyright (C) 2009-2020 Free Software Foundation, Inc.
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
// { dg-require-gthreads "" }
// Copyright (C) 2011-2020 Free Software Foundation, Inc.
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
// { dg-require-gthreads "" }
// Copyright (C) 2014-2020 Free Software Foundation, Inc.
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
// { dg-require-gthreads "" }
// Copyright (C) 2009-2020 Free Software Foundation, Inc.
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
// { dg-require-gthreads "" }
// Copyright (C) 2010-2020 Free Software Foundation, Inc.
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
// { dg-require-gthreads "" }
// Copyright (C) 2009-2020 Free Software Foundation, Inc.
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
// { dg-require-gthreads "" }
// Copyright (C) 2009-2020 Free Software Foundation, Inc.
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
// { dg-require-gthreads "" }
// Copyright (C) 2014-2020 Free Software Foundation, Inc.
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
// { dg-require-gthreads "" }
// Copyright (C) 2014-2020 Free Software Foundation, Inc.
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
// { dg-require-gthreads "" }
// Copyright (C) 2009-2020 Free Software Foundation, Inc.
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
// { dg-require-gthreads "" }
// Copyright (C) 2009-2020 Free Software Foundation, Inc.
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
// { dg-require-gthreads "" }
// Copyright (C) 2009-2020 Free Software Foundation, Inc.
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
// { dg-require-gthreads "" }
// Copyright (C) 2009-2020 Free Software Foundation, Inc.
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
// { dg-require-gthreads "" }
// Copyright (C) 2009-2020 Free Software Foundation, Inc.
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
// { dg-require-gthreads "" }
// Copyright (C) 2009-2020 Free Software Foundation, Inc.
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
// { dg-require-gthreads "" }
// Copyright (C) 2009-2020 Free Software Foundation, Inc.
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
// { dg-require-gthreads "" }
// Copyright (C) 2009-2020 Free Software Foundation, Inc.
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
// { dg-require-gthreads "" }
// Copyright (C) 2008-2020 Free Software Foundation, Inc.
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
// { dg-require-gthreads "" }
// Copyright (C) 2008-2020 Free Software Foundation, Inc.
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
// { dg-require-gthreads "" }
// Copyright (C) 2008-2020 Free Software Foundation, Inc.
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
// { dg-require-gthreads "" }
// Copyright (C) 2008-2020 Free Software Foundation, Inc.
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
// { dg-require-gthreads "" }
// Copyright (C) 2009-2020 Free Software Foundation, Inc.
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
// { dg-require-gthreads "" }
// Copyright (C) 2008-2020 Free Software Foundation, Inc.
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
// { dg-require-gthreads "" }
// Copyright (C) 2008-2020 Free Software Foundation, Inc.
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
// { dg-require-gthreads "" }
// Copyright (C) 2008-2020 Free Software Foundation, Inc.
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
// { dg-require-gthreads "" }
// Copyright (C) 2015-2020 Free Software Foundation, Inc.
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
+// { dg-require-gthreads "" }
// Copyright (C) 2008-2020 Free Software Foundation, Inc.
//
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
+// { dg-require-gthreads "" }
// Copyright (C) 2008-2020 Free Software Foundation, Inc.
//
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
+// { dg-require-gthreads "" }
// Copyright (C) 2008-2020 Free Software Foundation, Inc.
//
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
+// { dg-require-gthreads "" }
// Copyright (C) 2008-2020 Free Software Foundation, Inc.
//
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
// { dg-require-gthreads-timed "" }
// Copyright (C) 2008-2020 Free Software Foundation, Inc.
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
// { dg-require-gthreads-timed "" }
// Copyright (C) 2009-2020 Free Software Foundation, Inc.
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
+// { dg-require-gthreads "" }
// Copyright (C) 2008-2020 Free Software Foundation, Inc.
//
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
+// { dg-require-gthreads "" }
// Copyright (C) 2008-2020 Free Software Foundation, Inc.
//
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
+// { dg-require-gthreads "" }
// Copyright (C) 2008-2020 Free Software Foundation, Inc.
//
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
+// { dg-require-gthreads "" }
// Copyright (C) 2008-2020 Free Software Foundation, Inc.
//
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
+// { dg-require-gthreads "" }
// Copyright (C) 2008-2020 Free Software Foundation, Inc.
//
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
+// { dg-require-gthreads "" }
// Copyright (C) 2008-2020 Free Software Foundation, Inc.
//
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
+// { dg-require-gthreads "" }
// Copyright (C) 2008-2020 Free Software Foundation, Inc.
//
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
+// { dg-require-gthreads "" }
// Copyright (C) 2008-2020 Free Software Foundation, Inc.
//
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
// { dg-require-gthreads "" }
// Copyright (C) 2015-2020 Free Software Foundation, Inc.
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
// { dg-require-gthreads "" }
// Copyright (C) 2009-2020 Free Software Foundation, Inc.
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
// { dg-require-gthreads "" }
// Copyright (C) 2010-2020 Free Software Foundation, Inc.
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
// { dg-require-gthreads "" }
// Copyright (C) 2009-2020 Free Software Foundation, Inc.
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
// { dg-require-gthreads "" }
// Copyright (C) 2009-2020 Free Software Foundation, Inc.
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
// { dg-require-gthreads "" }
// Copyright (C) 2010-2020 Free Software Foundation, Inc.
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
// { dg-require-gthreads "" }
// Copyright (C) 2009-2020 Free Software Foundation, Inc.
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
// { dg-require-gthreads "" }
// Copyright (C) 2009-2020 Free Software Foundation, Inc.
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
// { dg-require-gthreads "" }
// Copyright (C) 2009-2020 Free Software Foundation, Inc.
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++14 }
-// { dg-require-effective-target pthread }
// { dg-require-gthreads "" }
// Copyright (C) 2013-2020 Free Software Foundation, Inc.
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++14 }
-// { dg-require-effective-target pthread }
// { dg-require-gthreads "" }
// Copyright (C) 2013-2020 Free Software Foundation, Inc.
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++14 }
-// { dg-require-effective-target pthread }
// { dg-require-gthreads "" }
// Copyright (C) 2013-2020 Free Software Foundation, Inc.
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++14 }
-// { dg-require-effective-target pthread }
// { dg-require-gthreads "" }
// Copyright (C) 2013-2020 Free Software Foundation, Inc.
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++14 }
-// { dg-require-effective-target pthread }
+// { dg-require-gthreads "" }
// Copyright (C) 2013-2020 Free Software Foundation, Inc.
//
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++14 }
-// { dg-require-effective-target pthread }
+// { dg-require-gthreads "" }
// Copyright (C) 2013-2020 Free Software Foundation, Inc.
//
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++14 }
-// { dg-require-effective-target pthread }
// { dg-require-gthreads "" }
// Copyright (C) 2013-2020 Free Software Foundation, Inc.
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++14 }
-// { dg-require-effective-target pthread }
// { dg-require-gthreads "" }
// Copyright (C) 2013-2020 Free Software Foundation, Inc.
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++14 }
-// { dg-require-effective-target pthread }
+// { dg-require-gthreads "" }
// Copyright (C) 2013-2020 Free Software Foundation, Inc.
//
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++14 }
-// { dg-require-effective-target pthread }
+// { dg-require-gthreads "" }
// Copyright (C) 2013-2020 Free Software Foundation, Inc.
//
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++14 }
-// { dg-require-effective-target pthread }
// { dg-require-gthreads "" }
// Copyright (C) 2013-2020 Free Software Foundation, Inc.
-// { dg-options "-std=gnu++17 -pthread" }
+// { dg-options "-std=gnu++17" }
// { dg-do run { target c++17 } }
-// { dg-require-effective-target pthread }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-gthreads "" }
// Copyright (C) 2015-2020 Free Software Foundation, Inc.
-// { dg-options "-std=gnu++17 -pthread" }
+// { dg-options "-std=gnu++17" }
// { dg-do run { target c++17 } }
-// { dg-require-effective-target pthread }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-gthreads "" }
// Copyright (C) 2015-2020 Free Software Foundation, Inc.
-// { dg-options "-std=gnu++17 -pthread" }
+// { dg-options "-std=gnu++17" }
// { dg-do run { target c++17 } }
-// { dg-require-effective-target pthread }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-gthreads "" }
// Copyright (C) 2015-2020 Free Software Foundation, Inc.
-// { dg-options "-std=gnu++17 -pthread" }
+// { dg-options "-std=gnu++17" }
// { dg-do run { target c++17 } }
-// { dg-require-effective-target pthread }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-gthreads "" }
// Copyright (C) 2015-2020 Free Software Foundation, Inc.
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++14 }
-// { dg-require-effective-target pthread }
// { dg-require-gthreads "" }
// Copyright (C) 2013-2020 Free Software Foundation, Inc.
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++14 }
-// { dg-require-effective-target pthread }
// { dg-require-gthreads "" }
// Copyright (C) 2013-2020 Free Software Foundation, Inc.
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++14 }
-// { dg-require-effective-target pthread }
// { dg-require-gthreads "" }
// Copyright (C) 2013-2020 Free Software Foundation, Inc.
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++14 }
-// { dg-require-effective-target pthread }
// { dg-require-gthreads "" }
// Copyright (C) 2013-2020 Free Software Foundation, Inc.
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++14 }
-// { dg-require-effective-target pthread }
// { dg-require-gthreads "" }
// Copyright (C) 2015-2020 Free Software Foundation, Inc.
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
// { dg-require-gthreads "" }
// Copyright (C) 2008-2020 Free Software Foundation, Inc.
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
// { dg-require-gthreads "" }
// { dg-require-sleep "" }
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
// { dg-require-gthreads "" }
// { dg-require-sleep "" }
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
// { dg-require-gthreads "" }
// Copyright (C) 2008-2020 Free Software Foundation, Inc.
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
// { dg-require-gthreads "" }
// Copyright (C) 2008-2020 Free Software Foundation, Inc.
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
// { dg-require-gthreads "" }
// Copyright (C) 2008-2020 Free Software Foundation, Inc.
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
// { dg-require-gthreads "" }
// Copyright (C) 2008-2020 Free Software Foundation, Inc.
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
// { dg-require-gthreads "" }
// Copyright (C) 2011-2020 Free Software Foundation, Inc.
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
// { dg-require-gthreads "" }
// Copyright (C) 2009-2020 Free Software Foundation, Inc.
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
// { dg-require-gthreads "" }
// Copyright (C) 2009-2020 Free Software Foundation, Inc.
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
// { dg-require-gthreads "" }
// Copyright (C) 2008-2020 Free Software Foundation, Inc.
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
// { dg-require-gthreads "" }
// Copyright (C) 2008-2020 Free Software Foundation, Inc.
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
// { dg-require-gthreads "" }
// Copyright (C) 2009-2020 Free Software Foundation, Inc.
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
// { dg-require-gthreads "" }
// Copyright (C) 2009-2020 Free Software Foundation, Inc.
// <http://www.gnu.org/licenses/>.
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
// { dg-require-gthreads "" }
#include <thread>
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
// { dg-require-gthreads "" }
// Copyright (C) 2008-2020 Free Software Foundation, Inc.
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
// { dg-require-gthreads "" }
// Copyright (C) 2008-2020 Free Software Foundation, Inc.
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
// { dg-require-gthreads "" }
// Copyright (C) 2008-2020 Free Software Foundation, Inc.
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
// { dg-require-gthreads "" }
// Copyright (C) 2009-2020 Free Software Foundation, Inc.
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
// { dg-require-gthreads "" }
// Copyright (C) 2009-2020 Free Software Foundation, Inc.
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
// { dg-require-gthreads "" }
// { dg-require-nprocs "" }
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
// { dg-require-gthreads "" }
// Copyright (C) 2009-2020 Free Software Foundation, Inc.
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
// { dg-require-gthreads "" }
// Copyright (C) 2008-2020 Free Software Foundation, Inc.
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
+// { dg-require-gthreads "" }
// Copyright (C) 2008-2020 Free Software Foundation, Inc.
//
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
+// { dg-require-gthreads "" }
// Copyright (C) 2008-2020 Free Software Foundation, Inc.
//
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
+// { dg-require-gthreads "" }
// Copyright (C) 2008-2020 Free Software Foundation, Inc.
//
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
// { dg-require-gthreads-timed "" }
// Copyright (C) 2008-2020 Free Software Foundation, Inc.
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
// { dg-require-gthreads-timed "" }
// Copyright (C) 2009-2020 Free Software Foundation, Inc.
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
+// { dg-require-gthreads "" }
// Copyright (C) 2008-2020 Free Software Foundation, Inc.
//
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
+// { dg-require-gthreads "" }
// Copyright (C) 2008-2020 Free Software Foundation, Inc.
//
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
+// { dg-require-gthreads "" }
// Copyright (C) 2008-2020 Free Software Foundation, Inc.
//
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
+// { dg-require-gthreads "" }
// { dg-require-cstdint "" }
// Copyright (C) 2008-2020 Free Software Foundation, Inc.
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
+// { dg-require-gthreads "" }
// Copyright (C) 2008-2020 Free Software Foundation, Inc.
//
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
+// { dg-require-gthreads "" }
// Copyright (C) 2008-2020 Free Software Foundation, Inc.
//
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
+// { dg-require-gthreads "" }
// Copyright (C) 2008-2020 Free Software Foundation, Inc.
//
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
+// { dg-require-gthreads "" }
// Copyright (C) 2013-2020 Free Software Foundation, Inc.
//
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
+// { dg-require-gthreads "" }
// Copyright (C) 2008-2020 Free Software Foundation, Inc.
//
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
// { dg-require-gthreads "" }
// Copyright (C) 2015-2020 Free Software Foundation, Inc.
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
// { dg-require-gthreads "" }
// Copyright (C) 2008-2020 Free Software Foundation, Inc.
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
// { dg-require-gthreads "" }
// Copyright (C) 2008-2020 Free Software Foundation, Inc.
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
// { dg-require-gthreads "" }
// Copyright (C) 2008-2020 Free Software Foundation, Inc.
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
// { dg-require-gthreads "" }
// Copyright (C) 2010-2020 Free Software Foundation, Inc.
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
// { dg-require-gthreads "" }
// Copyright (C) 2008-2020 Free Software Foundation, Inc.
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
// { dg-require-gthreads "" }
// Copyright (C) 2008-2020 Free Software Foundation, Inc.
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
// { dg-require-gthreads "" }
// Copyright (C) 2008-2020 Free Software Foundation, Inc.
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
// { dg-require-gthreads "" }
// Copyright (C) 2008-2020 Free Software Foundation, Inc.
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
+// { dg-require-gthreads "" }
// Copyright (C) 2008-2020 Free Software Foundation, Inc.
//
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
+// { dg-require-gthreads "" }
// Copyright (C) 2008-2020 Free Software Foundation, Inc.
//
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
// { dg-require-gthreads "" }
// Copyright (C) 2008-2020 Free Software Foundation, Inc.
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
// { dg-require-gthreads "" }
// Copyright (C) 2008-2020 Free Software Foundation, Inc.
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
+// { dg-require-gthreads "" }
// Copyright (C) 2008-2020 Free Software Foundation, Inc.
//
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
+// { dg-require-gthreads "" }
// Copyright (C) 2008-2020 Free Software Foundation, Inc.
//
// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
// { dg-require-gthreads "" }
// Copyright (C) 2008-2020 Free Software Foundation, Inc.