From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2181) id 365C9385C420; Fri, 15 Sep 2023 23:03:42 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 365C9385C420 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1694819022; bh=ZzwiaRW8AYm4aZ7BmHFyQEKDehVU96qHYjqZOjLifuo=; h=From:To:Subject:Date:From; b=kIa3+c3P7V/aceL+V/PJSc+lnhsIMDptidQ3VgMgnK8Rbp9J8kvahsmokErNTwejB TVqtYKdnbL0hVxZUxWPaJDsMkBxSUHi+LQAys0yKooma5Dcrs3adG/Wq4rdU1zhRjN CCRLaNXMs9xZZiMzRIVXUowUMCzSaGx8gMnEKu8c= MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Jonathan Wakely To: gcc-cvs@gcc.gnu.org, libstdc++-cvs@gcc.gnu.org Subject: [gcc r14-4047] libstdc++: Replace dg-options "-std=c++11" with dg-add-options strict_std X-Act-Checkin: gcc X-Git-Author: Jonathan Wakely X-Git-Refname: refs/heads/master X-Git-Oldrev: 3a0e01f6bb1d6ec444001f2caea6ef43a4a83e3a X-Git-Newrev: 52841fb7035c0e3a6d4354fc4e61c0bd3fea81ca Message-Id: <20230915230342.365C9385C420@sourceware.org> Date: Fri, 15 Sep 2023 23:03:42 +0000 (GMT) List-Id: https://gcc.gnu.org/g:52841fb7035c0e3a6d4354fc4e61c0bd3fea81ca commit r14-4047-g52841fb7035c0e3a6d4354fc4e61c0bd3fea81ca Author: Jonathan Wakely Date: Mon Sep 4 14:10:15 2023 +0100 libstdc++: Replace dg-options "-std=c++11" with dg-add-options strict_std These tests can (and should) also be run for later standards, so replace the { dg-options "-std=c++11" } with { dg-add-options strict_std } and a target selector for c++11. libstdc++-v3/ChangeLog: * testsuite/23_containers/deque/48101-2_neg.cc: Replace dg-options with target selector. * testsuite/23_containers/forward_list/48101-2_neg.cc: Likewise. * testsuite/23_containers/list/48101-2_neg.cc: Likewise. * testsuite/23_containers/map/48101-2_neg.cc: Likewise. * testsuite/23_containers/map/48101_neg.cc: Likewise. * testsuite/23_containers/multimap/48101-2_neg.cc: Likewise. * testsuite/23_containers/multimap/48101_neg.cc: Likewise. * testsuite/23_containers/multiset/48101-2_neg.cc: Likewise. * testsuite/23_containers/set/48101-2_neg.cc: Likewise. * testsuite/23_containers/unordered_map/48101-2_neg.cc: Likewise. * testsuite/23_containers/unordered_multimap/48101-2_neg.cc: Likewise. * testsuite/23_containers/unordered_multiset/48101-2_neg.cc: Likewise. * testsuite/23_containers/unordered_set/48101-2_neg.cc: Likewise. * testsuite/23_containers/vector/48101-2_neg.cc: Likewise. Diff: --- libstdc++-v3/testsuite/23_containers/deque/48101-2_neg.cc | 4 ++-- libstdc++-v3/testsuite/23_containers/forward_list/48101-2_neg.cc | 4 ++-- libstdc++-v3/testsuite/23_containers/list/48101-2_neg.cc | 4 ++-- libstdc++-v3/testsuite/23_containers/map/48101-2_neg.cc | 4 ++-- libstdc++-v3/testsuite/23_containers/map/48101_neg.cc | 3 +-- libstdc++-v3/testsuite/23_containers/multimap/48101-2_neg.cc | 4 ++-- libstdc++-v3/testsuite/23_containers/multimap/48101_neg.cc | 3 +-- libstdc++-v3/testsuite/23_containers/multiset/48101-2_neg.cc | 4 ++-- libstdc++-v3/testsuite/23_containers/set/48101-2_neg.cc | 4 ++-- libstdc++-v3/testsuite/23_containers/unordered_map/48101-2_neg.cc | 4 ++-- .../testsuite/23_containers/unordered_multimap/48101-2_neg.cc | 4 ++-- .../testsuite/23_containers/unordered_multiset/48101-2_neg.cc | 4 ++-- libstdc++-v3/testsuite/23_containers/unordered_set/48101-2_neg.cc | 4 ++-- libstdc++-v3/testsuite/23_containers/vector/48101-2_neg.cc | 4 ++-- 14 files changed, 26 insertions(+), 28 deletions(-) diff --git a/libstdc++-v3/testsuite/23_containers/deque/48101-2_neg.cc b/libstdc++-v3/testsuite/23_containers/deque/48101-2_neg.cc index 041f0cb88b3..d5cb13ec4db 100644 --- a/libstdc++-v3/testsuite/23_containers/deque/48101-2_neg.cc +++ b/libstdc++-v3/testsuite/23_containers/deque/48101-2_neg.cc @@ -15,8 +15,8 @@ // with this library; see the file COPYING3. If not see // . -// { dg-do compile } -// { dg-options "-std=c++11" } +// { dg-do compile { target c++11 } } +// { dg-add-options strict_std } #include diff --git a/libstdc++-v3/testsuite/23_containers/forward_list/48101-2_neg.cc b/libstdc++-v3/testsuite/23_containers/forward_list/48101-2_neg.cc index 2a21876c1cf..d5cc81c6b48 100644 --- a/libstdc++-v3/testsuite/23_containers/forward_list/48101-2_neg.cc +++ b/libstdc++-v3/testsuite/23_containers/forward_list/48101-2_neg.cc @@ -15,8 +15,8 @@ // with this library; see the file COPYING3. If not see // . -// { dg-do compile } -// { dg-options "-std=c++11" } +// { dg-do compile { target c++11 } } +// { dg-add-options strict_std } #include diff --git a/libstdc++-v3/testsuite/23_containers/list/48101-2_neg.cc b/libstdc++-v3/testsuite/23_containers/list/48101-2_neg.cc index 0e96022cdfe..5cea21992d9 100644 --- a/libstdc++-v3/testsuite/23_containers/list/48101-2_neg.cc +++ b/libstdc++-v3/testsuite/23_containers/list/48101-2_neg.cc @@ -15,8 +15,8 @@ // with this library; see the file COPYING3. If not see // . -// { dg-do compile } -// { dg-options "-std=c++11" } +// { dg-do compile { target c++11 } } +// { dg-add-options strict_std } #include diff --git a/libstdc++-v3/testsuite/23_containers/map/48101-2_neg.cc b/libstdc++-v3/testsuite/23_containers/map/48101-2_neg.cc index 06c4dc9e9ef..8cda993e2cb 100644 --- a/libstdc++-v3/testsuite/23_containers/map/48101-2_neg.cc +++ b/libstdc++-v3/testsuite/23_containers/map/48101-2_neg.cc @@ -15,8 +15,8 @@ // with this library; see the file COPYING3. If not see // . -// { dg-do compile } -// { dg-options "-std=c++11" } +// { dg-do compile { target c++11 } } +// { dg-add-options strict_std } #include diff --git a/libstdc++-v3/testsuite/23_containers/map/48101_neg.cc b/libstdc++-v3/testsuite/23_containers/map/48101_neg.cc index e9029caad21..81837954125 100644 --- a/libstdc++-v3/testsuite/23_containers/map/48101_neg.cc +++ b/libstdc++-v3/testsuite/23_containers/map/48101_neg.cc @@ -15,8 +15,7 @@ // with this library; see the file COPYING3. If not see // . -// { dg-do compile } -// { dg-options "-std=c++11" } +// { dg-do compile { target c++11 } } #include diff --git a/libstdc++-v3/testsuite/23_containers/multimap/48101-2_neg.cc b/libstdc++-v3/testsuite/23_containers/multimap/48101-2_neg.cc index fd77071a2a5..6022039e004 100644 --- a/libstdc++-v3/testsuite/23_containers/multimap/48101-2_neg.cc +++ b/libstdc++-v3/testsuite/23_containers/multimap/48101-2_neg.cc @@ -15,8 +15,8 @@ // with this library; see the file COPYING3. If not see // . -// { dg-do compile } -// { dg-options "-std=c++11" } +// { dg-do compile { target c++11 } } +// { dg-add-options strict_std } #include diff --git a/libstdc++-v3/testsuite/23_containers/multimap/48101_neg.cc b/libstdc++-v3/testsuite/23_containers/multimap/48101_neg.cc index 942a5aaf2ff..55626edfc2d 100644 --- a/libstdc++-v3/testsuite/23_containers/multimap/48101_neg.cc +++ b/libstdc++-v3/testsuite/23_containers/multimap/48101_neg.cc @@ -15,8 +15,7 @@ // with this library; see the file COPYING3. If not see // . -// { dg-do compile } -// { dg-options "-std=c++11" } +// { dg-do compile { target c++11 } } #include diff --git a/libstdc++-v3/testsuite/23_containers/multiset/48101-2_neg.cc b/libstdc++-v3/testsuite/23_containers/multiset/48101-2_neg.cc index c1c1f64d6c5..619b97ee4a5 100644 --- a/libstdc++-v3/testsuite/23_containers/multiset/48101-2_neg.cc +++ b/libstdc++-v3/testsuite/23_containers/multiset/48101-2_neg.cc @@ -15,8 +15,8 @@ // with this library; see the file COPYING3. If not see // . -// { dg-do compile } -// { dg-options "-std=c++11" } +// { dg-do compile { target c++11 } } +// { dg-add-options strict_std } #include diff --git a/libstdc++-v3/testsuite/23_containers/set/48101-2_neg.cc b/libstdc++-v3/testsuite/23_containers/set/48101-2_neg.cc index 6466b38901d..d83a08c9856 100644 --- a/libstdc++-v3/testsuite/23_containers/set/48101-2_neg.cc +++ b/libstdc++-v3/testsuite/23_containers/set/48101-2_neg.cc @@ -15,8 +15,8 @@ // with this library; see the file COPYING3. If not see // . -// { dg-do compile } -// { dg-options "-std=c++11" } +// { dg-do compile { target c++11 } } +// { dg-add-options strict_std } #include diff --git a/libstdc++-v3/testsuite/23_containers/unordered_map/48101-2_neg.cc b/libstdc++-v3/testsuite/23_containers/unordered_map/48101-2_neg.cc index 8ea74e6c04b..c45ef0daa50 100644 --- a/libstdc++-v3/testsuite/23_containers/unordered_map/48101-2_neg.cc +++ b/libstdc++-v3/testsuite/23_containers/unordered_map/48101-2_neg.cc @@ -15,8 +15,8 @@ // with this library; see the file COPYING3. If not see // . -// { dg-do compile } -// { dg-options "-std=c++11" } +// { dg-do compile { target c++11 } } +// { dg-add-options strict_std } #include diff --git a/libstdc++-v3/testsuite/23_containers/unordered_multimap/48101-2_neg.cc b/libstdc++-v3/testsuite/23_containers/unordered_multimap/48101-2_neg.cc index 38afec91b34..39eeb0f76d8 100644 --- a/libstdc++-v3/testsuite/23_containers/unordered_multimap/48101-2_neg.cc +++ b/libstdc++-v3/testsuite/23_containers/unordered_multimap/48101-2_neg.cc @@ -15,8 +15,8 @@ // with this library; see the file COPYING3. If not see // . -// { dg-do compile } -// { dg-options "-std=c++11" } +// { dg-do compile { target c++11 } } +// { dg-add-options strict_std } #include diff --git a/libstdc++-v3/testsuite/23_containers/unordered_multiset/48101-2_neg.cc b/libstdc++-v3/testsuite/23_containers/unordered_multiset/48101-2_neg.cc index 389cb947cbe..006716e0d69 100644 --- a/libstdc++-v3/testsuite/23_containers/unordered_multiset/48101-2_neg.cc +++ b/libstdc++-v3/testsuite/23_containers/unordered_multiset/48101-2_neg.cc @@ -15,8 +15,8 @@ // with this library; see the file COPYING3. If not see // . -// { dg-do compile } -// { dg-options "-std=c++11" } +// { dg-do compile { target c++11 } } +// { dg-add-options strict_std } #include diff --git a/libstdc++-v3/testsuite/23_containers/unordered_set/48101-2_neg.cc b/libstdc++-v3/testsuite/23_containers/unordered_set/48101-2_neg.cc index 08ef3b587a4..ed5a7787525 100644 --- a/libstdc++-v3/testsuite/23_containers/unordered_set/48101-2_neg.cc +++ b/libstdc++-v3/testsuite/23_containers/unordered_set/48101-2_neg.cc @@ -15,8 +15,8 @@ // with this library; see the file COPYING3. If not see // . -// { dg-do compile } -// { dg-options "-std=c++11" } +// { dg-do compile { target c++11 } } +// { dg-add-options strict_std } #include diff --git a/libstdc++-v3/testsuite/23_containers/vector/48101-2_neg.cc b/libstdc++-v3/testsuite/23_containers/vector/48101-2_neg.cc index ed5111224e9..0dd75956ce6 100644 --- a/libstdc++-v3/testsuite/23_containers/vector/48101-2_neg.cc +++ b/libstdc++-v3/testsuite/23_containers/vector/48101-2_neg.cc @@ -15,8 +15,8 @@ // with this library; see the file COPYING3. If not see // . -// { dg-do compile } -// { dg-options "-std=c++11" } +// { dg-do compile { target c++11 } } +// { dg-add-options strict_std } #include