OSDN Git Service

2008-01-17 H.J. Lu <hongjiu.lu@intel.com>
[pf3gnuchains/gcc-fork.git] / gcc / fortran / ChangeLog
index 5f94e76..ad0ffcc 100644 (file)
@@ -1,3 +1,86 @@
+2008-01-17  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR fortran/33375
+       * symbol.c (free_common_tree): Renamed to ...
+       (gfc_free_common_tree): This.  Remove static.
+       (gfc_free_namespace): Updated.
+
+       * gfortran.h (gfc_free_common_tree): New.
+
+       * match.c (gfc_match_common): Call gfc_free_common_tree () with
+       gfc_current_ns->common_root and set gfc_current_ns->common_root
+       to NULL on syntax error.
+
+2008-01-18  Richard Sandiford  <rsandifo@nildram.co.uk>
+
+       PR fortran/34686
+       * trans-expr.c (gfc_conv_function_call): Use proper
+       type for returned character pointers.
+
+2008-01-17  Paul Thomas  <pault@gcc.gnu.org>
+
+       PR fortran/34429
+       PR fortran/34431
+       PR fortran/34471
+       * decl.c : Remove gfc_function_kind_locus and
+       gfc_function_type_locus. Add gfc_matching_function.
+       (match_char_length): If matching a function and the length
+       does not match, return MATCH_YES and try again later.
+       (gfc_match_kind_spec): The same.
+       (match_char_kind): The same.
+       (gfc_match_type_spec): The same for numeric and derived types.
+       (match_prefix): Rename as gfc_match_prefix.
+       (gfc_match_function_decl): Except for function valued character
+       lengths, defer applying kind, type and charlen info until the
+       end of specification block.
+       gfortran.h (gfc_statement): Add ST_GET_FCN_CHARACTERISTICS.
+       parse.c (decode_specification_statement): New function.
+       (decode_statement): Call it when a function has kind = -1. Set
+       and reset gfc_matching function, as function statement is being
+       matched.
+       (match_deferred_characteristics): Simplify with a single call
+       to gfc_match_prefix. Do appropriate error handling. In any
+       case, make sure that kind = -1 is reset or corrected.
+       (parse_spec): Call above on seeing ST_GET_FCN_CHARACTERISTICS.
+       Throw an error if kind = -1 after last specification statement.
+       parse.h : Prototype for gfc_match_prefix.
+
+2008-01-16  Tobias Burnus  <burnus@net-b.de>
+
+       PR fortran/34796
+       * interface.c (compare_parameter): Allow AS_DEFERRED array
+       elements and reject attr.pointer array elemenents.
+       (get_expr_storage_size): Return storage size of elements of
+       assumed-shape and pointer arrays.
+
+2008-01-15  Sebastian Pop  <sebastian.pop@amd.com>
+
+       * f95-lang.c (gfc_init_builtin_functions): Initialize GOMP builtins
+       for flag_tree_parallelize_loops.
+
+2008-01-15  Thomas Koenig  <tkoenig@gcc.gnu.org>
+
+       PR libfortran/34671
+       * iresolve.c (gfc_resolve_all):  Call resolve_mask_arg.
+       (gfc_resolve_any):  Likewise.
+       (gfc_resolve_count):  Likewise.  Don't append kind of
+       argument to function name.
+
+2008-01-13  Tobias Burnus  <burnus@net-b.de>
+
+       PR fortran/34665
+       * resolve.c (resolve_actual_arglist): For expressions,
+       also check for assume-sized arrays.
+       * interface.c (compare_parameter): Move F2003 character checks
+       here, print error messages here, reject elements of
+       assumed-shape array as argument to dummy arrays.
+       (compare_actual_formal): Update for the changes above.
+
+2008-01-13  Tobias Burnus  <burnus@net-b.de>
+
+       PR fortran/34763
+       * decl.c (contained_procedure): Only check directly preceeding state.
+
 2008-01-13  Tobias Burnus  <burnus@net-b.de>
 
        PR fortran/34759