[Bug c++/88562] Incorrect pointer incrementing on ST-SH4
zavadovsky.yan at gmail dot com
gcc-bugzilla@gcc.gnu.org
Thu Dec 20 12:11:00 GMT 2018
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.
More information about the Gcc-bugs
mailing list