https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87373
--- Comment #2 from Murat Ursavaş <murat.ursavas at gmail dot com> --- Hi Umesh, Could you test it with the following options: -g3 -gdwarf-2 -mcpu=cortex-m3 -mthumb -std=c++1y '-DDEBUG=1' -O0 -pedantic -Wall -Wextra -c -fmessage-length=0 -fno-rtti -fno-exceptions -mno-sched-prolog -fno-builtin -fpack-struct -fshort-enums -ffunction-sections -fdata-sections Thanks in advance.