public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/57046] New: wrong code generated by gcc 4.8.0 on i686
@ 2013-04-23 10:42 mattiase at acm dot org
  2013-04-23 11:31 ` [Bug c/57046] " mikpe at it dot uu.se
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: mattiase at acm dot org @ 2013-04-23 10:42 UTC (permalink / raw)
  To: gcc-bugs


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: unassigned@gcc.gnu.org
        ReportedBy: mattiase@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)


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2013-05-21  1:53 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-04-23 10:42 [Bug c/57046] New: wrong code generated by gcc 4.8.0 on i686 mattiase at acm dot org
2013-04-23 11:31 ` [Bug c/57046] " mikpe at it dot uu.se
2013-04-23 12:04 ` [Bug c/57046] [4.8/4.9 Regression] " rguenth at gcc dot gnu.org
2013-04-23 12:10 ` [Bug rtl-optimization/57046] " jakub at gcc dot gnu.org
2013-04-23 12:26 ` jakub at gcc dot gnu.org
2013-04-23 15:34 ` vmakarov at redhat dot com
2013-04-26 18:03 ` [Bug rtl-optimization/57046] [4.8 " jakub at gcc dot gnu.org
2013-05-02 19:29 ` jakub at gcc dot gnu.org
2013-05-21  1:53 ` eraman at google dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).