nuttx/libs/libxx
yinshengkai ad76a4f7a9 libcxxabi: libcxxabi enables exceptions by default
In the following code, even though the application does not use exceptions, an exception is still thrown in libcxx

If libcxxabi is not enabled, the toolchain default implementation will be used. However, arm-gcc does not enable thread
support by default, which will cause errors in a multi-threaded environment.

Therefore, we need to use libcxxabi to ensure normal functions in a multi-threaded environment.

using namespace std;

void foo(bool recur);
int bar(bool recur)
{
  if (recur) {
      foo(false);
  }
  return 0xFAFAFA;
}

void foo(bool recur)
{
  static int i = bar(recur);
  cout << "Static is:" << i << "\n";
}

int main(int argc, char *argv[])
{
  foo(true);
  return 0;
}

Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
2024-09-06 09:52:33 +08:00
..
libcxxmini nuttx: fix multiple 'FAR', 'CODE' and style issues 2024-08-25 19:22:15 +08:00
__config_site upgrade llvm version to 17.0.6 and set default nuttx math lib as default 2023-12-17 03:39:26 -08:00
.gitignore
0001_fix_stdatomic_h_miss_typedef.patch libcxx: fix build error. 2023-12-06 07:56:17 -08:00
0001-libcxx-remove-mach-time-h.patch libs/libxx: add patch to remove mach/mach_time.h inclusion 2024-02-16 10:42:23 -08:00
0001-uClibcxx-basic_definitions-fix-GCC-specific-definiti.patch
0001-uclibxx-use-overload-constructor-of-filebuf-ostream.patch
CMakeLists.txt
etl.defs fix nxstyle 2024-05-13 22:24:36 +02:00
Kconfig Add basic support for locales in order to C++ streams to build and work for simple cases (POSIX / C locale). 2024-04-29 17:34:10 +08:00
libcxx.cmake cmake:enhance set_source_files_properties for NuttX CMake module 2024-04-18 14:57:58 -03:00
libcxx.defs libs/libxx: add patch to remove mach/mach_time.h inclusion 2024-02-16 10:42:23 -08:00
libcxxabi.cmake libcxxabi: libcxxabi enables exceptions by default 2024-09-06 09:52:33 +08:00
libcxxabi.defs libcxxabi: libcxxabi enables exceptions by default 2024-09-06 09:52:33 +08:00
libcxxmini.cmake cmake:enable libxx for CMake build 2024-03-15 01:28:53 +08:00
libcxxmini.defs
Makefile
mbstate_t.patch upgrade llvm version to 17.0.6 and set default nuttx math lib as default 2023-12-17 03:39:26 -08:00
system_configuration.h
uClibc++.cmake cmake:enable libxx for CMake build 2024-03-15 01:28:53 +08:00
uClibc++.defs fix nxstyle 2024-05-13 22:24:36 +02:00