This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: optimization/2938: [Regression vs 2.95] Optimization with -O1causes near infinite time
- To: mmitchel at gcc dot gnu dot org
- Subject: Re: optimization/2938: [Regression vs 2.95] Optimization with -O1causes near infinite time
- From: Wolfgang Bangerth <wolfgang dot bangerth at iwr dot uni-heidelberg dot de>
- Date: Mon, 25 Jun 2001 14:59:57 +0200 (MET DST)
- cc: gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org
> State-Changed-From-To: analyzed->closed
> Fixed.
Dear Mark,
thanks for looking into it. However, in the 3.0 release your fix seems to
not be working: for c++615, which is kind of a small form of
optimization/2938, I still get 1009 calls to Point::operator() (which is,
as you said, not only a problem of optimization, but also a correctness
issue as the operator is not marked constant). This is both on Sun
Solaris2.7 and Linux.
Optimization/2938 still takes infintely long. I double checked, but my
gcc3 sources have your patch to the problem incorporated. Do you know what
is going on?
Regards
Wolfgang
var/gcc-bugs> c++ -v
Reading specs from
/home/people/wolf/Config/gcc-ss-sun/lib/gcc-lib/sparc-sun-solaris2.7/3.0/specs
Configured with: ../gcc-3.0/configure
--prefix=/home/people/wolf/Config/gcc-ss-sun --with-gnu-as
--with-as=/usr/local/bin/as --with-gnu-ld --with-ld=/usr/local/bin/ld
Thread model: posix
gcc version 3.0
var/gcc-bugs> c++ -O1 -S 0615+.cc
var/gcc-bugs> cat 0615+.s | c++filt | grep operator | uniq
call Point::operator()(unsigned), 0
var/gcc-bugs> cat 0615+.s | c++filt | grep operator | wc -l
1009
-------------------------------------------------------------------------
Wolfgang Bangerth email: wolfgang.bangerth@iwr.uni-heidelberg.de
www: http://gaia.iwr.uni-heidelberg.de/~wolf