Disabled exceptions, new() operator still throws exception
Hi @all,
I've already had a look at this on the web and disabled exception handling as recommended (see end). However, when I call new(999999), there is still an exception thrown. In debugger "semihosting: exception 0x20023" is shown, without debugger my application just hangs.
I know that I can get around by calling new(nothrow). However, I need to know if there are other exceptions that I don't know about that are also enabled but not handled.
How do I completely disable exception handling?
Thanks,
Martin
1. toolchain version: GNU Tools for ARM Embedded Processors 6-2017-q2-update
When I take a look in the build-toolchain.sh file, "-fno-exceptions" is set for libc++ build.
2. g++ flags (those which I think might be relevant for this):
--specs=nano.specs
--specs=
-ffunction-sections
-fdata-sections
-fno-rtti
-fno-exceptions
-std=c++11
-lrdimon
Question information
- Language:
- English Edit question
- Status:
- Answered
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Martin Wagner for more information if necessary.