micropython/ports
Angus Gratton a16a330da5 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 fdfe4eca74
2022-08-15 22:55:34 +10:00
..
bare-arm bare-arm/mpconfigport.h: Disable remaining optional features. 2021-11-01 14:23:06 +11:00
cc3200 py/objstr: Add hex/fromhex to bytes/memoryview/bytearray. 2022-08-12 12:44:30 +10:00
esp32 extmod/ntptime: Factor out ntptime module from esp8266 port. 2022-08-06 00:08:32 +10:00
esp8266 extmod/ntptime: Factor out ntptime module from esp8266 port. 2022-08-06 00:08:32 +10:00
javascript py/objstr: Add hex/fromhex to bytes/memoryview/bytearray. 2022-08-12 12:44:30 +10:00
mimxrt py/objstr: Add hex/fromhex to bytes/memoryview/bytearray. 2022-08-12 12:44:30 +10:00
minimal minimal/Makefile: Avoid terminal reset, use BUILD variable. 2022-08-11 14:07:18 +10:00
nrf nrf,stm32: Don't enable debug info by default if LTO is on. 2022-08-15 22:55:34 +10:00
pic16bit pic16bit/pic16bit_mphal: Use MP_REGISTER_ROOT_POINTER(). 2022-07-18 13:50:34 +10:00
powerpc shared/runtime/pyexec: Use MP_REGISTER_ROOT_POINTER(). 2022-07-18 13:52:01 +10:00
qemu-arm py/objstr: Add hex/fromhex to bytes/memoryview/bytearray. 2022-08-12 12:44:30 +10:00
renesas-ra docs: Update links for Arm GCC toolchain. 2022-08-11 14:27:06 +10:00
rp2 rp2: Correctly determine path to arm-none-eabi-size. 2022-08-11 14:23:28 +10:00
samd py/objstr: Add hex/fromhex to bytes/memoryview/bytearray. 2022-08-12 12:44:30 +10:00
stm32 nrf,stm32: Don't enable debug info by default if LTO is on. 2022-08-15 22:55:34 +10:00
teensy ports: Always include debug information in the ELF. 2022-07-29 11:24:00 +10:00
unix mpy-cross,unix: Remove .gitignore file. 2022-08-12 16:38:04 +10:00
windows py/objstr: Add hex/fromhex to bytes/memoryview/bytearray. 2022-08-12 12:44:30 +10:00
zephyr py/objstr: Add hex/fromhex to bytes/memoryview/bytearray. 2022-08-12 12:44:30 +10:00