re PR fortran/38823 (Diagnose and treat (-2.0)**2.0 properly)
2009-03-29 Steven G. Kargl <kargl@gcc.gnu.org> PR fortran/38823 * gfortran.dg/power1.f90: New test. 2009-03-29 Steven G. Kargl <kargl@gcc.gnu.org> PR fortran/38823 * gfortran.h: Add ARITH_PROHIBIT to arith enum. expr.c (gfc_match_init_expr): Add global variable init_flag to flag matching an initialization expression. (check_intrinsic_op): Move no longer reachable error message to ... * arith.c (arith_power): ... here. Remove gfc_ prefix in gfc_arith_power. Use init_flag. Allow constant folding of x**y when y is REAL or COMPLEX. (eval_intrinsic): Remove restriction that y in x**y must be INTEGER for constant folding. * gfc_power: Update gfc_arith_power to arith_power From-SVN: r145261
Showing
- gcc/fortran/ChangeLog 14 additions, 0 deletionsgcc/fortran/ChangeLog
- gcc/fortran/arith.c 184 additions, 101 deletionsgcc/fortran/arith.c
- gcc/fortran/expr.c 13 additions, 12 deletionsgcc/fortran/expr.c
- gcc/fortran/gfortran.h 1 addition, 1 deletiongcc/fortran/gfortran.h
- gcc/testsuite/ChangeLog 5 additions, 0 deletionsgcc/testsuite/ChangeLog
- gcc/testsuite/gfortran.dg/power1.f90 58 additions, 0 deletionsgcc/testsuite/gfortran.dg/power1.f90
Loading
Please register or sign in to comment