This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: optimization/2938: [Regression vs 2.95] Optimization with -O1causes near infinite time



> 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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]