Skip to content

Commit eadefcb

Browse files
Add in a couple more strings
1 parent 29f4434 commit eadefcb

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

patches/gcc4.8/gcc-exception-what-to-pmem.patch

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -729,3 +729,34 @@ index d05e4b9..39e5721 100644
729729
+#undef __EXCSTR
730730
+
731731
#endif /* _STL_MAP_H */
732+
diff --git a/libstdc++-v3/src/c++11/system_error.cc b/libstdc++-v3/src/c++11/system_error.cc
733+
index 453c687..32e563c 100644
734+
--- a/libstdc++-v3/src/c++11/system_error.cc
735+
+++ b/libstdc++-v3/src/c++11/system_error.cc
736+
@@ -28,6 +28,8 @@
737+
#include <bits/functexcept.h>
738+
#include <limits>
739+
740+
+#define __EXCSTR(s) (__extension__({static const char __c[] __attribute__((section(".irom.exceptiontext,\"MS\",@progbits,1#"))) = (s); &__c[0];}))
741+
+
742+
namespace
743+
{
744+
using std::string;
745+
@@ -36,7 +38,7 @@ namespace
746+
{
747+
virtual const char*
748+
name() const noexcept
749+
- { return "generic"; }
750+
+ { return __EXCSTR("generic"); }
751+
752+
virtual string
753+
message(int i) const
754+
@@ -51,7 +53,7 @@ namespace
755+
{
756+
virtual const char*
757+
name() const noexcept
758+
- { return "system"; }
759+
+ { return __EXCSTR("system"); }
760+
761+
virtual string
762+
message(int i) const

0 commit comments

Comments
 (0)