[Bug rtl-optimization/16613] [3.4 Regression] compile time regression, when adding cerr usage

andre dot maute at gmx dot de gcc-bugzilla@gcc.gnu.org
Fri Dec 10 22:36:00 GMT 2004


------- Additional Comments From andre dot maute at gmx dot de  2004-12-10 22:36 -------
I don't think the compile time regression is solved in the actual g++-4.0. 
I made some run time measurements with the attached file compiletimetest2.cc 
on a PIII 550. The __DEBUG__ tests only enable <iostream> and some cerr lines. 
 
> g++ -v 
Reading specs from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.1/specs 
Configured with: ../gcc-3.2.1/configure --prefix=/usr --enable-shared 
--enable-languages=c,c++ --enable-threads=posix --with-slibdir=/lib 
--enable-__cxa_atexit--enable-clocale=gnu 
Thread model: posix 
gcc version 3.2.1 
 
> g++-3.3.5 -v 
Reading specs from /opt/gcc-3.3.5/lib/gcc-lib/i686-pc-linux-gnu/3.3.5/specs 
Configured with: ../gcc-3.3.5/configure --prefix=/opt/gcc-3.3.5 
--enable-shared--enable-languages=c,c++ --enable-threads=posix 
--enable-__cxa_atexit --enable-clocale=gnu --program-suffix=-3.3.5 
--with-cpu=pentium3 
Thread model: posix 
gcc version 3.3.5 
 
> g++-3.4.3 -v 
Reading specs from /opt/gcc-3.4.3/lib/gcc/i686-pc-linux-gnu/3.4.3/specs 
Configured with: ../gcc-3.4.3/configure --prefix=/opt/gcc-3.4.3 
--enable-shared--enable-languages=c,c++ --enable-threads=posix 
--enable-__cxa_atexit --enable-clocale=gnu --program-suffix=-3.4.3 
--with-arch=pentium3 
Thread model: posix 
gcc version 3.4.3 
 
g++-4.0-20041205 -v 
Reading specs from /opt/gcc-4.0-20041205/lib/gcc/i686-pc-linux-gnu/4.0.0/specs 
Configured with: ../gcc-4.0-20041205/configure --prefix=/opt/gcc-4.0-20041205 
--enable-shared --enable-languages=c,c++ --enable-threads=posix 
--enable-__cxa_atexit --enable-clocale=gnu --disable-nls 
--program-suffix=-4.0-20041205 --with-arch=pentium3 
Thread model: posix 
gcc version 4.0.0 20041205 (experimental) 
 
 
> time g++ -c -O3 -D __NDEBUG__ compiletimetest2.cc 
real     0m9.957s    user     0m9.910s    sys      0m0.090s 
 
> time g++ -c -O3 -D __DEBUG__ compiletimetest2.cc 
real    0m13.544s    user    0m13.270s    sys      0m0.170s 
 
> time g++-3.3.5 -c -O3 -D __NDEBUG__ compiletimetest2.cc 
real     0m9.881s    user     0m9.740s    sys      0m0.130s 
 
> time g++-3.3.5 -c -O3 -D __NDEBUG__ compiletimetest2.cc 
real     0m9.881s    user     0m9.740s    sys      0m0.130s  
 
> time g++-3.4.3 -c -O3 -D __NDEBUG__ compiletimetest2.cc 
real    0m18.614s    user    0m18.240s    sys      0m0.310s 
 
> time g++-3.4.3 -c -O3 -D __DEBUG__ compiletimetest2.cc 
real    0m21.563s    user    0m21.050s    sys      0m0.510s 
 
> time g++-4.0-20041205 -c -O3 -D __NDEBUG__ compiletimetest2.cc 
real    0m24.983s    user    0m24.740s    sys      0m0.160s 
 
> time g++-4.0-20041205 -c -O3 -D __DEBUG__ compiletimetest2.cc 
real    0m31.269s    user    0m30.230s    sys     0m0.240s 
 
 
Regards Andre 

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16613



More information about the Gcc-bugs mailing list