This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/52138] Operations on complex values are not inlined, even with -O3
- From: "kargl at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 06 Feb 2012 18:50:41 +0000
- Subject: [Bug c/52138] Operations on complex values are not inlined, even with -O3
- Auto-submitted: auto-generated
- References: <bug-52138-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52138
kargl at gcc dot gnu.org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |kargl at gcc dot gnu.org
--- Comment #3 from kargl at gcc dot gnu.org 2012-02-06 18:50:41 UTC ---
(In reply to comment #2)
> 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?
>From gcc/toplev.c
/* With -fcx-limited-range, we do cheap and quick complex arithmetic. */
if (flag_cx_limited_range)
flag_complex_method = 0;
/* With -fcx-fortran-rules, we do something in-between cheap and C99. */
if (flag_cx_fortran_rules)
flag_complex_method = 1;
So, yes, gfortran does something different than gcc.