[Bug c/52138] New: Operations on complex values are not inlined, even with -O3

2012-02-06 Thread gonnet at maths dot ox.ac.uk
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).


[Bug c/52138] Operations on complex values are not inlined, even with -O3

2012-02-06 Thread gonnet at maths dot ox.ac.uk
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52138

--- Comment #2 from Pedro  2012-02-06 18:33:11 
UTC ---
I'm a bit confused... In the gfortran output the multiplication only about 40
bytes. Does that mean that gfortran is using a reduced range by default?