This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/21538] [4.0/4.1 Regression] g++.dg/opt/temp1.C execution test fails
- From: "rguenth at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 13 May 2005 09:52:20 -0000
- Subject: [Bug middle-end/21538] [4.0/4.1 Regression] g++.dg/opt/temp1.C execution test fails
- References: <20050512195536.21538.jsm28@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From rguenth at gcc dot gnu dot org 2005-05-13 09:52 -------
The testcase is fine. We just optimize it no more with the STRIP_TYPE_NOPS
change. This change was to avoid stripping type qualifiers such as const
from lvalues - so we might need to use some other type stripping mechanism
that preserves the current optimizations but avoids stripping qualifiers
(we shouldn't strip a volatile qualifier from rvalues, too, f.i., but stripping
a const qualifier from an rvalue is probably ok).
I know too little about all this to fix it myself, using f.i.
tree_ssa_useless_type_conversion will again cause const being stripped.
Patch reverted from 4.0 branch.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21538