[fortran, patch] pr31760, missing elemental applicability
Daniel Franke
franke.daniel@gmail.com
Sun Apr 29 23:55:00 GMT 2007
:ADDPATCH fortran:
Although marked and documented as ELEMENTAL, BESXY and ERF functions could not
be used with arrays as arguments.
This patch fixes this by simply removing the scalar_check in the appropiate
check-function. Due to this, gfc_check_g77_math1() became obsolete as the
remaining type check for REAL is also implemented by gfc_check_fn_r().
2007-04-29 Daniel Franke <franke.daniel@gmail.com>
PR fortran/31760
* intrinsic.c (add_functions): Replaced calls to gfc_check_g77_math1
by gfc_check_fn_r to avoid checks for scalarity.
* check.c (gfc_check_besn): Removed check for scalarity.
(gfc_check_g77_math1): Removed.
* intrinsic.h (gfc_check_g77_math1): Removed.
Ok for mainline once regtesting on i686-pc-linux-gnu finishes without
regressions?
Daniel
More information about the Gcc-patches
mailing list