re PR fortran/46331 (Compilation time long with simple function in array constructor)
authorJerry DeLisle <jvdelisle@gcc.gnu.org>
Wed, 10 Nov 2010 04:58:16 +0000 (04:58 +0000)
committerJerry DeLisle <jvdelisle@gcc.gnu.org>
Wed, 10 Nov 2010 04:58:16 +0000 (04:58 +0000)
commit83f3bd62c9329ec4e3439ff4b0a3175863ba12df
tree458b3e129494260814423b1b3a4a1eea07056ac5
parente65f1db78c2bba088536e57bae37e18deb3ccfad
re PR fortran/46331 (Compilation time long with simple function in array constructor)

2010-11-09  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
    Mikael Morin   <mikael@gcc.gnu.org>

PR fortran/46331
* intrinsic.c: Correctly set the pure attributes for intrinsic
functions.
* expr.c (check_specification_function): Remove this function and move
its code into gfc_is_constant_expr. (gfc_is_constant_expr): Change the
order of checks by checking for non-constant arguments first.  Then,
check for initialization functions, followed by intrinsics.

Co-Authored-By: Mikael Morin <mikael@gcc.gnu.org>
From-SVN: r166520
gcc/fortran/ChangeLog
gcc/fortran/expr.c
gcc/fortran/intrinsic.c