[Bug c++/39823] New: GCC 4.4.0 produces bad code for libstdc++

d dot g dot gorbachev at gmail dot com gcc-bugzilla@gcc.gnu.org
Mon Apr 20 19:20:00 GMT 2009


GCC 4.4.0 20090414 i686-pc-linux-gnu

Configure options:

--prefix=/usr/local --enable-languages=c,c++
--enable-version-specific-runtime-libs --with-host-libstdcxx='-lstdc++ -lm'
--disable-bootstrap --disable-shared --disable-nls

Libraries: GMP 4.3, MPFR 2.4.1-p5, PPL 0.10.2, CLooG-PPL 0.15.

In std::string::begin() (_ZNSs5beginEv):

  movl    12(%ebp), %ebx
  movl    (%ebx), %eax

or:

  mov    0xc(%ebp),%ebx
  ...
  mov    (%ebx),%edx  // crash here


-- 
           Summary: GCC 4.4.0 produces bad code for libstdc++
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: d dot g dot gorbachev at gmail dot com
 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=39823



More information about the Gcc-bugs mailing list