2010-11-09 Jerry DeLisle <jvdelisle@gcc.gnu.org>
commitb9973141d81fea74a52c4ba9cbbcdac33879f269
authorjvdelisle <jvdelisle@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 10 Nov 2010 04:58:16 +0000 (10 04:58 +0000)
committerjvdelisle <jvdelisle@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 10 Nov 2010 04:58:16 +0000 (10 04:58 +0000)
tree458b3e129494260814423b1b3a4a1eea07056ac5
parent77580f206811d903762f23f278bc12896ec6d653
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@166520 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/fortran/ChangeLog
gcc/fortran/expr.c
gcc/fortran/intrinsic.c