public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [libstdc++, testsuite] Add dg-require-thread-fence
@ 2016-10-20  7:55 Christophe Lyon
  2016-10-20  9:19 ` Christophe Lyon
  2016-10-20  9:40 ` Jonathan Wakely
  0 siblings, 2 replies; 29+ messages in thread
From: Christophe Lyon @ 2016-10-20  7:55 UTC (permalink / raw)
  To: Jonathan Wakely, gcc-patches

[-- Attachment #1: Type: text/plain, Size: 1661 bytes --]

Hi,

Several times I have noticed/reported test failures because some test
cases wouldn't link on arm-none-eabi using the default 'old' cpu
target: __sync_synchronize cannot be resolved by the linker.

The attached long patch adds
+// { dg-require-thread-fence "" }
to all the tests that require it according to the error messages I get.

The change is mechanical:
- insert this line below dg-do if present
- insert this line at the top of the file otherwise

For instance:

diff --git a/libstdc++-v3/testsuite/18_support/bad_typeid/what.cc
b/libstdc++-v3/testsuite/18_support/bad_typeid/what.cc
index 633175b..a048250 100644
--- a/libstdc++-v3/testsuite/18_support/bad_typeid/what.cc
+++ b/libstdc++-v3/testsuite/18_support/bad_typeid/what.cc
@@ -1,3 +1,4 @@
+// { dg-require-thread-fence "" }
 // 2007-01-30  Paolo Carlini  <pcarlini@suse.de>

 // Copyright (C) 2007-2016 Free Software Foundation, Inc.
diff --git a/libstdc++-v3/testsuite/18_support/cxa_vec.cc
b/libstdc++-v3/testsuite/18_support/cxa_vec.cc
index e712655..f2a6c5a 100644
--- a/libstdc++-v3/testsuite/18_support/cxa_vec.cc
+++ b/libstdc++-v3/testsuite/18_support/cxa_vec.cc
@@ -1,4 +1,5 @@
 // { dg-do run }
+// { dg-require-thread-fence "" }
 // Avoid use of non-overridable new/delete operators in shared
 // { dg-options "-static" { target *-*-mingw* } }
 // Test __cxa_vec routines


If that's OK, I'm not sure how to write the ChangeLog entry: it
modifies 3287 files.

In my testing, it replaces 3287 FAILs by 3287 UNSUPPORTED.


OK?

Other question: I've noticed similar errors in the g++ validation, but
I'm not sure what is the corresponding dg-require directive?

Thanks,

Christophe

[-- Attachment #2: require-thread-fence.patch.xz --]
[-- Type: application/force-download, Size: 99632 bytes --]

^ permalink raw reply	[flat|nested] 29+ messages in thread

end of thread, other threads:[~2016-11-30 11:23 UTC | newest]

Thread overview: 29+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-10-20  7:55 [libstdc++, testsuite] Add dg-require-thread-fence Christophe Lyon
2016-10-20  9:19 ` Christophe Lyon
2016-10-20  9:40 ` Jonathan Wakely
2016-10-20  9:51   ` Jonathan Wakely
2016-10-20 12:01   ` Christophe Lyon
2016-10-20 12:20     ` Jonathan Wakely
2016-10-20 16:26       ` Mike Stump
2016-10-20 16:34         ` Jonathan Wakely
2016-10-20 16:51           ` Ville Voutilainen
2016-10-20 17:34           ` Mike Stump
2016-10-20 17:41             ` Jonathan Wakely
2016-11-14 13:32               ` Christophe Lyon
2016-11-15 11:50                 ` Jonathan Wakely
2016-11-16 21:19                   ` Christophe Lyon
2016-11-28 21:41                     ` Christophe Lyon
2016-11-29 20:19                     ` Jonathan Wakely
2016-11-30  8:51                       ` Christophe Lyon
2016-11-30 11:23                         ` Jonathan Wakely
2016-10-21  8:00           ` Christophe Lyon
2016-10-21 11:14             ` Kyrill Tkachov
2016-11-14 17:54             ` Mike Stump
2016-11-14 19:58               ` Christophe Lyon
     [not found]                 ` <CAJA7tRbeR-z-NZgk72odwPM=iUzQq5G18i8qMgvQ9hX7QOZL+w@mail.gmail.com>
2016-11-14 20:49                   ` Mike Stump
2016-11-15  8:32                   ` Christophe Lyon
2016-10-20 16:51   ` Jonathan Wakely
2016-10-20 16:58     ` Ville Voutilainen
2016-10-20 17:08     ` Mike Stump
2016-10-20 17:11       ` Ville Voutilainen
2016-10-21  7:53     ` Christophe Lyon

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).