From bon at elektron.ikp.physik.tu-darmstadt.de Thu Jun 15 12:49:49 2023 From: bon at elektron.ikp.physik.tu-darmstadt.de (Uwe Bonnes) Date: Thu, 15 Jun 2023 12:49:49 +0200 Subject: [En-Nut-Discussion] Newer arm-none-eabi-gcc and STDIO_FLOATING_POIN Message-ID: <25738.60621.526682.33845@gargle.gargle.HOWL> Hello, svn rev 6955 allows to compile with STDIO_FLOATING_POINT on recent arm-eabi-none-gcc when nanolib is used. So now nanolib is used for CM3_GCC and CM3_GCCDBG. Cheers -- Uwe Bonnes bon at elektron.ikp.physik.tu-darmstadt.de Institut fuer Kernphysik Schlossgartenstrasse 9 64289 Darmstadt --------- Tel. 06151 1623569 ------- Fax. 06151 1623305 --------- From bon at elektron.ikp.physik.tu-darmstadt.de Thu Jun 15 17:47:42 2023 From: bon at elektron.ikp.physik.tu-darmstadt.de (Uwe Bonnes) Date: Thu, 15 Jun 2023 17:47:42 +0200 Subject: [En-Nut-Discussion] Newer arm-none-eabi-gcc and STDIO_FLOATING_POINT In-Reply-To: <25738.60621.526682.33845@gargle.gargle.HOWL> References: <25738.60621.526682.33845@gargle.gargle.HOWL> Message-ID: <25739.12958.632771.469171@gargle.gargle.HOWL> 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 ---------