This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug rtl-optimization/42621] [4.4/4.5 Regression] Computed gotos on AMD 800% slower
- From: "fredrik dot svahn at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 6 Jan 2010 11:36:56 -0000
- Subject: [Bug rtl-optimization/42621] [4.4/4.5 Regression] Computed gotos on AMD 800% slower
- References: <bug-42621-18630@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #5 from fredrik dot svahn at gmail dot com 2010-01-06 11:36 -------
Thanks for the quick patch!
Unfortunately it only works for me with option "-march=athlon64"? Is this
intentional ("-march" is not needed for gcc-4.3)?
Am I doing something wrong?
$ gcc-4.3 -v && /opt/gcc/bin/gcc-4.4.2-new -v
Using built-in specs.
Target: x86_64-unknown-linux-gnu
Configured with: ../configure --prefix=/usr --enable-shared
--enable-languages=c,c++ --enable-threads=posix --mandir=/usr/share/man
--infodir=/usr/share/info --enable-__cxa_atexit --disable-multilib
--libdir=/usr/lib --libexecdir=/usr/lib --enable-clocale=gnu
--disable-libstdcxx-pch --with-tune=generic --disable-werror
--enable-checking=release --program-suffix=-4.3
--enable-version-specific-runtime-libs
Thread model: posix
gcc version 4.3.3 (GCC)
Using built-in specs.
Target: x86_64-unknown-linux-gnu
Configured with: ../gcc-4.4.2/configure --prefix=/opt/gcc --enable-shared
--enable-languages=c,c++ --enable-threads=posix --mandir=/usr/share/man
--infodir=/usr/share/info --enable-__cxa_atexit --disable-multilib
--libdir=/usr/lib --libexecdir=/usr/lib --enable-clocale=gnu
--disable-libstdcxx-pch --with-tune=generic --disable-werror
--enable-checking=release --program-suffix=-4.4.2-new
--enable-version-specific-runtime-libs
Thread model: posix
gcc version 4.4.2 (GCC)
$ gcc-4.3 -g -O3 test.c -o testp.4.3 && /opt/gcc/bin/gcc-4.4.2-new -g -Wall
-O3 test.c -o testp.4.4.2
$ time ./testp.4.3 && time ./testp.4.4.2
real 0m0.889s
user 0m0.880s
sys 0m0.000s
real 0m4.043s
user 0m4.036s
sys 0m0.003s
$ gcc-4.3 -g -O3 test.c -o testp.4.3 && /opt/gcc/bin/gcc-4.4.2-new -g -Wall
-march=athlon64 -O3 test.c -o testp.4.4.2
$ time ./testp.4.3 && time ./testp.4.4.2
real 0m0.888s
user 0m0.880s
sys 0m0.000s
real 0m0.638s
user 0m0.627s
sys 0m0.003s
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42621