summaryrefslogtreecommitdiffstats
path: root/contrib/libcxxrt/stdexcept.h
diff options
context:
space:
mode:
authordim <dim@FreeBSD.org>2015-01-31 23:48:59 +0000
committerdim <dim@FreeBSD.org>2015-01-31 23:48:59 +0000
commitd55f158aa0c66ce046b7c35cebe1650e14161ca3 (patch)
tree6fd4f9ea15c58bd8ca9a6b8a85fdc9a5eb6ff31f /contrib/libcxxrt/stdexcept.h
parentc6bc15d7ab08f753864c67985cc70c180d9cf799 (diff)
downloadFreeBSD-src-d55f158aa0c66ce046b7c35cebe1650e14161ca3.zip
FreeBSD-src-d55f158aa0c66ce046b7c35cebe1650e14161ca3.tar.gz
MFC r273381 (by bapt):
Add support for __cxa_throw_bad_array_new_length in libcxxrt It is required for use with newer g++49 Differential Revision: https://reviews.freebsd.org/D982 Reviewed by: theraven Approved by: theraven MFC r276417: Import libcxxrt master 00bc29eb6513624824a6d7db2ebc768a4216a604. Interesting fixes: 76584a0 Reorganize code to use only 32bit atomic ops for 32bit platforms 30d2ae5 Implement __cxa_throw_bad_array_new_length Reviewed by: bapt Differential Revision: https://reviews.freebsd.org/D1390
Diffstat (limited to 'contrib/libcxxrt/stdexcept.h')
-rw-r--r--contrib/libcxxrt/stdexcept.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/contrib/libcxxrt/stdexcept.h b/contrib/libcxxrt/stdexcept.h
index 49eaf55..8920393 100644
--- a/contrib/libcxxrt/stdexcept.h
+++ b/contrib/libcxxrt/stdexcept.h
@@ -81,6 +81,15 @@ namespace std
virtual const char* what() const throw();
};
+ class bad_array_new_length: public bad_alloc
+ {
+ public:
+ bad_array_new_length() throw();
+ bad_array_new_length(const bad_array_new_length&) throw();
+ bad_array_new_length& operator=(const bad_array_new_length&) throw();
+ virtual ~bad_array_new_length();
+ virtual const char *what() const throw();
+ };
} // namespace std
OpenPOWER on IntegriCloud