[En-Nut-Discussion] Newer arm-none-eabi-gcc and STDIO_FLOATING_POINT
Uwe Bonnes
bon at elektron.ikp.physik.tu-darmstadt.de
Thu Jun 15 17:47:42 CEST 2023
Hello,
it seems the last usable gcc version was gcc-arm-none-eabi-9-2020/
gcc-arm-none-eabi-10.3 sees a problem when compiling for STM32L053:
/devel/ethernut/nut/arch/cm3/dev/stm/stm32_lcd16seg.c:301:5: error: 'memset' writing 48 bytes into a region of size 0 overflows the destination [-Werror=stringop-overflow=]
301 | memset((void*)LCD->RAM, 0, 2 * sizeof(uint32_t) * SEG16_DIGITS);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
that earlier and later version do not see.
Later version have python3.8 hard coded in arm-none-eabi-gdb and gdb
fails.
arm-gnu-toolchain-11.3.rel1 and arm-gnu-toolchain-12.2.mpacbti also
have an uncomplete define
#define __NEWLIB__ @NEWLIB_MAJOR_VERSION@
that may cause other problems.
Cheers
--
Uwe Bonnes bon at elektron.ikp.physik.tu-darmstadt.de
Institut fuer Kernphysik Schlossgartenstrasse 9 64289 Darmstadt
--------- Tel. 06151 1623569 ------- Fax. 06151 1623305 ---------
More information about the En-Nut-Discussion
mailing list