public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/40087]  New: Bad assembly for -O2
@ 2009-05-10  1:39 markus at cs dot wisc dot edu
  2009-05-10  1:41 ` [Bug c/40087] " markus at cs dot wisc dot edu
                   ` (19 more replies)
  0 siblings, 20 replies; 21+ messages in thread
From: markus at cs dot wisc dot edu @ 2009-05-10  1:39 UTC (permalink / raw)
  To: gcc-bugs

This is gcc-4.3.3 in Gentoo, compiled with CHOST=i686-pc-linux-gnu and the
configure arguments:
--prefix=/usr --bindir=/usr/i686-pc-linux-gnu/gcc-bin/4.3.3
--includedir=/usr/lib/gcc/i686-pc-linux-gnu/4.3.3/include
--datadir=/usr/share/gcc-data/i686-pc-linux-gnu/4.3.3
--mandir=/usr/share/gcc-data/i686-pc-linux-gnu/4.3.3/man
--infodir=/usr/share/gcc-data/i686-pc-linux-gnu/4.3.3/info
--with-gxx-include-dir=/usr/lib/gcc/i686-pc-linux-gnu/4.3.3/include/g++-v4
--host=i686-pc-linux-gnu --build=i686-pc-linux-gnu --disable-altivec
--disable-fixed-point --enable-nls --without-included-gettext
--with-system-zlib --disable-checking --disable-werror --enable-secureplt
--disable-multilib --enable-libmudflap --disable-libssp --enable-libgomp
--enable-cld --enable-java-awt=gtk --with-arch=i686
--enable-languages=c,c++,java,treelang,fortran --enable-shared
--enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu
--with-bugurl=http://bugs.gentoo.org/ --with-pkgversion='Gentoo 4.3.3-r2 p1.1,
pie-10.1.5'

Some simple code works with -O1 but not -O2.  I'll attach the C file and the
disassembly from objdump.  I'm no good with assembly, but I find it weird that
'last' is decremented by 8 at one point.


-- 
           Summary: Bad assembly for -O2
           Product: gcc
           Version: 4.3.3
            Status: UNCONFIRMED
          Severity: major
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: markus at cs dot wisc dot edu
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


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


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

end of thread, other threads:[~2009-06-17 19:49 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-05-10  1:39 [Bug c/40087] New: Bad assembly for -O2 markus at cs dot wisc dot edu
2009-05-10  1:41 ` [Bug c/40087] " markus at cs dot wisc dot edu
2009-05-10  1:44 ` markus at cs dot wisc dot edu
2009-05-10  1:48 ` markus at cs dot wisc dot edu
2009-05-10  9:42 ` [Bug tree-optimization/40087] " rguenth at gcc dot gnu dot org
2009-05-10  9:53 ` [Bug tree-optimization/40087] [4.3/4.4/4.5 Regression] Number of iterations analysis wrong rguenth at gcc dot gnu dot org
2009-05-10 12:59 ` rakdver at gcc dot gnu dot org
2009-05-15  0:34 ` rakdver at gcc dot gnu dot org
2009-05-15  8:44 ` rguenther at suse dot de
2009-05-15 15:45 ` rakdver at kam dot mff dot cuni dot cz
2009-05-20  0:34 ` rakdver at gcc dot gnu dot org
2009-05-20  9:21 ` [Bug tree-optimization/40087] [4.3/4.4 " rguenth at gcc dot gnu dot org
2009-05-21 11:37 ` rguenth at gcc dot gnu dot org
2009-05-22 20:44 ` rakdver at gcc dot gnu dot org
2009-05-23  9:15 ` [Bug tree-optimization/40087] [4.3 " rguenth at gcc dot gnu dot org
2009-06-15 10:10 ` cnstar9988 at gmail dot com
2009-06-15 14:24 ` mikpe at it dot uu dot se
2009-06-17 15:12 ` rguenth at gcc dot gnu dot org
2009-06-17 19:46 ` rguenth at gcc dot gnu dot org
2009-06-17 19:46 ` rguenth at gcc dot gnu dot org
2009-06-17 19:49 ` rguenth at gcc dot gnu dot org

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).