firmware-utils: move bcm_tag.h here
[openwrt.git] / package / uclibc++ / patches / 006-eabi_fix.patch
1 --- a/include/typeinfo
2 +++ b/include/typeinfo
3 @@ -44,6 +44,7 @@ namespace __cxxabiv1
4    class __class_type_info;
5  } // namespace __cxxabiv1
6  
7 +#ifndef __GXX_MERGED_TYPEINFO_NAMES
8  #if !__GXX_WEAK__
9    // If weak symbols are not supported, typeinfo names are not merged.
10    #define __GXX_MERGED_TYPEINFO_NAMES 0
11 @@ -51,6 +52,7 @@ namespace __cxxabiv1
12    // On platforms that support weak symbols, typeinfo names are merged.
13    #define __GXX_MERGED_TYPEINFO_NAMES 1
14  #endif
15 +#endif
16  
17  namespace std 
18  {
19 --- a/include/unwind-cxx.h
20 +++ b/include/unwind-cxx.h
21 @@ -173,6 +173,7 @@ extern std::unexpected_handler __unexpec
22  \r
23  // This is the exception class we report -- "GNUCC++\0".\r
24  const _Unwind_Exception_Class __gxx_exception_class\r
25 +#ifndef __ARM_EABI_UNWINDER__\r
26  = ((((((((_Unwind_Exception_Class) 'G' \r
27          << 8 | (_Unwind_Exception_Class) 'N')\r
28         << 8 | (_Unwind_Exception_Class) 'U')\r
29 @@ -181,6 +182,9 @@ const _Unwind_Exception_Class __gxx_exce
30       << 8 | (_Unwind_Exception_Class) '+')\r
31      << 8 | (_Unwind_Exception_Class) '+')\r
32     << 8 | (_Unwind_Exception_Class) '\0');\r
33 +#else\r
34 += "GNUC++";\r
35 +#endif\r
36  \r
37  // GNU C++ personality routine, Version 0.\r
38  extern "C" _Unwind_Reason_Code __gxx_personality_v0\r