diff options
author | Angus Gratton <angus@redyak.com.au> | 2022-08-15 16:07:00 +1000 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2022-08-15 22:55:34 +1000 |
commit | a16a330da54afd392252d7ea04139fd4702f48f8 (patch) | |
tree | 2367d83d35347391eaea46eb8990d0599bde3f6b /docs/esp32 | |
parent | 6f4d424f461bede1afb69637763f4fce5f27cd90 (diff) | |
download | micropython-a16a330da54afd392252d7ea04139fd4702f48f8.tar.gz micropython-a16a330da54afd392252d7ea04139fd4702f48f8.zip |
nrf,stm32: Don't enable debug info by default if LTO is on.
It seems sometimes gcc with LTO will generate otherwise valid assembly
listings that cause 'as' to error out when generating DWARF debug info; see
https://sourceware.org/bugzilla/show_bug.cgi?id=29494
Therefore, don't enable -g by default if LTO is on.
Enabling LTO=1 DEBUG=1 is still possible but may result in random errors
at link time due to 'as' (the error in this case is "Error: unaligned
opcodes detected in executable segment", and the only other easy workaround
is CFLAGS+=-fno-jump-tables which may increase code size significantly).
Follows on from fdfe4eca745dce5f20fb65a3c197006b9053999a
Diffstat (limited to 'docs/esp32')
0 files changed, 0 insertions, 0 deletions