This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/21688] New: gcc miscompiles with -Os (wrong code at least on i386, x86_64 and ppc)
- From: "felix-gcc at fefe dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 20 May 2005 22:24:01 -0000
- Subject: [Bug c/21688] New: gcc miscompiles with -Os (wrong code at least on i386, x86_64 and ppc)
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
wget http://dl.fefe.de/crypt-bug.c
gcc4 -Os -o t crypt-bug.c
./t
# assertion failure
gcc4 -O -o t crypt-bug.c
./t
# works ok
reproduced on i386, x86_64 and using Apple's gcc 4 in Tiger.
--
Summary: gcc miscompiles with -Os (wrong code at least on i386,
x86_64 and ppc)
Product: gcc
Version: 4.0.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: felix-gcc at fefe dot de
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: x86_64-linux
GCC host triplet: x86_64-linux
GCC target triplet: x86_64-linux
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21688