summaryrefslogtreecommitdiffstats
path: root/contrib/libstdc++/stdexcepti.cc
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/libstdc++/stdexcepti.cc')
-rw-r--r--contrib/libstdc++/stdexcepti.cc21
1 files changed, 21 insertions, 0 deletions
diff --git a/contrib/libstdc++/stdexcepti.cc b/contrib/libstdc++/stdexcepti.cc
new file mode 100644
index 0000000..3b03acd
--- /dev/null
+++ b/contrib/libstdc++/stdexcepti.cc
@@ -0,0 +1,21 @@
+// Implementation file for Exception Support for -*- C++ -*-
+// This file is part of the GNU ANSI C++ Library.
+
+#ifdef __GNUG__
+#pragma implementation "stdexcept"
+#endif
+
+#include <stdexcept>
+
+// Entry points for string.
+
+void
+__out_of_range (const char *s)
+{
+ throw out_of_range (s);
+}
+
+void __length_error (const char *s)
+{
+ throw length_error (s);
+}
OpenPOWER on IntegriCloud