[Bug libstdc++/84442] FAIL: 30_threads/thread/cons/terminate.cc (test for excess errors)

2018-04-18 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84442

Jonathan Wakely  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |FIXED

--- Comment #7 from Jonathan Wakely  ---
Thanks, this should be fixed on trunk now.

[Bug libstdc++/84442] FAIL: 30_threads/thread/cons/terminate.cc (test for excess errors)

2018-04-18 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84442

--- Comment #6 from Jonathan Wakely  ---
Author: redi
Date: Wed Apr 18 11:15:38 2018
New Revision: 259463

URL: https://gcc.gnu.org/viewcvs?rev=259463=gcc=rev
Log:
PR libstdc++/84442 if _Exit isn't declared then use _exit instead

PR libstdc++/84442
* testsuite/30_threads/thread/cons/terminate.cc
[!_GLIBCXX_USE_C99_STDLIB] : Use _exit or std::exit instead of _Exit.

Modified:
trunk/libstdc++-v3/ChangeLog
trunk/libstdc++-v3/testsuite/30_threads/thread/cons/terminate.cc

[Bug libstdc++/84442] FAIL: 30_threads/thread/cons/terminate.cc (test for excess errors)

2018-04-17 Thread dave.anglin at bell dot net
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84442

--- Comment #5 from dave.anglin at bell dot net ---
On 2018-04-17 10:21 AM, redi at gcc dot gnu.org wrote:
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84442
>
> --- Comment #4 from Jonathan Wakely  ---
> Dave, does the patch in comment 3 fix the FAIL?
>
Yes, it fixes the fail.

Thanks,
Dave

[Bug libstdc++/84442] FAIL: 30_threads/thread/cons/terminate.cc (test for excess errors)

2018-04-17 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84442

--- Comment #4 from Jonathan Wakely  ---
Dave, does the patch in comment 3 fix the FAIL?

[Bug libstdc++/84442] FAIL: 30_threads/thread/cons/terminate.cc (test for excess errors)

2018-02-19 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84442

Jonathan Wakely  changed:

   What|Removed |Added

   Target Milestone|--- |8.0

[Bug libstdc++/84442] FAIL: 30_threads/thread/cons/terminate.cc (test for excess errors)

2018-02-19 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84442

Jonathan Wakely  changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
   Last reconfirmed||2018-02-19
 Ever confirmed|0   |1

--- Comment #3 from Jonathan Wakely  ---
OK then this should help:

--- a/libstdc++-v3/testsuite/30_threads/thread/cons/terminate.cc
+++ b/libstdc++-v3/testsuite/30_threads/thread/cons/terminate.cc
@@ -25,10 +25,19 @@
 #include 
 #include 
 #include 
+#if !_GLIBCXX_USE_C99_STDLIB && defined _GLIBCXX_HAVE_UNISTD_H
+# include 
+#endif

 void handle_terminate()
 {
+#if _GLIBCXX_USE_C99_STDLIB
   std::_Exit(0);
+#elif defined _GLIBCXX_HAVE_UNISTD_H
+  _exit(0);
+#else
+  std::exit(0);
+#endif
 }

 void f() { throw 1; }

[Bug libstdc++/84442] FAIL: 30_threads/thread/cons/terminate.cc (test for excess errors)

2018-02-19 Thread dave.anglin at bell dot net
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84442

--- Comment #2 from dave.anglin at bell dot net ---
On 2018-02-19 11:17 AM, redi at gcc dot gnu.org wrote:
> Does HPUX provide _exit() in  instead?

Yes.

[Bug libstdc++/84442] FAIL: 30_threads/thread/cons/terminate.cc (test for excess errors)

2018-02-19 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84442

--- Comment #1 from Jonathan Wakely  ---
Does HPUX provide _exit() in  instead?