http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46693

--- Comment #5 from Sergey Matyukevich <geomatsi at gmail dot com> 2010-11-28 
16:12:47 UTC ---
I am using an arm gcc cross-toolchain created with OpenEmbedded. Toolchain
version and its dumpspecs are available in attachements. Wrong code for
attached simple testcase is generated when I use -O2 optimization option. When
optimization options are not used or when -O0 is in use then code is generated
correctly. Running testcase is straightforward: compile an example with -O2 and
without it, then run both examples (either on a suitable arm machine or under
qemu) and get two different outputs (OK and WRONG) for two binaries.

Reply via email to