This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Fix libstdc++/58659.cc test case.


The test case add here:

http://gcc.gnu.org/ml/gcc-patches/2013-10/msg00474.html

Introduced an unprototyped call to abort() resulting in failures due to unexepected warnings in aarch64-none-elf cross testing.

Committed to trunk as obvious.

Cheers
/Marcus

2013-10-09  Marcus Shawcroft  <marcus.shawcroft@arm.com>

* testsuite/20_util/shared_ptr/cons/58659.cc: Use __builtin_abort().
diff --git a/libstdc++-v3/testsuite/20_util/shared_ptr/cons/58659.cc b/libstdc++-v3/testsuite/20_util/shared_ptr/cons/58659.cc
index 5e7c730..1b823bc 100644
--- a/libstdc++-v3/testsuite/20_util/shared_ptr/cons/58659.cc
+++ b/libstdc++-v3/testsuite/20_util/shared_ptr/cons/58659.cc
@@ -48,7 +48,7 @@ namespace std
       void deallocate(value_type* p, size_t n)
       {
         if (n != 1 || p != (void*)storage || !allocated)
-          abort();
+          __builtin_abort();
         allocated = false;
       }
 

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]