[Bug c/37757] New: When -Os is enabled, gcc generates a loop where there is none
rick at efn dot org
gcc-bugzilla@gcc.gnu.org
Mon Oct 6 22:35:00 GMT 2008
When -Os is enabled, gcc generates a loop where there is none.
gcc -v
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian 4.3.2-1'
--with-bugurl=file:///usr/share/doc/gcc-4.3/README.Bugs
--enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --enable-shared
--with-system-zlib --libexecdir=/usr/lib --without-included-gettext
--enable-threads=posix --enable-nls --with-gxx-include-dir=/usr/include/c++/4.3
--program-suffix=-4.3 --enable-clocale=gnu --enable-libstdcxx-debug
--enable-objc-gc --enable-mpfr --enable-targets=all --enable-cld
--enable-checking=release --build=i486-linux-gnu --host=i486-linux-gnu
--target=i486-linux-gnu
Thread model: posix
gcc version 4.3.2 (Debian 4.3.2-1)
Command line:
gcc -Os -c -Wa,-alh,-L test.c > /tmp/test.opt.lis
# Removing "-Os" removes bug
No warnings, errors or output
files:
http://www.efn.org/~rick/pub/test.i
http://www.efn.org/~rick/pub/test.c
--
Summary: When -Os is enabled, gcc generates a loop where there is
none
Product: gcc
Version: 4.3.2
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: rick at efn dot org
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=37757
More information about the Gcc-bugs
mailing list