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



             Bug #: 57046

           Summary: wrong code generated by gcc 4.8.0 on i686

    Classification: Unclassified

           Product: gcc

           Version: 4.8.0

            Status: UNCONFIRMED

          Severity: normal

          Priority: P3

         Component: c

        AssignedTo: unassig...@gcc.gnu.org

        ReportedBy: matti...@acm.org





Created attachment 29917

  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=29917

Test case including driver demonstrating the bug



Gcc 4.8.0 silently miscompiles the attached short test case (emac.c) on 32-bit

x86 with -O2. It appears that the value returned from get_value is thrown away.



gcc -V output:

Using built-in specs.

COLLECT_GCC=/usr/local/gcc/4.8.0/bin/gcc

COLLECT_LTO_WRAPPER=/home/local/linux/gcc/4.8.0/bin/../libexec/gcc/i686-pc-linux-gnu/4.8.0/lto-wrapper

Target: i686-pc-linux-gnu

Configured with: ../gcc-4.8.0/configure --prefix=/usr/local/gcc/4.8.0

--with-mpc=/tmp/extra --with-gmp=/tmp/extra --with-mpfr=/tmp/extra

--with-isl=/tmp/extra --with-cloog=/tmp/extra

--with-as=/usr/local/binutils/2.23.2/bin/as

--with-ld=/usr/local/binutils/2.23.2/bin/ld.gold

--enable-languages=c,c++,objc,go

Thread model: posix

gcc version 4.8.0 (GCC)

Reply via email to