Re: Newer arm-none-eabi-gcc and STDIO_FLOATING_POINT

Uwe Bonnes <bon-1JbLm1bU5j5ZIx36JBfelj3+ndqKAYMe9FMPySWZwLkb1SvskN2V4Q@public.gmane.org> Thu, 15 Jun 2023 17:47:42 +0200
Newsgroups gmane.comp.hardware.microcontrollers.ethernut
Message-ID <[email protected]>
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-1JbLm1bU5j5ZIx36JBfelj3+ndqKAYMe9FMPySWZwLkb1SvskN2V4Q@public.gmane.org

Institut fuer Kernphysik  Schlossgartenstrasse 9  64289 Darmstadt
--------- Tel. 06151 1623569 ------- Fax. 06151 1623305 ---------
_______________________________________________
http://lists.egnite.de/mailman/listinfo/en-nut-discussion