https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88562

--- Comment #3 from Zavadovsky Yan <zavadovsky.yan at gmail dot com> ---
Created attachment 45271
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45271&action=edit
main.cpp

Add some testing code.

Command to compile: './820/bin/sh4-unknown-linux-gnu-g++
--sysroot=./820/sh4-unknown-linux-gnu/sysroot -static -Os -o
/export/st-sh4/rootfs/test820 ReadQm.cpp main.cpp'
It will produce executable which will assert.

Another command to compile: './820/bin/sh4-unknown-linux-gnu-g++
--sysroot=./820/sh4-unknown-linux-gnu/sysroot -static -Os
-fno-expensive-optimizations -o /export/st-sh4/rootfs/test820 ReadQm.cpp
main.cpp'
It will produce executable which won't assert.

Reply via email to