This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[fortran, patch] pr31760, missing elemental applicability
- From: Daniel Franke <franke dot daniel at gmail dot com>
- To: fortran at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- Date: Sun, 29 Apr 2007 23:44:34 +0200
- Subject: [fortran, patch] pr31760, missing elemental applicability
: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