------- Additional Comments From andre dot maute at gmx dot de 2005-05-01
23:42 -------
i have run my compile time test again,
here are the timings and something has gone worse after 2005/03/26
> g++-4.0-20050326 -v
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: ../gcc-4.0-20050326/configure --prefix=/opt/gcc-4.0-20050326
--program-suffix=-4.0-20050326 --enable-shared --enable-languages=c,c++
--enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu
--disable-nls --disable-checking --with-arch=pentium3
Thread model: posix
gcc version 4.0.0 20050326 (prerelease)
> g++-4.0-20050409 -v
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: ../gcc-4.0-20050409/configure --prefix=/opt/gcc-4.0-20050409
--program-suffix=-4.0-20050409 --enable-shared --enable-languages=c,c++
--enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu
--disable-nls --disable-checking --with-arch=pentium3
Thread model: posix
gcc version 4.0.0 20050409 (prerelease)
> g++-4.0-20050430 -v
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: ../gcc-4.0-20050430/configure --prefix=/opt/gcc-4.0-20050430
--program-suffix=-4.0-20050430 --enable-shared --enable-languages=c,c++
--enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu
--disable-nls --disable-checking --with-arch=pentium3
Thread model: posix
gcc version 4.0.1 20050430 (prerelease)
> time g++-4.0-20050326 -c -O3 -D __NDEBUG__ compiletimetest2.cc
real 0m16.128s user 0m15.775s sys 0m0.282s
> time g++-4.0-20050326 -c -O3 -D __DEBUG__ compiletimetest2.cc
real 0m18.842s user 0m18.326s sys 0m0.488s
> time g++-4.0-20050409 -c -O3 -D __NDEBUG__ compiletimetest2.cc
real 0m52.158s user 0m51.030s sys 0m1.012s
> time g++-4.0-20050409 -c -O3 -D __DEBUG__ compiletimetest2.cc
real 0m55.566s user 0m54.460s sys 0m0.996s
> time g++-4.0-20050430 -c -O3 -D __NDEBUG__ compiletimetest2.cc
real 0m52.450s user 0m51.277s sys 0m0.982s
> time g++-4.0-20050430 -c -O3 -D __DEBUG__ compiletimetest2.cc
real 0m55.270s user 0m54.364s sys 0m0.906s
the assemply file generated with g++-4.0-20050409 is twice as large than that
generated with g++-4.0-20050326 using the option "-save-temps"
> g++-4.0-20050326 -c -O3 -D __NDEBUG__ compiletimetest2.cc -save-temps
> ls -al compiletimetest2.cc
-rw-r--r-- 1 login500 users 621326 May 2 01:36 compiletimetest2.s
> g++-4.0-20050409 -c -O3 -D __NDEBUG__ compiletimetest2.cc -save-temps
> ls -al compiletimetest2.cc
-rw-r--r-- 1 login500 users 1186872 May 2 01:34 compiletimetest2.s
> g++-4.0-20050430 -c -O3 -D __NDEBUG__ compiletimetest2.cc -save-temps
> ls -al compiletimetest2.cc
-rw-r--r-- 1 login500 users 1186872 May 2 01:37 compiletimetest2.s
using -ftime-reports reveals only that nearly every optimization pass has gone
worse.
Regards Andre
--
What |Removed |Added
----------------------------------------------------------------------------
Summary|[3.4 Regression] compile |[3.4/4.0 Regression] compile
|time regression, when adding|time regression, when adding
|cerr usage |cerr usage
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16613