This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/52138] New: Operations on complex values are not inlined, even with -O3
- From: "gonnet at maths dot ox.ac.uk" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 06 Feb 2012 18:20:32 +0000
- Subject: [Bug c/52138] New: Operations on complex values are not inlined, even with -O3
- Auto-submitted: auto-generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52138
Bug #: 52138
Summary: Operations on complex values are not inlined, even
with -O3
Classification: Unclassified
Product: gcc
Version: 4.5.2
Status: UNCONFIRMED
Severity: major
Priority: P3
Component: c
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: gonnet@maths.ox.ac.uk
Irrespective of the optimization level selected, multiplying or dividing two
complex doubles generates a call to __muldc3 or __divdc3 respectively.
Using the "-fcx-limited-range" flag inlines the operations, but then the range
may be limited.
Strangely enough, in the gfortran frontend, complex arithmetic is inlined even
with no optimization (-O0).