https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61785
Bug ID: 61785
Summary: Sigsegv with enabled optimize -Os , -O2 in
sample_format_size
Product: gcc
Version: 4.8.3
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: dirkneukirchen at web dot de
Created attachment 33109
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=33109&action=edit
i486-openwrt-linux-g++ -v output
I get a SIGSEGV when running the binary compiled with default switches
(containing -Os) in qemu.
If I compile with -O0 the program is working.
GCC 4.6.4 is generating working code with -Os
4.8.0, 4.8.3, 4.9.0 do not work with -Os ; -O0 binaries work
Source is from mpd 0.18.11
gcc is used in OpenWrt buildroot to compile it for target arch (x86)
I opened a ticket on mpd bugtracker, provided gdb output and was told it's a
compiler bug - thats why I opened a ticket here.
the mpd bugtracker ticket is: http://bugs.musicpd.org/view.php?id=4024
First time reporter.