This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [gfortran] Compute x**(-n) as (1/x)**n


Toon Moene wrote:
The following change, which I bootstrapped on powerpc-unknown-linux-gnu (C and f95) without regressions, leads the Fortran front-end to generate expressions x**(-n) with n constant as if they were written (1/x)**n.

Does this deal correctly with integer x? I remember there were some special cases somewhere.

- Tobi


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]