From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wolfgang Bangerth To: mmitchel@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org Subject: Re: optimization/2938: [Regression vs 2.95] Optimization with -O1causes near infinite time Date: Mon, 25 Jun 2001 06:16:00 -0000 Message-id: <20010625131601.21494.qmail@sourceware.cygnus.com> X-SW-Source: 2001-06/msg01040.html List-Id: The following reply was made to PR optimization/2938; it has been noted by GNATS. From: Wolfgang Bangerth To: mmitchel@gcc.gnu.org Cc: gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org Subject: Re: optimization/2938: [Regression vs 2.95] Optimization with -O1 causes near infinite time Date: Mon, 25 Jun 2001 14:59:57 +0200 (MET DST) > 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