This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug optimization/11440] New: gcc-3.3.1 miscompiles c++ code with -O2, -fno-gcse cures it
- From: "olh at suse dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 5 Jul 2003 10:02:23 -0000
- Subject: [Bug optimization/11440] New: gcc-3.3.1 miscompiles c++ code with -O2, -fno-gcse cures it
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11440
Summary: gcc-3.3.1 miscompiles c++ code with -O2, -fno-gcse cures
it
Product: gcc
Version: 3.3.1
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: optimization
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: olh at suse dot de
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: powerpc-unknown-linux
GCC host triplet: powerpc-unknown-linux
GCC target triplet: powerpc-unknown-linux
konqueror from KDE_3_1_BRANCH does not render http://www.spiegel.de/ correctly.
the reason is a miscompilation in libkhtml.so.4.1.0, render_box.cpp is miscompiled.
gcc-3.2.3 produces correct results, gcc-3.3.1 with -O1 as well, -O2 breaks it.
adding -fno-gcse after -O2 produces correct code.
g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../../kimgio -I../../kio -I../../dcop -I../../kfile -I../../khtml -I../..
-I../../dcop -I../../libltdl -I../../kdecore -I../../kdeui -I../../kio -I../../kio/kio -I../../kio/kfile -I../..
-I/usr/qt/3/include -I/usr/X11R6/include -I/home/kdebeta/kde31-cvs/include
-DQT_THREAD_SUPPORT -D_REENTRANT -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall
-pedantic -W -Wpointer-arith -Wwrite-strings -ansi -D_XOPEN_SOURCE=500
-D_BSD_SOURCE -Wcast-align -Wconversion -O1 -O2 -fno-gcse -fsigned-char -g
-fmessage-length=0 -fno-exceptions -fno-check-new -DQT_NO_TRANSLATION
-DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_COMPAT -c
render_box.cpp -MT render_box.lo -MD -MP -MF .deps/render_box.TPlo -fPIC -DPIC -o
.libs/render_box.o
see attachment.
- Follow-Ups:
- [Bug optimization/11440] gcc-3.3.1 miscompiles c++ code with -O2, -fno-gcse cures it
- [Bug optimization/11440] gcc-3.3.1 miscompiles c++ code with -O2, -fno-gcse cures it
- From: pinskia at physics dot uc dot edu
- [Bug optimization/11440] gcc-3.3.1 miscompiles c++ code with -O2, -fno-gcse cures it
- [Bug optimization/11440] [3.3 regression] gcc-3.3.1 miscompiles c++ code with -O2, -fno-gcse cures it
- From: sirl at gcc dot gnu dot org
- [Bug optimization/11440] [3.3 regression] gcc-3.3.1 miscompiles c++ code with -O2, -fno-gcse cures it
- From: sirl at gcc dot gnu dot org
- [Bug optimization/11440] [3.3 regression] gcc-3.3.1 miscompiles c++ code with -O2, -fno-gcse cures it
- From: sirl at gcc dot gnu dot org
- [Bug optimization/11440] [3.3 regression] gcc-3.3.1 miscompiles c++ code with -O2, -fno-gcse cures it
- From: sirl at gcc dot gnu dot org
- [Bug optimization/11440] [3.3 regression] gcc-3.3.1 miscompiles c++ code with -O2, -fno-gcse cures it
- From: sirl at gcc dot gnu dot org
- [Bug optimization/11440] [3.3 regression] gcc-3.3.1 miscompiles c++ code with -O2, -fno-gcse cures it
- From: pinskia at physics dot uc dot edu
- [Bug optimization/11440] [3.3 regression] gcc-3.3.1 miscompiles c++ code with -O2, -fno-gcse cures it
- From: neroden at gcc dot gnu dot org
- [Bug optimization/11440] [3.3 regression] gcc-3.3.1 miscompiles c++ code with -O2, -fno-gcse cures it
- From: sirl at gcc dot gnu dot org
- [Bug optimization/11440] [3.3 regression] gcc-3.3.1 miscompiles c++ code with -O2, -fno-gcse cures it
- From: cvs-commit at gcc dot gnu dot org
- [Bug optimization/11440] [3.3 regression] gcc-3.3.1 miscompiles c++ code with -O2, -fno-gcse cures it
- From: cvs-commit at gcc dot gnu dot org
- [Bug optimization/11440] [3.3 regression] gcc-3.3.1 miscompiles c++ code with -O2, -fno-gcse cures it
- From: cvs-commit at gcc dot gnu dot org
- [Bug optimization/11440] [3.3 regression] gcc-3.3.1 miscompiles c++ code with -O2, -fno-gcse cures it
- From: cvs-commit at gcc dot gnu dot org
- [Bug optimization/11440] [3.3 regression] gcc-3.3.1 miscompiles c++ code with -O2, -fno-gcse cures it
- From: sirl at gcc dot gnu dot org
- [Bug optimization/11440] [3.3 regression] gcc-3.3.1 miscompiles c++ code with -O2, -fno-gcse cures it
- From: sirl at gcc dot gnu dot org
- [Bug optimization/11440] [3.3 regression] gcc-3.3.1 miscompiles c++ code with -O2, -fno-gcse cures it
- From: sirl at gcc dot gnu dot org