This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/49485] New: Performance problem with C++ code
- From: "ismail at namtrac dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 21 Jun 2011 12:37:13 +0000
- Subject: [Bug c++/49485] New: Performance problem with C++ code
- Auto-submitted: auto-generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49485
Summary: Performance problem with C++ code
Product: gcc
Version: 4.6.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: ismail@namtrac.org
Created attachment 24570
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=24570
Testcase
Attached testcase when compiled with gcc 4.3.4;
> g++ -O3 -ffast-math -o reduced_dlasr_gcc43 reduced_dlasr.cpp
> time ./reduced_dlasr_gcc43
./reduced_dlasr_gcc43 0.15s user 0.00s system 94% cpu 0.168 total
When compiled with gcc 4.6;
> g++ -O3 -ffast-math -o reduced_dlasr_gcc46 reduced_dlasr.cpp
> time ./reduced_dlasr_gcc46
./reduced_dlasr_gcc46 0.20s user 0.00s system 99% cpu 0.209 total
gcc versions:
gcc version 4.3.4 [gcc-4_3-branch revision 152973] (SUSE Linux)
gcc version 4.6.0 20110607 [gcc-4_6-branch revision 174741] (SUSE Linux)