This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
[PATCH] Fix libstdc++/58659.cc test case.
- From: Marcus Shawcroft <marcus dot shawcroft at arm dot com>
- To: "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>, libstdc++ at gcc dot gnu dot org
- Cc: jwakely dot gcc at gmail dot com
- Date: Wed, 09 Oct 2013 15:26:56 +0100
- Subject: [PATCH] Fix libstdc++/58659.cc test case.
- Authentication-results: sourceware.org; auth=none
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;
}