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: unassig...@gcc.gnu.org
ReportedBy: gon...@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).