diff options
| author | David Madison <dmadison@users.noreply.github.com> | 2022-02-22 02:11:13 -0500 | 
|---|---|---|
| committer | David Madison <dmadison@users.noreply.github.com> | 2022-02-22 02:11:13 -0500 | 
| commit | 65f1968b755855315b931b4b8fa45747576d6536 (patch) | |
| tree | 77f4cf88950d90182f57c73f69027b4d39375d64 /cores/arduino/abi.cpp | |
| parent | f47a97522dc28c16c432422e3085035de69cfaf6 (diff) | |
| parent | a1c76c0651192587f495d88b419553edd12a4881 (diff) | |
Merge tag '1.8.4' into upstream-1.8.4
Diffstat (limited to 'cores/arduino/abi.cpp')
| -rw-r--r-- | cores/arduino/abi.cpp | 15 | 
1 files changed, 8 insertions, 7 deletions
| diff --git a/cores/arduino/abi.cpp b/cores/arduino/abi.cpp index 8d719b8..6e1b0f8 100644 --- a/cores/arduino/abi.cpp +++ b/cores/arduino/abi.cpp @@ -21,15 +21,16 @@  extern "C" void __cxa_pure_virtual(void) __attribute__ ((__noreturn__));  extern "C" void __cxa_deleted_virtual(void) __attribute__ ((__noreturn__)); +namespace std { +  [[gnu::weak, noreturn]] void terminate() { +    abort(); +  } +} +  void __cxa_pure_virtual(void) { -  // We might want to write some diagnostics to uart in this case -  //std::terminate(); -  abort(); +  std::terminate();  }  void __cxa_deleted_virtual(void) { -  // We might want to write some diagnostics to uart in this case -  //std::terminate(); -  abort(); +  std::terminate();  } - | 
