1 2008-01-22 Tobias Burnus <burnus@net-b.de>
4 * scanner.c (load_line): Support <tab><digit> continuation lines.
5 * invoke.texi (-Wtabs): Document this.
7 2008-01-22 Paul Thomas <pault@gcc.gnu.org>
10 * module.c (read_module): Set use_rename attribute.
12 2007-01-21 Tobias Burnus <burnus@net-b.de>
15 * interface.c (compare_parameter): Improved error message
16 for arguments of same type and mismatched kinds.
18 2008-01-20 Paul Thomas <pault@gcc.gnu.org>
21 * resolve.c (resolve_entries): Do not do an array bounds check
22 if the result symbols are the same.
25 * module.c (read_module) : Hide the symtree of the previous
26 version of the symbol if this symbol is renamed.
28 2008-01-20 Paul Thomas <pault@gcc.gnu.org>
31 * array.c (gfc_check_constructor_type): Clear the expression ts
32 so that the checking starts from the deepest level of array
34 * primary.c (match_varspec): If an unknown type is changed to
35 default character and the attempt to match a substring fails,
36 change it back to unknown.
39 * trans-array.c (gfc_add_loop_ss_code) : If ss->string_length is
40 NULL for an array constructor, use the cl.length expression to
42 (gfc_conv_array_parameter): Change call to gfc_evaluate_now to
45 2008-01-19 Thomas Koenig <tkoenig@gcc.gnu.org>
49 * iresolve.c (gfc_resolve_all): Remove conversion of mask
50 argument to kind=1 by removing call to resolve_mask_arg().
51 (gfc_resolve_any): Likewise.
53 2008-01-19 Tobias Burnus <burnus@net-b.de>
56 * primary.c (match_variable): Handle FL_UNKNOWN without
58 (match_variable): Improve error message.
60 2008-01-18 Tobias Burnus <burnus@net-b.de>
63 * interface.c (get_expr_storage_size): Return storage size
64 for array element designators.
65 (compare_actual_formal): Reject unequal string sizes for
66 assumed-shape dummy arguments. And fix error message for
67 array-sections with vector subscripts.
69 2008-01-17 Jerry DeLisle <jvdelisle@gcc.gnu.org>
72 * simplify.c (is_constant_array_expr): New static function that returns
73 true if the given expression is an array and is constant.
74 (gfc_simplify_reshape): Use new function.
76 2008-01-17 H.J. Lu <hongjiu.lu@intel.com>
79 * symbol.c (free_common_tree): Renamed to ...
80 (gfc_free_common_tree): This. Remove static.
81 (gfc_free_namespace): Updated.
83 * gfortran.h (gfc_free_common_tree): New.
85 * match.c (gfc_match_common): Call gfc_free_common_tree () with
86 gfc_current_ns->common_root and set gfc_current_ns->common_root
87 to NULL on syntax error.
89 2008-01-18 Richard Sandiford <rsandifo@nildram.co.uk>
92 * trans-expr.c (gfc_conv_function_call): Use proper
93 type for returned character pointers.
95 2008-01-17 Paul Thomas <pault@gcc.gnu.org>
100 * decl.c : Remove gfc_function_kind_locus and
101 gfc_function_type_locus. Add gfc_matching_function.
102 (match_char_length): If matching a function and the length
103 does not match, return MATCH_YES and try again later.
104 (gfc_match_kind_spec): The same.
105 (match_char_kind): The same.
106 (gfc_match_type_spec): The same for numeric and derived types.
107 (match_prefix): Rename as gfc_match_prefix.
108 (gfc_match_function_decl): Except for function valued character
109 lengths, defer applying kind, type and charlen info until the
110 end of specification block.
111 gfortran.h (gfc_statement): Add ST_GET_FCN_CHARACTERISTICS.
112 parse.c (decode_specification_statement): New function.
113 (decode_statement): Call it when a function has kind = -1. Set
114 and reset gfc_matching function, as function statement is being
116 (match_deferred_characteristics): Simplify with a single call
117 to gfc_match_prefix. Do appropriate error handling. In any
118 case, make sure that kind = -1 is reset or corrected.
119 (parse_spec): Call above on seeing ST_GET_FCN_CHARACTERISTICS.
120 Throw an error if kind = -1 after last specification statement.
121 parse.h : Prototype for gfc_match_prefix.
123 2008-01-16 Tobias Burnus <burnus@net-b.de>
126 * interface.c (compare_parameter): Allow AS_DEFERRED array
127 elements and reject attr.pointer array elemenents.
128 (get_expr_storage_size): Return storage size of elements of
129 assumed-shape and pointer arrays.
131 2008-01-15 Sebastian Pop <sebastian.pop@amd.com>
133 * f95-lang.c (gfc_init_builtin_functions): Initialize GOMP builtins
134 for flag_tree_parallelize_loops.
136 2008-01-15 Thomas Koenig <tkoenig@gcc.gnu.org>
139 * iresolve.c (gfc_resolve_all): Call resolve_mask_arg.
140 (gfc_resolve_any): Likewise.
141 (gfc_resolve_count): Likewise. Don't append kind of
142 argument to function name.
144 2008-01-13 Tobias Burnus <burnus@net-b.de>
147 * resolve.c (resolve_actual_arglist): For expressions,
148 also check for assume-sized arrays.
149 * interface.c (compare_parameter): Move F2003 character checks
150 here, print error messages here, reject elements of
151 assumed-shape array as argument to dummy arrays.
152 (compare_actual_formal): Update for the changes above.
154 2008-01-13 Tobias Burnus <burnus@net-b.de>
157 * decl.c (contained_procedure): Only check directly preceeding state.
159 2008-01-13 Tobias Burnus <burnus@net-b.de>
162 * check.c (gfc_check_shape): Accept array ranges of
165 2008-01-12 Jerry DeLisle <jvdelisle@gcc.gnu.org>
168 * match.c (gfc_match_name): Don't error if leading character is a '(',
169 just return MATCH_NO.
171 2008-01-11 Jerry DeLisle <jvdelisle@gcc.gnu.org>
174 * trans-io.c (create_dummy_iostat): Commit the symbol.
176 2008-01-11 Paul Thomas <pault@gcc.gnu.org>
179 * simplify.c (gfc_simplify_transfer): Return NULL if the size
180 of the element is unavailable and only assign character length
181 to the result, if 'mold' is constant.
183 2008-01-10 Paul Thomas <pault@gcc.gnu.org>
186 * trans-array.c (gfc_trans_array_ctor_element): Use gfc_trans_string_copy
187 to assign strings and perform bounds checks on the string length.
188 (get_array_ctor_strlen): Remove bounds checking.
189 (gfc_trans_array_constructor): Initialize string length checking.
190 * trans-array.h : Add prototype for gfc_trans_string_copy.
192 2008-01-08 Richard Guenther <rguenther@suse.de>
195 PR tree-optimization/34683
196 * trans-types.c (gfc_get_array_type_bounds): Use an array type
197 with known size for accesses if that is known.
199 2008-01-08 Paul Thomas <pault@gcc.gnu.org>
202 * expr.c (find_array_element): Check that the array bounds are
203 constant before using them. Use lower, as well as upper bound.
204 (check_restricted): Allow implied index variable.
206 2008-01-08 Paul Thomas <pault@gcc.gnu.org>
209 * trans_array.c (gfc_trans_deferred_array): Do not null the
210 data pointer on entering scope, nor deallocate it on leaving
211 scope, if the symbol has the 'save' attribute.
214 * trans_decl.c (gfc_finish_var_decl): Derived types with
215 allocatable components and an initializer must be TREE_STATIC.
217 2008-01-07 Paul Thomas <pault@gcc.gnu.org>
220 * module.c (write_generic): Rewrite completely.
221 (write_module): Change call to write_generic.
223 2008-01-06 Jerry DeLisle <jvdelisle@gcc.gnu.org>
226 * scanner.c (load_line): Do not count ' ' as printable when checking for
229 2008-01-06 Paul Thomas <pault@gcc.gnu.org>
232 * module.c (load_needed): If the namespace has no proc_name
233 give it the module symbol.
235 2008-01-06 Jerry DeLisle <jvdelisle@gcc.gnu.org>
238 * trans-expr.c (gfc_conv_missing_dummy): Use a temporary to type convert
239 the dummy variable expression, test for NULL, and pass the variable
240 address to the called function.
242 2007-01-06 Tobias Burnus <burnus@net-b.de>
245 * match.c (gfc_match_common): Remove blank common in
247 * resolve.c (resolve_common_vars): New function.
248 (resolve_common_blocks): Move checks to resolve_common_vars
249 and invoke that function.
250 (resolve_types): Call resolve_common_vars for blank commons.
252 2008-01-06 Tobias Burnus <burnus@net-b.de>
255 * resolve.c (resolve_equivalence_derived): Reject derived types with
256 default initialization if equivalenced with COMMON variable.
258 2008-01-06 Tobias Burnus <burnus@net-b.de>
261 * io.c (check_io_constraints): Disallow unformatted I/O for
264 2008-01-06 Tobias Burnus <burnus@net-b.de>
267 * resolve.c (resolve_formal_arglist): Reject dummy procedure in
270 2008-01-06 Tobias Burnus <burnus@net-b.de>
273 * interface.c (compare_actual_formal): Reject parameter
274 actual to intent(out) dummy.
276 2008-01-04 Tobias Burnus <burnus@net-b.de>
279 * primary.c (match_varspec): Gobble whitespace before