]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/fortran/ChangeLog
libgomp.texi (omp_test_lock): Fix typo.
[thirdparty/gcc.git] / gcc / fortran / ChangeLog
1 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2
3 * gfc-internals.texi: Expand TABs, drop indentation outside examples.
4 * gfortran.texi: Likewise.
5 * intrinsic.texi: Likewise.
6 * invoke.texi: Likewise.
7
8 2008-06-13 Jerry DeLisle <jvdelisle@gcc.gnu.org>
9
10 PR fortran/35863
11 * trans-io.c (gfc_build_io_library_fndecls): Build declaration for
12 transfer_character_wide which includes passing in the character kind to
13 support wide character IO. (transfer_expr): If the kind == 4, create the
14 argument and build the call.
15 * gfortran.texi: Fix typo.
16
17 2008-06-13 Tobias Burnus <burnus@net-b.de>
18
19 PR fortran/36476
20 * decl.c (do_parm): Handle init expression for len=*.
21
22 2008-06-12 Tobias Burnus <burnus@net-b.de>
23
24 PR fortran/36462
25 * trans-intrinsic.c (gfc_conv_intrinsic_index_scan_verify):
26 Fix passing of the BACK= argument.
27
28 2008-06-10 Jerry DeLisle <jvdelisle@gcc.gnu.org>
29
30 * cpp.c: Add copyright notice.
31 * cpp.h: Add copyright notice.
32
33 2008-06-08 Janus Weil <janus@gcc.gnu.org>
34
35 PR fortran/36459
36 * decl.c (match_procedure_decl): Correctly recognize if the interface
37 is an intrinsic procedure.
38
39 2008-06-08 Tobias Burnus <burnus@net-b.de>
40
41 PR fortran/35830
42 * resolve.c (resolve_symbol): Copy more attributes for
43 PROCEDUREs with interfaces.
44
45 2008-06-07 Jerry DeLisle <jvdelisle@gcc.gnu.org>
46
47 PR fortran/36420
48 PR fortran/36422
49 * io.c (check_format): Add new error message for zero width.
50 Use new error message for FMT_A and with READ, FMT_G. Allow
51 FMT_G with WRITE except when -std=F95 and -std=F2003.
52
53 2008-06-07 Tobias Burnus <burnus@net-b.de>
54
55 PR fortran/36437
56 * intrinsic.c (add_functions): Implement c_sizeof.
57 * trans-intrinsic.c (gfc_conv_intrinsic_sizeof): Do not
58 create unneeded variable in the scalar case.
59 * intrinsic.texi: Add C_SIZEOF documentation.
60
61 2008-06-06 Tobias Burnus <burnus@net-b.de>
62
63 * intrinsic.texi (BESSEL_J1): Fix BES(S)EL_J1 typo.
64
65 2008-06-06 Jakub Jelinek <jakub@redhat.com>
66
67 * scanner.c (skip_free_comments, skip_fixed_comments): Handle tabs.
68 * parse.c (next_free): Allow tab after !$omp.
69 (decode_omp_directive): Handle !$omp task, !$omp taskwait
70 and !$omp end task.
71 (case_executable): Add ST_OMP_TASKWAIT.
72 (case_exec_markers): Add ST_OMP_TASK.
73 (gfc_ascii_statement): Handle ST_OMP_TASK, ST_OMP_END_TASK and
74 ST_OMP_TASKWAIT.
75 (parse_omp_structured_block, parse_executable): Handle ST_OMP_TASK.
76 * gfortran.h (gfc_find_sym_in_expr): New prototype.
77 (gfc_statement): Add ST_OMP_TASK, ST_OMP_END_TASK and ST_OMP_TASKWAIT.
78 (gfc_omp_clauses): Add OMP_SCHED_AUTO to sched_kind,
79 OMP_DEFAULT_FIRSTPRIVATE to default_sharing. Add collapse and
80 untied fields.
81 (gfc_exec_op): Add EXEC_OMP_TASK and EXEC_OMP_TASKWAIT.
82 * f95-lang.c (LANG_HOOKS_OMP_CLAUSE_COPY_CTOR,
83 LANG_HOOKS_OMP_CLAUSE_ASSIGN_OP, LANG_HOOKS_OMP_CLAUSE_DTOR,
84 LANG_HOOKS_OMP_PRIVATE_OUTER_REF): Define.
85 * trans.h (gfc_omp_clause_default_ctor): Add another argument.
86 (gfc_omp_clause_copy_ctor, gfc_omp_clause_assign_op,
87 gfc_omp_clause_dtor, gfc_omp_private_outer_ref): New prototypes.
88 * types.def (BT_ULONGLONG, BT_PTR_ULONGLONG,
89 BT_FN_BOOL_ULONGLONGPTR_ULONGLONGPTR,
90 BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULLPTR_ULLPTR,
91 BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULL_ULLPTR_ULLPTR,
92 BT_FN_VOID_PTR_PTR, BT_PTR_FN_VOID_PTR_PTR,
93 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT): New.
94 (BT_BOOL): Use integer type with BOOL_TYPE_SIZE rather
95 than boolean_type_node.
96 * dump-parse-tree.c (gfc_show_omp_node): Handle EXEC_OMP_TASK,
97 EXEC_OMP_TASKWAIT, OMP_SCHED_AUTO, OMP_DEFAULT_FIRSTPRIVATE,
98 untied and collapse clauses.
99 (gfc_show_code_node): Handle EXEC_OMP_TASK and EXEC_OMP_TASKWAIT.
100 * trans.c (gfc_trans_code): Handle EXEC_OMP_TASK and
101 EXEC_OMP_TASKWAIT.
102 * st.c (gfc_free_statement): Likewise.
103 * resolve.c (gfc_resolve_blocks, resolve_code): Likewise.
104 (find_sym_in_expr): Rename to...
105 (gfc_find_sym_in_expr): ... this. No longer static.
106 (resolve_allocate_expr, resolve_ordinary_assign): Adjust caller.
107 * match.h (gfc_match_omp_task, gfc_match_omp_taskwait): New
108 prototypes.
109 * openmp.c (resolve_omp_clauses): Allow allocatable arrays in
110 firstprivate, lastprivate, reduction, copyprivate and copyin
111 clauses.
112 (omp_current_do_code): Made static.
113 (omp_current_do_collapse): New variable.
114 (gfc_resolve_omp_do_blocks): Compute omp_current_do_collapse,
115 clear omp_current_do_code and omp_current_do_collapse on return.
116 (gfc_resolve_do_iterator): Handle collapsed do loops.
117 (resolve_omp_do): Likewise, diagnose errorneous collapsed do loops.
118 (OMP_CLAUSE_COLLAPSE, OMP_CLAUSE_UNTIED): Define.
119 (gfc_match_omp_clauses): Handle default (firstprivate),
120 schedule (auto), untied and collapse (n) clauses.
121 (OMP_DO_CLAUSES): Add OMP_CLAUSE_COLLAPSE.
122 (OMP_TASK_CLAUSES): Define.
123 (gfc_match_omp_task, gfc_match_omp_taskwait): New functions.
124 * trans-openmp.c (gfc_omp_private_outer_ref): New function.
125 (gfc_omp_clause_default_ctor): Add outer argument. For allocatable
126 arrays allocate them with the bounds of the outer var if outer
127 var is allocated.
128 (gfc_omp_clause_copy_ctor, gfc_omp_clause_assign_op,
129 gfc_omp_clause_dtor): New functions.
130 (gfc_trans_omp_array_reduction): If decl is allocatable array,
131 allocate it with outer var's bounds in OMP_CLAUSE_REDUCTION_INIT
132 and deallocate it in OMP_CLAUSE_REDUCTION_MERGE.
133 (gfc_omp_predetermined_sharing): Return OMP_CLAUSE_DEFAULT_SHARED
134 for assumed-size arrays.
135 (gfc_trans_omp_do): Add par_clauses argument. If dovar is
136 present in lastprivate clause and do loop isn't simple,
137 set OMP_CLAUSE_LASTPRIVATE_STMT. If dovar is present in
138 parallel's lastprivate clause, change it to shared and add
139 lastprivate clause to OMP_FOR_CLAUSES. Handle collapsed do loops.
140 (gfc_trans_omp_directive): Adjust gfc_trans_omp_do callers.
141 (gfc_trans_omp_parallel_do): Likewise. Move collapse clause to
142 OMP_FOR from OMP_PARALLEL.
143 (gfc_trans_omp_clauses): Handle OMP_SCHED_AUTO,
144 OMP_DEFAULT_FIRSTPRIVATE, untied and collapse clauses.
145 (gfc_trans_omp_task, gfc_trans_omp_taskwait): New functions.
146 (gfc_trans_omp_directive): Handle EXEC_OMP_TASK and
147 EXEC_OMP_TASKWAIT.
148
149 2008-06-04 Janus Weil <janus@gcc.gnu.org>
150
151 PR fortran/36322
152 PR fortran/36275
153 * resolve.c (resolve_symbol): Correctly copy the interface for a
154 PROCEDURE declaration.
155
156 2008-06-02 Janus Weil <janus@gcc.gnu.org>
157
158 PR fortran/36361
159 * symbol.c (gfc_add_allocatable,gfc_add_dimension,
160 gfc_add_explicit_interface): Added checks.
161 * decl.c (attr_decl1): Added missing "var_locus".
162 * parse.c (parse_interface): Checking for errors.
163
164 2008-06-02 Daniel Kraft <d@domob.eu>
165
166 * gfortran.h: New statement-type ST_FINAL for FINAL declarations.
167 (struct gfc_symbol): New member f2k_derived.
168 (struct gfc_namespace): New member finalizers, for use in the above
169 mentioned f2k_derived namespace.
170 (struct gfc_finalizer): New type defined for finalizers linked list.
171 * match.h (gfc_match_final_decl): New function header.
172 * decl.c (gfc_match_derived_decl): Create f2k_derived namespace on
173 constructed symbol node.
174 (gfc_match_final_decl): New function to match a FINAL declaration line.
175 * parse.c (decode_statement): match-call for keyword FINAL.
176 (parse_derived): Parse CONTAINS section and accept FINAL statements.
177 * resolve.c (gfc_resolve_finalizers): New function to resolve (that is
178 in this case, check) a list of finalizer procedures.
179 (resolve_fl_derived): Call gfc_resolve_finalizers here.
180 * symbol.c (gfc_get_namespace): Initialize new finalizers to NULL.
181 (gfc_free_namespace): Free finalizers list.
182 (gfc_new_symbol): Initialize new f2k_derived to NULL.
183 (gfc_free_symbol): Free f2k_derived namespace.
184 (gfc_free_finalizer): New function to free a single gfc_finalizer node.
185 (gfc_free_finalizer_list): New function to free a linked list of
186 gfc_finalizer nodes.
187
188 2008-06-02 Daniel Franke <franke.daniel@gmail.com>
189
190 PR fortran/36375
191 PR fortran/36377
192 * cpp.c (gfc_cpp_init): Do not initialize builtins if
193 processing already preprocessed input.
194 (gfc_cpp_preprocess): Finalize output with newline.
195
196 2008-05-31 Jerry DeLisle <jvdelisle@gcc.gnu.org>
197
198 * intrinsic.texi: Revert wrong commit.
199
200 2008-05-31 Steven G. Kargl <kargls@comcast.net>
201
202 * arith.c (gfc_arith_init_1): Remove now unused r and c variables.
203 Cleanup numerical inquiry function initialization.
204 (gfc_arith_done_1): Replace multiple mpfr_clear() invocations with
205 a single mpfr_clears().
206 (gfc_check_real_range): Re-arrange logic to eliminate multiple
207 unnecessary branching and assignments.
208 (gfc_arith_times): Use mpfr_clears() in preference to multiple
209 mpfr_clear().
210 (gfc_arith_divide): Ditto.
211 (complex_reciprocal): Eliminate now unused variables a, re, im.
212 Cleanup the mpfr abuse. Use mpfr_clears() in preference to
213 multiple mpfr_clear().
214 (complex_pow): Fix comment whitespace. Use mpfr_clears() in
215 preference to multiple mpfr_clear().
216 * simplify.c (gfc_simplify_and): Remove blank line.
217 (gfc_simplify_atan2): Move error checking earlier to eliminate
218 a now unnecessay gfc_free_expr().
219 (gfc_simplify_bessel_j0): Remove unnecessary gfc_set_model_kind().
220 (gfc_simplify_bessel_j1): Ditto.
221 (gfc_simplify_bessel_jn): Ditto.
222 (gfc_simplify_bessel_y0): Ditto.
223 (gfc_simplify_bessel_y1): Ditto.
224 (gfc_simplify_bessel_yn): Ditto.
225 (only_convert_cmplx_boz): Eliminate unnecessary duplicate code, and
226 combine nested if statement rational expressions.
227 (gfc_simplify_cos): Use mpfr_clears() in preference to multiple
228 mpfr_clear().
229 (gfc_simplify_exp): Ditto.
230 (gfc_simplify_fraction): Move gfc_set_model_kind() to after the
231 special case of 0. Use mpfr_clears() in preference to multiple
232 mpfr_clear().
233 (gfc_simplify_gamma): Eliminate unnecessary gfc_set_model_kind().
234 (gfc_simplify_lgamma): Ditto.
235 (gfc_simplify_log10): Ditto.
236 (gfc_simplify_log): Move gfc_set_model_kind () inside switch
237 statement. Use mpfr_clears() in preference to multiple mpfr_clear().
238 (gfc_simplify_mod): Eliminate now unused variables quot, iquot,
239 and term. Simplify the mpfr magic.
240 (gfc_simplify_modulo): Ditto.
241 (gfc_simplify_nearest): Eliminate unnecessary gfc_set_model_kind().
242 (gfc_simplify_scale): Use mpfr_clears() in preference to multiple
243 mpfr_clear().
244 (gfc_simplify_sin): Ditto
245 (gfc_simplify_sqrt): Ditto
246 (gfc_simplify_set_exponent): Move gfc_set_model_kind() to after the
247 special case of 0. Use mpfr_clears() in preference to multiple
248 mpfr_clear().
249
250 2008-05-29 Daniel Franke <franke.daniel@gmail.com>
251
252 PR target/36348
253 * Make-lang.in (F95_OBJS): Added dependency on FORTRAN_TARGET_OBJS.
254
255 2008-05-29 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
256
257 * scanner.c (load_line): Add first_char argument. Don't call ungetc.
258 (gfc_read_orig_filename): Adjust call to load_line. Don't call
259 ungetc.
260 (load_file): Adjust call to load_line.
261
262 2008-05-28 Janus Weil <janus@gcc.gnu.org>
263
264 PR fortran/36325
265 PR fortran/35830
266 * interface.c (gfc_procedure_use): Enable argument checking for
267 external procedures with explicit interface.
268 * symbol.c (check_conflict): Fix conflict checking for externals.
269 (copy_formal_args): Fix handling of arrays.
270 * resolve.c (resolve_specific_f0, resolve_specific_s0): Fix handling
271 of intrinsics.
272 * parse.c (parse_interface): Non-abstract INTERFACE statement implies
273 EXTERNAL attribute.
274
275 2008-05-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
276
277 PR fortran/36319
278 * intrinsic.c (gfc_convert_chartype): Don't mark conversion
279 function as pure.
280 * trans-array.c (gfc_trans_array_ctor_element): Divide element
281 size by the size of one character to obtain length.
282 * iresolve.c (gfc_resolve_cshift): Call the _char4 variant when
283 appropriate.
284 (gfc_resolve_eoshift): Likewise.
285 * trans-intrinsic.c (gfc_conv_intrinsic_ctime): Minor beautification.
286 (gfc_conv_intrinsic_fdate): Minor beautification.
287 (gfc_conv_intrinsic_ttynam): Minor beautification.
288 (gfc_conv_intrinsic_minmax_char): Allow all character kinds.
289 (size_of_string_in_bytes): New function.
290 (gfc_conv_intrinsic_size): Call size_of_string_in_bytes for
291 character expressions.
292 (gfc_conv_intrinsic_sizeof): Likewise.
293 (gfc_conv_intrinsic_array_transfer): Likewise.
294 (gfc_conv_intrinsic_trim): Allow all character kinds. Minor
295 beautification.
296 (gfc_conv_intrinsic_repeat): Fix comment typo.
297 * simplify.c (gfc_convert_char_constant): Take care of conversion
298 of array constructors.
299
300 2008-05-27 Tobias Burnus <burnus@net-b.de>
301
302 PR fortran/36316
303 * trans-array.c (gfc_set_loop_bounds_from_array_spec):
304 Add missing fold_convert.
305
306 2008-05-26 Daniel Franke <franke.daniel@gmail.com>
307
308 * fortran/cpp.c (cpp_define_builtins): Remove usage of TARGET_* macros,
309 added FIXME instead.
310
311 2008-05-26 Daniel Franke <franke.daniel@gmail.com>
312
313 PR fortran/18428
314 * lang.opt (A, C, CC, D, E, H, P, U, cpp, d, fworking-directory,
315 imultilib, iprefix, iquote, isysroot, isystem, nocpp, nostdinc,
316 o, undef, v): New options.
317 * options.c (gfc_init_options): Also initialize preprocessor
318 options.
319 (gfc_post_options): Also handle post-initialization of preprocessor
320 options.
321 (gfc_handle_option): Check if option is a preprocessor option.
322 If yes, let gfc_cpp_handle_option() handle the option.
323 * lang-specs.h: Reorganized to handle new options.
324 * scanner.c (gfc_new_file): Read temporary file instead of
325 input source if preprocessing is enabled.
326 * f95-lang.c (gfc_init): Initialize preprocessor.
327 (gfc_finish): Clean up preprocessor.
328 * cpp.c: New.
329 * cpp.h: New.
330 * Make-lang.in: Added new objects and dependencies.
331 * gfortran.texi: Updated section "Preprocessing and
332 conditional compilation".
333 * invoke.texi: Added new section "Preprocessing Options",
334 listed and documented the preprocessing options handled
335 by gfortran.
336
337 2008-05-25 Tobias Burnus <burnus@net-b.de>
338
339 PR fortran/32600
340 * trans-expr.c (gfc_conv_function_call): Remove library
341 call for c_f_pointer with scalar Fortran pointers and for
342 c_f_procpointer.
343
344 2008-05-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
345
346 PR fortran/36257
347 * iresolve.c (check_charlen_present): Don't force the rank to 1.
348
349 2008-05-19 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
350
351 PR fortran/36265
352 * trans-expr.c (gfc_conv_string_tmp): Pick the correct type for
353 the temporary variable.
354
355 2008-05-19 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
356
357 * simplify.c (gfc_simplify_dble, gfc_simplify_real): Initialize
358 result variable to avoid warnings.
359
360 2008-05-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
361
362 * intrinsic.c (char_conversions, ncharconv): New static variables.
363 (find_char_conv): New function.
364 (add_functions): Add simplification functions for ADJUSTL and
365 ADJUSTR. Don't check the kind of their argument. Add checking for
366 LGE, LLE, LGT and LLT.
367 (add_subroutines): Fix argument type for SLEEP. Fix argument name
368 for SYSTEM.
369 (add_char_conversions): New function.
370 (gfc_intrinsic_init_1): Call add_char_conversions.
371 (gfc_intrinsic_done_1): Free char_conversions.
372 (check_arglist): Use kind == 0 as a signal that we don't want
373 the kind value to be checked.
374 (do_simplify): Also simplify character functions.
375 (gfc_convert_chartype): New function
376 * trans-array.c (gfc_trans_array_ctor_element): Don't force the
377 use of default character type.
378 (gfc_trans_array_constructor_value): Likewise.
379 (get_array_ctor_var_strlen): Use integer kind to build an integer
380 instead of a character kind!
381 (gfc_build_constant_array_constructor): Don't force the use of
382 default character type.
383 (gfc_conv_loop_setup): Likewise.
384 * trans-expr.c (gfc_conv_string_tmp): Don't force the use of
385 default character type. Allocate enough memory for wide strings.
386 (gfc_conv_concat_op): Make sure operand kind are the same.
387 (string_to_single_character): Remove gfc_ prefix. Reindent.
388 Don't force the use of default character type.
389 (gfc_conv_scalar_char_value): Likewise.
390 (gfc_build_compare_string): Call string_to_single_character.
391 (fill_with_spaces): New function
392 (gfc_trans_string_copy): Add kind arguments. Use them to deal
393 with wide character kinds.
394 (gfc_conv_statement_function): Whitespace fix. Call
395 gfc_trans_string_copy with new kind arguments.
396 (gfc_conv_substring_expr): Call gfc_build_wide_string_const
397 instead of using gfc_widechar_to_char.
398 (gfc_conv_string_parameter): Don't force the use of default
399 character type.
400 (gfc_trans_scalar_assign): Pass kind args to gfc_trans_string_copy.
401 * intrinsic.h (gfc_check_lge_lgt_lle_llt, gfc_convert_char_constant,
402 gfc_resolve_adjustl, gfc_resolve_adjustr): New prototypes.
403 * decl.c (gfc_set_constant_character_len): Don't assert the
404 existence of a single character kind.
405 * trans-array.h (gfc_trans_string_copy): New prototype.
406 * gfortran.h (gfc_check_character_range, gfc_convert_chartype):
407 New prototypes.
408 * error.c (print_wide_char_into_buffer): New function lifting
409 code from gfc_print_wide_char. Fix order to output '\x??' instead
410 of 'x\??'.
411 (gfc_print_wide_char): Call print_wide_char_into_buffer.
412 (show_locus): Call print_wide_char_into_buffer with buffer local
413 to this function.
414 * trans-const.c (gfc_build_wide_string_const): New function.
415 (gfc_conv_string_init): Deal with wide characters strings
416 constructors.
417 (gfc_conv_constant_to_tree): Call gfc_build_wide_string_const.
418 * trans-stmt.c (gfc_trans_label_assign): Likewise.
419 (gfc_trans_character_select): Deal with wide strings.
420 * expr.c (gfc_check_assign): Allow conversion between character
421 kinds on assignment.
422 * trans-const.h (gfc_build_wide_string_const): New prototype.
423 * trans-types.c (gfc_get_character_type_len_for_eltype,
424 gfc_get_character_type_len): Create too variants of the old
425 gfc_get_character_type_len, one getting kind argument and the
426 other one directly taking a type tree.
427 * trans.h (gfor_fndecl_select_string_char4,
428 gfor_fndecl_convert_char1_to_char4,
429 gfor_fndecl_convert_char4_to_char1): New prototypes.
430 * trans-types.h (gfc_get_character_type_len_for_eltype): New
431 prototype.
432 * resolve.c (resolve_operator): Exit early when kind mismatches
433 are detected, because that makes us issue an error message later.
434 (validate_case_label_expr): Fix wording of error message.
435 * iresolve.c (gfc_resolve_adjustl, gfc_resolve_adjustr): New
436 functions.
437 (gfc_resolve_pack): Call _char4 variants of library function
438 when dealing with wide characters.
439 (gfc_resolve_reshape): Likewise.
440 (gfc_resolve_spread): Likewise.
441 (gfc_resolve_transpose): Likewise.
442 (gfc_resolve_unpack): Likewise.
443 * target-memory.c (size_character): Take character kind bit size
444 correctly into account (not that it changes anything for now, but
445 it's more generic).
446 (gfc_encode_character): Added gfc_ prefix. Encoding each
447 character of a string by calling native_encode_expr for the
448 corresponding unsigned integer.
449 (gfc_target_encode_expr): Add gfc_ prefix to encode_character.
450 * trans-decl.c (gfc_build_intrinsic_function_decls): Build
451 gfor_fndecl_select_string_char4, gfor_fndecl_convert_char1_to_char4
452 and gfor_fndecl_convert_char4_to_char1.
453 * target-memory.h (gfc_encode_character): New prototype.
454 * arith.c (gfc_check_character_range): New function.
455 (eval_intrinsic): Allow non-default character kinds.
456 * check.c (gfc_check_access_func): Only allow default
457 character kind arguments.
458 (gfc_check_chdir): Likewise.
459 (gfc_check_chdir_sub): Likewise.
460 (gfc_check_chmod): Likewise.
461 (gfc_check_chmod_sub): Likewise.
462 (gfc_check_lge_lgt_lle_llt): New function.
463 (gfc_check_link): Likewise.
464 (gfc_check_link_sub): Likewise.
465 (gfc_check_symlnk): Likewise.
466 (gfc_check_symlnk_sub): Likewise.
467 (gfc_check_rename): Likewise.
468 (gfc_check_rename_sub): Likewise.
469 (gfc_check_fgetputc_sub): Likewise.
470 (gfc_check_fgetput_sub): Likewise.
471 (gfc_check_stat): Likewise.
472 (gfc_check_stat_sub): Likewise.
473 (gfc_check_date_and_time): Likewise.
474 (gfc_check_ctime_sub): Likewise.
475 (gfc_check_fdate_sub): Likewise.
476 (gfc_check_gerror): Likewise.
477 (gfc_check_getcwd_sub): Likewise.
478 (gfc_check_getarg): Likewise.
479 (gfc_check_getlog): Likewise.
480 (gfc_check_hostnm): Likewise.
481 (gfc_check_hostnm_sub): Likewise.
482 (gfc_check_ttynam_sub): Likewise.
483 (gfc_check_perror): Likewise.
484 (gfc_check_unlink): Likewise.
485 (gfc_check_unlink_sub): Likewise.
486 (gfc_check_system_sub): Likewise.
487 * primary.c (got_delim): Perform correct character range checking
488 for all kinds.
489 * trans-intrinsic.c (gfc_conv_intrinsic_conversion): Generate
490 calls to library functions convert_char4_to_char1 and
491 convert_char1_to_char4 for character conversions.
492 (gfc_conv_intrinsic_char): Allow all character kings.
493 (gfc_conv_intrinsic_strcmp): Fix whitespace.
494 (gfc_conv_intrinsic_repeat): Take care of all character kinds.
495 * intrinsic.texi: For all GNU intrinsics accepting character
496 arguments, mention that they're restricted to the default kind.
497 * simplify.c (simplify_achar_char): New function.
498 (gfc_simplify_achar, gfc_simplify_char): Call simplify_achar_char.
499 gfc_simplify_ichar): Don't error out for wide characters.
500 (gfc_convert_char_constant): New function.
501
502 2008-05-18 Steven G. Kargl <kargls@comcast.net>
503
504 PR fortran/36251
505 * symbol.c (check_conflict): Issue errors for abuse of PUBLIC, PRIVATE,
506 and BIND(C).
507 * resolve.c (gfc_verify_binding_labels): Fix NULL pointer dereference.
508
509 2008-05-17 Tobias Burnus <burnus@net-b.de>
510
511 * intrinsic.texi: Correct description of GET_COMMAND_ARGUMENT
512 and GET_ENVIRONMENT_VARIABLE; fix keyword= name for GETENV,
513 GETLOG, GMTIME, HOSTNM, IRAND, ITIME, KILL.
514 Move LOG_GAMMA after LOG10.
515
516 2008-05-17 Tobias Burnus <burnus@net-b.de>
517
518 * intrinsic.c (add_functions): Change FLUSH(C) to FLUSH(UNIT).
519 * intrinsic.texi: Change INTEGER(*) to INTEGER; fix keyword= name for
520 ABS, ADJUSTL, AINT, ALLOCATED, ANINT, ASSOCIATED, C_ASSOCIATED,
521 CEILING, DBLE, DFLOAT, DOT_PRODUCT, DREAL, FLOAT, FLOOR, GET_COMMAND.
522
523 2008-05-16 Paul Thomas <pault@gcc.gnu.org>
524
525 PR fortran/35756
526 PR fortran/35759
527 * trans-stmt.c (gfc_trans_where): Tighten up the dependency
528 check for calling gfc_trans_where_3.
529
530 PR fortran/35743
531 * trans-stmt.c (gfc_trans_where_2): Set the mask size to zero
532 if it is calculated to be negative.
533
534 PR fortran/35745
535 * trans-stmt.c (gfc_trans_where_3, gfc_trans_where_assign): Set
536 ss->where for scalar right hand sides.
537 * trans-array.c (gfc_add_loop_ss_code): If ss->where is set do
538 not evaluate scalars outside the loop. Clean up whitespace.
539 * trans.h : Add a bitfield 'where' to gfc_ss.
540
541 2008-05-16 Tobias Burnus <burnus@net-b.de>
542
543 * libgfortran.h: Increase GFC_MAX_DIMENSIONS to 15.
544 * array.c (gfc_match_array_spec): Error with -std=f2003 if rank > 7.
545
546 2008-04-16 Daniel Kraft <d@domob.eu>
547
548 PR fortran/27997
549 * gfortran.h: Added field "length_from_typespec" to gfc_charlength.
550 * aray.c (gfc_match_array_constructor): Added code to parse typespec.
551 (check_element_type, check_constructor_type, gfc_check_constructor_type):
552 Extended to support explicit typespec on constructor.
553 (gfc_resolve_character_array_constructor): Pad strings correctly for
554 explicit, constant character length.
555 * trans-array.c: New static global variable "typespec_chararray_ctor"
556 (gfc_trans_array_constructor): New code to support explicit but dynamic
557 character lengths.
558
559 2008-05-16 Jerry DeLisle <jvdelisle@gcc.gnu.org>
560
561 PR fortran/34325
562 * decl.c (match_attr_spec): Check for matching pairs of parenthesis.
563 * expr.c (gfc_specification_expr): Supplement the error message with the
564 type that was found.
565 * resolve.c (gfc_resolve_index): Likewise.
566 * match.c (gfc_match_parens): Clarify error message with "at or before".
567 (gfc_match_do): Check for matching pairs of parenthesis.
568
569 2008-05-16 Tobias Burnus <burnus@net-b.de
570
571 * intrinsic.texi: Write Fortran 77/90/95 instead of F77/90/95;
572 add missing KIND argument to ACHAR and NINT; and state that
573 the KIND argument is a F2003 extension for ACHAR, COUNT, IACHAR,
574 ICHAR, INDEX, LBOUND, LEN, LEN_TRIM, SCAN, SIZE, UBOUND, VERIFY.
575
576 2008-05-16 Daniel Kraft <d@domob.eu>
577
578 * primary.c: New private structure "gfc_structure_ctor_component".
579 (gfc_free_structure_ctor_component): New helper function.
580 (gfc_match_structure_constructor): Extended largely to support named
581 arguments and default initialization for structure constructors.
582
583 2008-05-15 Steven G. Kargl <kargls@comcast.net>
584
585 * simplify.c (gfc_simplify_dble, gfc_simplify_float,
586 simplify_bound, gfc_simplify_nearest, gfc_simplify_real): Plug
587 possible memory leaks.
588 (gfc_simplify_reshape): Plug possible memory leaks and dereferencing
589 of NULL pointers.
590
591 2008-05-15 Steven G. Kargl <kargls@comcast.net>
592
593 PR fortran/36239
594 * simplify.c (gfc_simplify_int, gfc_simplify_intconv): Replaced hand
595 rolled integer conversion with gfc_int2int, gfc_real2int, and
596 gfc_complex2int.
597 (gfc_simplify_intconv): Renamed to simplify_intconv.
598
599 2008-05-15 Steven G. Kargl, <kargl@comcast.net>
600 * gfortran.dg/and_or_xor.f90: New test
601
602 * fortran/simplify.c (gfc_simplify_and, gfc_simplify_or,
603 gfc_simplify_xor): Don't range check logical results.
604
605 2008-05-15 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
606
607 * trans-expr.c (gfc_conv_concat_op): Take care of nondefault
608 character kinds.
609 (gfc_build_compare_string): Add kind argument and use it.
610 (gfc_conv_statement_function): Fix indentation.
611 * gfortran.h (gfc_character_info): New structure.
612 (gfc_character_kinds): New array.
613 * trans-types.c (gfc_character_kinds, gfc_character_types,
614 gfc_pcharacter_types): New array.
615 (gfc_init_kinds): Fill character kinds array.
616 (validate_character): Take care of nondefault character kinds.
617 (gfc_build_uint_type): New function.
618 (gfc_init_types): Take care of nondefault character kinds.
619 (gfc_get_char_type, gfc_get_pchar_type): New functions.
620 (gfc_get_character_type_len): Use gfc_get_char_type.
621 * trans.h (gfc_build_compare_string): Adjust prototype.
622 (gfor_fndecl_compare_string_char4, gfor_fndecl_concat_string_char4,
623 gfor_fndecl_string_len_trim_char4, gfor_fndecl_string_index_char4,
624 gfor_fndecl_string_scan_char4, gfor_fndecl_string_verify_char4,
625 gfor_fndecl_string_trim_char4, gfor_fndecl_string_minmax_char4,
626 gfor_fndecl_adjustl_char4, gfor_fndecl_adjustr_char4): New
627 prototypes.
628 * trans-types.h (gfc_get_char_type, gfc_get_pchar_type): New
629 prototypes.
630 * trans-decl.c (gfor_fndecl_compare_string_char4,
631 gfor_fndecl_string_len_trim_char4, gfor_fndecl_string_index_char4,
632 gfor_fndecl_string_scan_char4, gfor_fndecl_string_verify_char4,
633 gfor_fndecl_string_trim_char4, gfor_fndecl_string_minmax_char4,
634 gfor_fndecl_adjustl_char4, gfor_fndecl_adjustr_char4,
635 gfor_fndecl_concat_string_char4): New function decls.
636 (gfc_build_intrinsic_function_decls): Define new *_char4 function
637 decls.
638 * trans-intrinsic.c (gfc_conv_intrinsic_minmax_char,
639 gfc_conv_intrinsic_len_trim, gfc_conv_intrinsic_ichar,
640 gfc_conv_intrinsic_strcmp, gfc_conv_intrinsic_trim,
641 gfc_conv_intrinsic_function): Deal with nondefault character kinds.
642
643 2008-05-15 Sa Liu <saliu@de.ibm.com>
644
645 * iso-c-binding.def: Add standard parameter to macro NAMED_INTCST.
646 All existing NAMED_INTCST definitions has standard GFC_STD_F2003,
647 c_int128_t, c_int_least128_t and c_int_fast128_t are added as
648 GNU extensions.
649 * iso-fortran-evn.def: Add standard parameter GFC_STD_F2003
650 to macro NAMED_INTCST.
651 * symbol.c (std_for_isocbinding_symbol): New helper function to
652 return the standard that supports this isocbinding symbol.
653 (generate_isocbinding_symbol): Do not generate GNU extension symbols
654 if std=f2003. Add new parameter to NAMED_INTCST.
655 * module.c (use_iso_fortran_env_module): Add new parameter to
656 NAMED_INTCST and new field standard to struct intmod_sym.
657 * gfortran.h: Add new parameter to NAMED_INTCST.
658 * trans-types.c (init_c_interop_kinds): Add new parameter to
659 NAMED_INTCST.
660 * intrinsic.texi: Documented new types C_INT128_T, C_INT_LEASE128_T
661 and C_INT_FAST128_T.
662
663 2008-05-14 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
664
665 PR fortran/36059
666 * trans-decl.c (gfc_build_dummy_array_decl): Don't repack
667 arrays that have the TARGET attribute.
668
669 2008-05-14 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
670
671 PR fortran/36186
672 * simplify.c (only_convert_cmplx_boz): New function.
673 (gfc_simplify_cmplx, gfc_simplify_complex, gfc_simplify_dcmplx):
674 Call only_convert_cmplx_boz.
675
676 2008-05-14 Paul Thomas <pault@gcc.gnu.org>
677
678 PR fortran/36233
679 * interface.c (compare_actual_formal): Do not check sizes if the
680 actual is BT_PROCEDURE.
681
682 2008-05-14 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
683
684 PR fortran/35682
685 * trans-array.c (gfc_conv_ss_startstride): Any negative size is
686 the same as zero size.
687 (gfc_conv_loop_setup): Fix size calculation.
688
689 2008-05-14 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
690
691 PR fortran/35685
692 * trans-intrinsic.c (gfc_conv_intrinsic_bound): Correctly
693 handle zero-size sections.
694
695 2008-05-14 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
696
697 PR fortran/36215
698 * scanner.c (preprocessor_line): Allocate enough memory for a
699 wide string.
700
701 2008-05-12 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
702
703 PR fortran/36176
704 * target-memory.c (gfc_target_expr_size): Correctly treat
705 substrings.
706 (gfc_target_encode_expr): Likewise.
707 (gfc_interpret_complex): Whitespace change.
708
709 2008-05-11 Thomas Koenig <tkoenig@gcc.gnu.org>
710
711 PR fortran/35719
712 * trans.c (gfc_call_malloc): If size equals zero, allocate one
713 byte; don't return a null pointer.
714
715 2008-05-10 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
716
717 PR fortran/36197
718 * module.c (quote_string): Fix sprintf format.
719
720 2008-05-09 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
721
722 PR fortran/36162
723 * module.c (quote_string, unquote_string,
724 mio_allocated_wide_string): New functions.
725 (mio_expr): Call mio_allocated_wide_string where needed.
726
727 2008-05-07 Kenneth Zadeck <zadeck@naturalbridge.com>
728
729 * trans-decl.c (gfc_get_extern_function_decl, build_function_decl):
730 Rename DECL_IS_PURE to DECL_PURE_P.
731
732 2008-05-06 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
733
734 * arith.c: (gfc_arith_concat, gfc_compare_string,
735 gfc_compare_with_Cstring, hollerith2representation,
736 gfc_hollerith2int, gfc_hollerith2real, gfc_hollerith2complex,
737 gfc_hollerith2character, gfc_hollerith2logical): Use wide
738 characters for character constants.
739 * data.c (create_character_intializer): Likewise.
740 * decl.c (gfc_set_constant_character_len): Likewise.
741 * dump-parse-tree.c (show_char_const): Correctly dump wide
742 character strings.
743 error.c (print_wide_char): Rename into gfc_print_wide_char.
744 (show_locus): Adapt to new prototype of gfc_print_wide_char.
745 expr.c (free_expr0): Representation is now disjunct from
746 character string value, so we always free it.
747 (gfc_copy_expr, find_substring_ref, gfc_simplify_expr): Adapt
748 to wide character strings.
749 * gfortran.h (gfc_expr): Make value.character.string a wide string.
750 (gfc_wide_toupper, gfc_wide_strncasecmp, gfc_wide_memset,
751 gfc_widechar_to_char, gfc_char_to_widechar): New prototypes.
752 (gfc_get_wide_string): New macro.
753 (gfc_print_wide_char): New prototype.
754 * io.c (format_string): Make a wide string.
755 (next_char, gfc_match_format, compare_to_allowed_values,
756 gfc_match_open): Deal with wide strings.
757 * module.c (mio_expr): Convert between wide strings and ASCII ones.
758 * primary.c (match_hollerith_constant, match_charkind_name):
759 Handle wide strings.
760 * resolve.c (build_default_init_expr): Likewise.
761 * scanner.c (gfc_wide_toupper, gfc_wide_memset,
762 gfc_char_to_widechar): New functions.
763 (wide_strchr, gfc_widechar_to_char, gfc_wide_strncasecmp):
764 Changes in prototypes.
765 (gfc_define_undef_line, load_line, preprocessor_line,
766 include_line, load_file, gfc_read_orig_filename): Handle wide
767 strings.
768 * simplify.c (gfc_simplify_achar, gfc_simplify_adjustl,
769 gfc_simplify_adjustr, gfc_simplify_char, gfc_simplify_iachar,
770 gfc_simplify_ichar, simplify_min_max, gfc_simplify_new_line,
771 gfc_simplify_repeat): Handle wide strings.
772 (wide_strspn, wide_strcspn): New helper functions.
773 (gfc_simplify_scan, gfc_simplify_trim, gfc_simplify_verify):
774 Handle wide strings.
775 * symbol.c (generate_isocbinding_symbol): Likewise.
776 * target-memory.c (size_character, gfc_target_expr_size,
777 encode_character, gfc_target_encode_expr, gfc_interpret_character,
778 gfc_target_interpret_expr): Handle wide strings.
779 * trans-const.c (gfc_conv_string_init): Lower wide strings to
780 narrow ones.
781 (gfc_conv_constant_to_tree): Likewise.
782 * trans-expr.c (gfc_conv_substring_expr): Handle wide strings.
783 * trans-io.c (gfc_new_nml_name_expr): Likewise.
784 * trans-stmt.c (gfc_trans_label_assign): Likewise.
785
786 2008-05-06 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
787
788 * simplify.c (gfc_simplify_bessel_j0,gfc_simplify_bessel_j1,
789 gfc_simplify_bessel_jn,gfc_simplify_bessel_y0,
790 gfc_simplify_bessel_y1,gfc_simplify_bessel_yn): Mark arguments
791 with ATTRIBUTE_UNUSED.
792
793 2008-05-06 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
794
795 * check.c (gfc_check_sizeof): Switch to ATTRIBUTE_UNUSED.
796 * simplify.c (gfc_simplify_lgamma): Likewise.
797
798 2008-05-06 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
799
800 * openmp.c (gfc_match_omp_eos): Use gfc_next_ascii_char and
801 gfc_peek_ascii_char.
802 * decl.c (gfc_match_kind_spec, gfc_match_type_spec,
803 gfc_match_implicit_none, match_implicit_range, gfc_match_implicit,
804 match_string_p, match_attr_spec, gfc_match_suffix,
805 match_procedure_decl, gfc_match_entry, gfc_match_subroutine):
806 Likewise.
807 * gfortran.h (gfc_char_t): New type.
808 (gfc_linebuf): Make line member a gfc_char_t.
809 (locus): Make nextc member a gfc_char_t.
810 (gfc_wide_is_printable, gfc_wide_is_digit, gfc_wide_fits_in_byte,
811 gfc_wide_tolower, gfc_wide_strlen, gfc_next_ascii_char,
812 gfc_peek_ascii_char, gfc_check_digit): New prototypes.
813 * error.c (print_wide_char): New function.
814 (show_locus): Use print_wide_char and gfc_wide_strlen.
815 * io.c (next_char): Use gfc_char_t type.
816 (match_io): Use gfc_peek_ascii_char and gfc_next_ascii_char.
817 * match.c (gfc_match_parens, gfc_match_eos,
818 gfc_match_small_literal_int, gfc_match_name, gfc_match_name_C,
819 gfc_match_intrinsic_op, gfc_match_char, gfc_match_return,
820 gfc_match_common): Likewise.
821 * match.h (gfc_match_special_char): Change prototype.
822 * parse.c (decode_specification_statement, decode_statement,
823 decode_omp_directive, next_free, next_fixed): Use
824 gfc_peek_ascii_char and gfc_next_ascii_char.
825 * primary.c (gfc_check_digit): Change name.
826 (match_digits, match_hollerith_constant, match_boz_constant,
827 match_real_constant, next_string_char, match_charkind_name,
828 match_string_constant, match_logical_constant_string,
829 match_complex_constant, match_actual_arg, match_varspec,
830 gfc_match_rvalue, match_variable): Use gfc_peek_ascii_char and
831 gfc_next_ascii_char.
832 * scanner.c (gfc_wide_fits_in_byte, wide_is_ascii,
833 gfc_wide_is_printable, gfc_wide_tolower, gfc_wide_is_digit,
834 gfc_wide_is_digit, wide_atoi, gfc_wide_strlen, wide_strcpy,
835 wide_strchr, widechar_to_char, wide_strncmp, wide_strncasecmp,
836 gfc_next_ascii_char, gfc_peek_ascii_char):
837 New functions.
838 (next_char, gfc_define_undef_line, skip_free_comments,
839 gfc_next_char_literal, gfc_next_char, gfc_peek_char,
840 gfc_error_recovery, load_line, preprocessor_line, include_line,
841 load_file, gfc_read_orig_filename): Use gfc_char_t for source
842 characters and the {gfc_,}wide_* functions to manipulate wide
843 strings.
844
845 2008-05-06 Tobias Burnus <burnus@net-b.de>
846
847 PR fortran/36117
848 * intrinsic.c (add_functions): Call gfc_simplify_bessel_*.
849 * intrinsic.h: Add prototypes for gfc_simplify_bessel_*.
850 * simplify.c (gfc_simplify_bessel_j0,gfc_simplify_bessel_j1,
851 gfc_simplify_bessel_jn,gfc_simplify_bessel_y0,
852 gfc_simplify_bessel_y1,gfc_simplify_bessel_yn): New.
853
854 2008-05-03 Janus Weil <jaydub66@gmail.com>
855
856 * misc.c (gfc_clear_ts): Set interface to NULL.
857
858 2008-05-03 Jerry DeLisle <jvdelisle@gcc.gnu.org>
859
860 PR fortran/33268
861 * gfortran.h: Add extra_comma pointer to gfc_dt structure. Add iokind to
862 gfc_expr value union. Add io_kind enum to here from io.c.
863 * io.c (gfc_free_dt): Free extra_comma.
864 (gfc_resolve_dt): If an extra comma was encountered and io_unit is type
865 BT_CHARACTER, resolve to format_expr and set default unit. Error if
866 io_kind is M_WRITE. (match_io): Match the extra comma and set new
867 pointer, extra_comma.
868
869 2008-05-01 Bud Davis <bdavis9659@sbcglobal.net>
870
871 PR35940/Fortran
872 * simplify.c (gfc_simplify_index): Check for direction argument
873 being a constant.
874
875 2008-05-01 Janus Weil <jaydub66@gmail.com>
876
877 * gfortran.h (struct gfc_symbol): Moving "interface" member to
878 gfc_typespec (plus fixing a small docu error).
879 * interface.c (gfc_procedure_use): Ditto.
880 * decl.c (match_procedure_decl): Ditto.
881 * resolve.c (resolve_specific_f0,
882 resolve_specific_f0, resolve_symbol): Ditto.
883
884 2008-04-30 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
885
886 * intrinsic.c (add_functions): Add SELECTED_CHAR_KIND intrinsic.
887 * intrinsic.h (gfc_check_selected_char_kind,
888 gfc_simplify_selected_char_kind): New prototypes.
889 * gfortran.h (gfc_isym_id): Add GFC_ISYM_SC_KIND.
890 * trans.h (gfor_fndecl_sc_kind): New function decl.
891 * trans-decl.c (gfor_fndecl_sc_kind): Build new decl.
892 * arith.c (gfc_compare_with_Cstring): New function.
893 * arith.h (gfc_compare_with_Cstring): New prototype.
894 * check.c (gfc_check_selected_char_kind): New function.
895 * primary.c (match_string_constant, match_kind_param): Mark
896 symbols used as literal constant kind param as referenced.
897 * trans-intrinsic.c (gfc_conv_intrinsic_sc_kind): New function.
898 (gfc_conv_intrinsic_function): Call gfc_conv_intrinsic_sc_kind.
899 * intrinsic.texi (SELECTED_CHAR_KIND): Document new intrinsic.
900 * simplify.c (gfc_simplify_selected_char_kind): New function.
901
902 2008-04-28 Paul Thomas <pault@gcc.gnu.org>
903
904 PR fortran/35997
905 * module.c (find_symbol): Do not return a result for a symbol
906 that has been renamed in another module.
907
908 2008-04-26 George Helffrich <george@gcc.gnu.org>
909
910 PR fortran/35892
911 PR fortran/35154
912 * trans-common.c (create_common): Add decl to function
913 chain (if inside one) to preserve identifier scope in debug output.
914
915 2008-04-25 Jan Hubicka <jh@suse.cz>
916
917 * trans-decl.c (trans_function_start): Update.
918
919 2008-04-25 Tobias Burnus <burnus@net-b.de>
920 Daniel Franke <franke.daniel@gmail.com>
921
922 PR fortran/35156
923 * gfortranspec.c (lang_specific_driver): Deprecate
924 -M option; fix ICE when "-M" is last argument and
925 make "-M<dir>" work.
926 * options.c (gfc_handle_module_path_options):
927 Use -J instead of -M in error messages.
928 * invoke.texi: Mark -M as depecated.
929
930 2008-04-23 Jerry DeLisle <jvdelisle@gcc.gnu.org>
931 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
932
933 PR fortran/35994
934 * trans-instrinsic.c (gfc_conv_intrinsic_minmaxloc): Correctly adjust
935 loop counter offset.
936
937 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
938
939 * trans-expr.c (gfc_conv_structure): Don't set TREE_INVARIANT.
940 * trans-array.c (gfc_build_null_descriptor): Don't set TREE_INVARIANT.
941 (gfc_trans_array_constructor_value): Don't set TREE_INVARIANT.
942 (gfc_build_constant_array_constructor): Don't set TREE_INVARIANT.
943 (gfc_conv_array_initializer): Don't set TREE_INVARIANT.
944 * trans-common.c (get_init_field): Don't set TREE_INVARIANT.
945 (create_common): Don't set TREE_INVARIANT.
946 * trans-stmt.c (gfc_trans_character_select): Don't set TREE_INVARIANT.
947 * trans-decl.c (gfc_generate_function_code): Don't set TREE_INVARIANT.
948
949 2008-04-21 Steve Ellcey <sje@cup.hp.com>
950
951 * f95-lang.c (gfc_init_decl_processing): use ptr_mode instead of Pmode.
952
953 2008-04-21 Daniel Franke <franke.daniel@gmail.com>
954
955 PR fortran/35019
956 * gfortranspec.c (lookup_option): Properly handle separated arguments
957 in -J option, print missing argument message when necessary.
958
959 2008-04-20 Jerry DeLisle <jvdelisle@gcc.gnu.org>
960
961 PR fortran/35882
962 * scanner.c (skip_fixed_comments): Update continue_line when comment is
963 detected. (gfc_next_char_literal): Likewise.
964
965 2008-04-19 Paul Thomas <pault@gcc.gnu.org>
966
967 PR fortran/35944
968 PR fortran/35946
969 PR fortran/35947
970 * trans_array.c (gfc_trans_array_constructor): Temporarily
971 realign loop, if loop->from is not zero, before creating
972 the temporary array and provide an offset.
973
974 PR fortran/35959
975 * trans-decl.c (gfc_init_default_dt): Add gfc_ prefix to name
976 and allow for NULL body. Change all references from
977 init_default_dt to gfc_init_default_dt.
978 * trans.h : Add prototype for gfc_init_default_dt.
979 * trans-array.c (gfc_trans_deferred_vars): After nullification
980 call gfc_init_default_dt for derived types with allocatable
981 components.
982
983 2008-04-18 Jerry DeLisle <jvdelisle@gcc.gnu.org>
984
985 PR fortran/35892
986 * trans-common.c (create_common): Revert patch causing regression.
987
988 2008-04-16 Jerry DeLisle <jvdelisle@gcc.gnu.org>
989
990 PR fortran/35724
991 * iresolve.c (gfc_resolve_eoshift): Check for NULL symtree in test for
992 optional argument attribute.
993
994 2008-04-16 Paul Thomas <pault@gcc.gnu.org>
995
996 PR fortran/35932
997 * trans-intrinsic.c (gfc_conv_intrinsic_char): Even though KIND
998 is not used, the argument must be converted.
999
1000 2008-04-16 Jakub Jelinek <jakub@redhat.com>
1001
1002 PR target/35662
1003 * f95-lang.c (gfc_init_builtin_functions): Make sure
1004 BUILT_IN_SINCOS{,F,L} types aren't varargs.
1005
1006 2008-04-15 Paul Thomas <pault@gcc.gnu.org>
1007
1008 PR fortran/35864
1009 * expr.c (scalarize_intrinsic_call): Reorder identification of
1010 array argument so that if one is not found a segfault does not
1011 occur. Return FAILURE if all scalar arguments.
1012
1013 2008-04-13 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1014 Tobias Burnus <burnus@net-b.de>
1015
1016 PR fortran/35882
1017 * options.c (gfc_init_options): Set the default maximum continuation
1018 lines to 255 for both free and fixed form source for warnings.
1019 (gfc_handle_option): Set -std=f95 fixed form max continuations to 19 and
1020 the -std=f95 free form max continuations to 39 for warnings.
1021 * scanner.c (gfc_next_char_literal): Adjust the current_line number only
1022 if it is less than the current locus.
1023
1024 2008-04-07 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1025
1026 PR fortran/25829 28655
1027 * io.c (io_tag): Add new tags for decimal, encoding, asynchronous,
1028 round, sign, and id. (match_open_element): Match new tags.
1029 (gfc_resolve_open): Resolve new tags. (gfc_match_open): Enable encoding
1030 for DEFAULT only. Update error messages. (match_dt_element): Fix match
1031 tag for asynchronous. Update error messages. (gfc_free_inquire): Free
1032 new expressions. (match_inquire_element): Match new tags.
1033 (gfc_match_inquire): Add constraint for ID and PENDING.
1034 (gfc_resolve_inquire): Resolve new tags.
1035 * trans-io.c (gfc_trans_inquire): Clean up whitespace and fix setting of
1036 mask for ID parameter.
1037 * ioparm.def: Fix order of parameters for pending, round, and sign.
1038 NOTE: These must line up with the definitions in libgfortran/io/io.h. or
1039 things don't work.
1040
1041 2008-04-06 Paul Thomas <pault@gcc.gnu.org>
1042
1043 PR fortran/35780
1044 * expr.c (scalarize_intrinsic_call): Identify which argument is
1045 an array and use that as the template.
1046 (check_init_expr): Remove tests that first argument is an array
1047 in the call to scalarize_intrinsic_call.
1048
1049 2008-04-06 Tobias Schlüter <tobi@gcc.gnu.org>
1050
1051 PR fortran/35832
1052 * io.c (io_tag): Add field 'value'. Split 'spec' field in
1053 existing io_tags.
1054 (match_etag, match_vtag, match_ltag): Split parsing in two steps
1055 to give better error messages.
1056
1057 2008-04-06 Tobias Burnus <burnus@net-b.de>
1058
1059 * io.c (check_io_constraints): Add constrains. ID= requires
1060 asynchronous= and asynchronous= must be init expression.
1061
1062 2008-04-06 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1063
1064 * f95-lang.c: Set LANG_HOOKS_NAME to "GNU Fortran".
1065
1066 2008-04-06 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1067
1068 * dump-parse-tree.c: Use fprintf, fputs and fputc instead of
1069 gfc_status and gfc_status_char. Remove gfc_ prefix of the gfc_show_*
1070 functions and make them static. Add new gfc_dump_parse_tree
1071 function.
1072 * gfortran.h (gfc_option_t): Rename verbose into dump_parse_tree.
1073 (gfc_status, gfc_status_char): Delete prototypes.
1074 * error.c (gfc_status, gfc_status_char): Remove functions.
1075 * scanner.c (gfc_new_file): Use printf instead of gfc_status.
1076 * options.c (gfc_init_options): Rename verbose into dump_parse_tree.
1077 (gfc_handle_module_path_options): Use gfc_fatal_error instead of
1078 gfc_status and exit.
1079 (gfc_handle_option): Rename verbose into dump_parse_tree.
1080 * parse.c (gfc_parse_file): Use gfc_dump_parse_tree.
1081
1082 2008-04-05 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1083 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1084
1085 PR fortran/25829 28655
1086 * dump-parse-tree.c (gfc_show_code_node): Show new I/O parameters.
1087 * gfortran.h (gfc_statement): Add ST_WAIT enumerator.
1088 (gfc_open): Add pointers for decimal, encoding, round, sign,
1089 asynchronous. (gfc_inquire): Add pointers for asynchronous, decimal,
1090 encoding, pending, round, sign, size, id.
1091 (gfc_wait): New typedef struct. (gfc_dt): Add pointers for id, pos,
1092 asynchronous, blank, decimal, delim, pad, round, sign.
1093 (gfc_exec_op): Add EXEC_WAIT enumerator. (gfc_code): Add pointer for
1094 wait. (gfc_free_wait), (gfc_resolve_wait): New function prototypes.
1095 * trans-stmt.h (gfc_trans_wait): New function prototype.
1096 * trans.c (gfc_trans_code): Add case for EXEC_WAIT.
1097 * io.c (io_tag): Add new tags for DECIMAL, ENCODING, ROUND, SIGN,
1098 ASYCHRONOUS, ID. (match_open_element): Add matchers for new tags.
1099 (gfc_free_open): Free new pointers. (gfc_resolve_open): Resolve new
1100 tags. (gfc_resolve_open): Remove comment around check for allowed
1101 values and ASYNCHRONOUS, update it. Likewise for DECIMAL, ENCODING,
1102 ROUND, and SIGN. (match_dt_element): Add matching for new tags.
1103 (gfc_free_wait): New function. (gfc_resolve_wait): New function.
1104 (match_wait_element): New function. (gfc_match_wait): New function.
1105 * resolve.c (gfc_resolve_blocks): Add case for EXEC_WAIT.
1106 (resolve_code): Add case for EXEC_WAIT.
1107 * st.c (gfc_free_statement): Add case for EXEC_WAIT.
1108 * trans-io.c (ioparam_type): Add IOPARM_ptype_wait. (gfc_st_parameter):
1109 Add "wait" entry. (iocall): Add IOCALL_WAIT enumerator.
1110 (gfc_build_io_library_fndecls): Add function declaration for st_wait.
1111 (gfc_trans_open): Add mask bits for new I/O tags.
1112 (gfc_trans_inquire): Add mask bits for new I/O tags.
1113 (gfc_trans_wait): New translation function.
1114 (build_dt): Add mask bits for new I/O tags.
1115 * match.c (gfc_match_if) Add matcher for "wait".
1116 * match.h (gfc_match_wait): Prototype for new function.
1117 * ioparm.def: Add new I/O parameter definitions.
1118 * parse.c (decode_statement): Add match for "wait" statement.
1119 (next_statement): Add case for ST_WAIT. (gfc_ascii_statement): Same.
1120
1121 2008-04-03 Jakub Jelinek <jakub@redhat.com>
1122
1123 PR fortran/35786
1124 * openmp.c (resolve_omp_clauses): Diagnose if a clause symbol
1125 isn't a variable.
1126
1127 2008-04-03 Tom Tromey <tromey@redhat.com>
1128
1129 * Make-lang.in (fortran_OBJS): New variable.
1130
1131 2008-04-03 Paolo Bonzini <bonzini@gnu.org>
1132
1133 * f95-lang.c (insert_block): Kill.
1134
1135 2008-04-01 George Helffrich <george@gcc.gnu.org>
1136
1137 PR fortran/35154, fortran/23057
1138 * trans-common.c (create_common): Add decl to function
1139 chain to preserve identifier scope in debug output.
1140
1141 2008-04-01 Joseph Myers <joseph@codesourcery.com>
1142
1143 * gfortran.texi: Include gpl_v3.texi instead of gpl.texi
1144 * Make-lang.in (GFORTRAN_TEXI): Include gpl_v3.texi instead of
1145 gpl.texi.
1146
1147 2008-03-30 Paul Thomas <pault@gcc.gnu.org>
1148
1149 PR fortran/35740
1150 * resolve.c (resolve_function, resolve_call): If the procedure
1151 is elemental do not look for noncopying intrinsics.
1152
1153 2008-03-29 Paul Thomas <pault@gcc.gnu.org>
1154
1155 PR fortran/35698
1156 * trans-array.c (gfc_array_init_size): Set 'size' zero if
1157 negative in one dimension.
1158
1159 PR fortran/35702
1160 * trans-expr.c (gfc_trans_string_copy): Only assign a char
1161 directly if the lhs and rhs types are the same.
1162
1163 2008-03-28 Daniel Franke <franke.daniel@gmail.com>
1164 Paul Richard Thomas <paul.richard.thomas@gmail.com>
1165
1166 PR fortran/34714
1167 * primary.c (match_variable): Improved matching of function
1168 result variables.
1169 * resolve.c (resolve_allocate_deallocate): Removed checks if
1170 the actual argument for STAT is a variable.
1171
1172 2008-03-28 Tobias Burnus <burnus@net-b.de>
1173
1174 * symbol.c (gfc_get_default_type): Fix error message; option
1175 -fallow_leading_underscore should be -fallow-leading-underscore
1176
1177 2008-03-27 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1178
1179 PR fortran/35724
1180 * iresolve.c (gfc_resolve_cshift): Check for NULL symtree in test for
1181 optional argument attribute.
1182
1183 2008-03-27 Tom Tromey <tromey@redhat.com>
1184
1185 * Make-lang.in: Revert automatic dependency patch.
1186
1187 2008-03-25 Tom Tromey <tromey@redhat.com>
1188
1189 * Make-lang.in: Remove .o targets.
1190 (fortran_OBJS): New variable.
1191 (fortran/gfortranspec.o): Move to fortran/. Reduce to variable
1192 setting.
1193 (GFORTRAN_D_OBJS): Update.
1194 (GFORTRAN_TRANS_DEPS): Remove.
1195
1196 2008-03-24 Paul Thomas <pault@gcc.gnu.org>
1197
1198 PR fortran/34813
1199 * resolve.c (resolve_structure_cons): It is an error to assign
1200 NULL to anything other than a pointer or allocatable component.
1201
1202 PR fortran/33295
1203 * resolve.c (resolve_symbol): If the symbol is a derived type,
1204 resolve the derived type. If the symbol is a derived type
1205 function, ensure that the derived type is visible in the same
1206 namespace as the function.
1207
1208 2008-03-23 Tobias Schlüter <tobi@gcc.gnu.org>
1209
1210 * trans.h: Use fold_build in build1_v, build2_v and build3_v
1211 macros.
1212 * trans-openmp.c (gfc_trans_omp_critical, gfc_trans_omp_single):
1213 Don't use build2_v macro.
1214
1215 2008-03-19 Daniel Franke <franke.daniel@gmail.com>
1216
1217 PR fortran/35152
1218 * interface.c (gfc_procedure_use): Check for keyworded arguments in
1219 procedures without explicit interfaces.
1220
1221 2008-03-16 Paul Thomas <pault@gcc.gnu.org>
1222
1223 PR fortran/35470
1224 * resolve.c (check_assumed_size_reference): Only visit the
1225 first reference and look directly at the highest dimension.
1226
1227 2008-03-15 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1228
1229 PR fortran/35184
1230 * trans-array.c (gfc_conv_array_index_offset): Remove unnecessary
1231 assert.
1232
1233 2008-03-15 Daniel Franke <franke.daniel@gmail.com>
1234
1235 PR fortran/35584
1236 * resolve.c (resolve_branch): Less strict and pessimistic warning
1237 message.
1238
1239 2008-03-11 Paolo Bonzini <bonzini@gnu.org>
1240
1241 * f95-lang.c (LANG_HOOKS_CLEAR_BINDING_STACK): Delete.
1242 (gfc_be_parse_file): Call clear_binding_stack from here.
1243 (gfc_clear_binding_stack): Rename to clear_binding_stack.
1244
1245 2008-03-09 Paul Thomas <pault@gcc.gnu.org>
1246
1247 PR fortran/35474
1248 * module.c (mio_symtree_ref): After providing a symbol for a
1249 missing equivalence member, resolve and NULL the fixups.
1250
1251 2008-03-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1252
1253 * invoke.texi (Error and Warning Options): Document
1254 -Wline-truncation.
1255
1256 2008-03-08 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1257
1258 PR fortran/34956
1259 * trans-array.c (gfc_conv_ss_startstride): Fix the logic to avoid
1260 checking bounds of absent optional arguments.
1261
1262 2008-03-06 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1263
1264 PR fortran/33197
1265 * intrinsic.c (add_functions): Add simplification routines for
1266 ERF, DERF, ERFC and DERFC.
1267 * decl.c (gfc_match_suffix, gfc_match_subroutine): Change GNU
1268 extensions into Fortran 2008 features.
1269 * intrinsic.h (gfc_simplify_erf, gfc_simplify_erfc): New
1270 prototypes.
1271 * simplify.c (gfc_simplify_erf, gfc_simplify_erfc): New functions.
1272
1273 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1274
1275 PR fortran/33197
1276 * intrinsic.c (add_functions): Modify intrinsics ACOSH, ASINH,
1277 ATANH, ERF, ERFC and GAMMA. Add intrinsics BESSEL_{J,Y}{0,1,N},
1278 ERFC_SCALED, LOG_GAMMA and HYPOT.
1279 * intrinsic.h (gfc_check_hypot, gfc_simplify_hypot,
1280 gfc_resolve_hypot): New prototypes.
1281 * mathbuiltins.def: Add HYPOT builtin. Make complex versions of
1282 ACOSH, ASINH and ATANH available.
1283 * gfortran.h (GFC_ISYM_ERFC_SCALED, GFC_ISYM_HYPOT): New values.
1284 * lang.opt: Add -std=f2008 option.
1285 * libgfortran.h: Define GFC_STD_F2008.
1286 * lang-specs.h: Add .f08 and .F08 file suffixes.
1287 * iresolve.c (gfc_resolve_hypot): New function.
1288 * parse.c (parse_contained): Allow empty CONTAINS for Fortran 2008.
1289 * check.c (gfc_check_hypot): New function.
1290 * trans-intrinsic.c (gfc_intrinsic_map): Define ERFC_SCALE builtin.
1291 * options.c (set_default_std_flags): Allow Fortran 2008 by default.
1292 (form_from_filename): Add .f08 suffix.
1293 (gfc_handle_option): Handle -std=f2008 option.
1294 * simplify.c (gfc_simplify_hypot): New function.
1295 * gfortran.texi: Document Fortran 2008 status and file extensions.
1296 * intrinsic.texi: Document new BESSEL_{J,Y}{0,1,N} intrinsics,
1297 as well as HYPOT and ERFC_SCALED. Update documentation of ERF,
1298 ERFC, GAMMA, LGAMMA, ASINH, ACOSH and ATANH.
1299 * invoke.texi: Document the new -std=f2008 option.
1300
1301 2008-03-02 Jakub Jelinek <jakub@redhat.com>
1302
1303 * gfortranspec.c (lang_specific_driver): Update copyright notice
1304 dates.
1305
1306 2008-02-29 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1307
1308 PR fortran/35059
1309 * expr.c (find_array_element): Modify traversing the constructor to
1310 avoid trying to access NULL memory pointed to by next for the
1311 last element. (find_array_section): Exit while loop if cons->next is
1312 NULL.
1313 * trans-expr.c (gfc_conv_scalar_char_value): Initialize gfc_typespec.
1314 (gfc_conv_function_call): Same.
1315 * decl.c (gfc_match_implicit): Same.
1316 * trans-intrinsic.c (gfc_conv_intrinsic_sr_kind): Same.
1317
1318 2008-02-28 Daniel Franke <franke.daniel@gmail.com>
1319
1320 PR fortran/31463
1321 PR fortran/33950
1322 PR fortran/34296
1323 * lang.opt: Added -Wreturn-type.
1324 * options.c (gfc_handle_option): Recognize -Wreturn-type.
1325 * trans-decl.c (gfc_trans_deferred_vars): Emit warnings for funtions
1326 where the result value is not set.
1327 (gfc_generate_function_code): Likewise.
1328 (generate_local_decl): Emit warnings for funtions whose RESULT
1329 variable is not set.
1330
1331 2008-02-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1332
1333 PR fortran/34868
1334 * trans-expr.c (gfc_conv_variable): Don't build indirect
1335 references when explicit interface is mandated.
1336 * resolve.c (resolve_formal_arglist): Set attr.always_explicit
1337 on the result symbol as well as the procedure symbol.
1338
1339 2008-02-27 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1340
1341 PR fortran/33387
1342 * trans.h: Remove prototypes for gfor_fndecl_math_exponent4,
1343 gfor_fndecl_math_exponent8, gfor_fndecl_math_exponent10 and
1344 gfor_fndecl_math_exponent16.
1345 * f95-lang.c (build_builtin_fntypes): Add new function types.
1346 (gfc_init_builtin_functions): Add new builtins for nextafter,
1347 frexp, ldexp, fabs, scalbn and inf.
1348 * iresolve.c (gfc_resolve_rrspacing): Don't add hidden arguments.
1349 (gfc_resolve_scale): Don't convert type of second argument.
1350 (gfc_resolve_set_exponent): Likewise.
1351 (gfc_resolve_size): Don't add hidden arguments.
1352 * trans-decl.c: Remove gfor_fndecl_math_exponent4,
1353 gfor_fndecl_math_exponent8, gfor_fndecl_math_exponent10 and
1354 gfor_fndecl_math_exponent16.
1355 * trans-intrinsic.c (gfc_intrinsic_map): Remove intrinsics
1356 for scalbn, fraction, nearest, rrspacing, set_exponent and
1357 spacing.
1358 (gfc_conv_intrinsic_exponent): Directly call frexp.
1359 (gfc_conv_intrinsic_fraction, gfc_conv_intrinsic_nearest,
1360 gfc_conv_intrinsic_spacing, gfc_conv_intrinsic_rrspacing,
1361 gfc_conv_intrinsic_scale, gfc_conv_intrinsic_set_exponent): New
1362 functions.
1363 (gfc_conv_intrinsic_function): Use the new functions above.
1364
1365 2008-02-26 Tobias Burnus <burnus@net-b.de>
1366
1367 PR fortran/35033
1368 * interface.c (check_operator_interface): Show better line for error
1369 messages; fix constrains for user-defined assignment operators.
1370 (gfc_extend_assign): Fix constrains for user-defined assignment
1371 operators.
1372
1373 2008-02-26 Tom Tromey <tromey@redhat.com>
1374
1375 * trans-io.c (set_error_locus): Remove old location code.
1376 * trans-decl.c (gfc_set_decl_location): Remove old location code.
1377 * f95-lang.c (gfc_init): Remove test of USE_MAPPED_LOCATION.
1378 * scanner.c (gfc_gobble_whitespace): Remove old location code.
1379 (get_file): Likewise.
1380 (preprocessor_line): Likewise.
1381 (load_file): Likewise.
1382 (gfc_new_file): Likewise.
1383 * trans.c (gfc_trans_runtime_check): Remove old location code.
1384 (gfc_get_backend_locus): Likewise.
1385 (gfc_set_backend_locus): Likewise.
1386 * data.c (gfc_assign_data_value): Remove old location code.
1387 * error.c (show_locus): Remove old location code.
1388 * gfortran.h (gfc_linebuf): Remove old location code.
1389 (gfc_linebuf_linenum): Remove old-location variant.
1390
1391 2008-02-25 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1392
1393 PR fortran/34729
1394 * trans-const.c (gfc_build_string_const): Don't call gettext.
1395 (gfc_build_localized_string_const): New function.
1396 * trans-const.h (gfc_build_localized_string_const): New prototype.
1397 * trans.c (gfc_trans_runtime_check): Use
1398 gfc_build_localized_string_const instead of gfc_build_string_const.
1399 (gfc_call_malloc): Likewise.
1400 (gfc_allocate_with_status): Likewise.
1401 (gfc_allocate_array_with_status): Likewise.
1402 (gfc_deallocate_with_status): Likewise.
1403 (gfc_call_realloc): Likewise.
1404 * trans-io.c (gfc_trans_io_runtime_check): Likewise.
1405
1406 2008-02-24 Tobias Schlüter <tobi@gcc.gnu.org>
1407
1408 * arith.c: Update copyright years.
1409 * arith.h: Likewise.
1410 * array.c: Likewise.
1411 * bbt.c: Likewise.
1412 * check.c: Likewise.
1413 * data.c: Likewise.
1414 * data.h: Likewise.
1415 * decl.c: Likewise.
1416 * dependency.c: Likewise.
1417 * dependency.h: Likewise.
1418 * dump-parse-tree.c: Likewise.
1419 * error.c: Likewise.
1420 * expr.c: Likewise.
1421 * gfc-internals.texi: Likewise.
1422 * gfortran.h: Likewise.
1423 * gfortran.texi: Likewise.
1424 * gfortranspec.c: Likewise.
1425 * interface.c: Likewise.
1426 * intrinsic.c: Likewise.
1427 * intrinsic.h: Likewise.
1428 * intrinsic.texi: Likewise.
1429 * invoke.texi: Likewise.
1430 * io.c: Likewise.
1431 * iresolve.c: Likewise.
1432 * iso-c-binding.def: Likewise.
1433 * iso-fortran-env.def: Likewise.
1434 * lang-specs.h: Likewise.
1435 * lang.opt: Likewise.
1436 * libgfortran.h: Likewise.
1437 * match.c: Likewise.
1438 * match.h: Likewise.
1439 * matchexp.c: Likewise.
1440 * misc.c: Likewise.
1441 * module.c: Likewise.
1442 * openmp.c: Likewise.
1443 * options.c: Likewise.
1444 * parse.c: Likewise.
1445 * parse.h: Likewise.
1446 * primary.c: Likewise.
1447 * resolve.c: Likewise.
1448 * scanner.c: Likewise.
1449 * simplify.c: Likewise.
1450 * st.c: Likewise.
1451 * symbol.c: Likewise.
1452 * target-memory.c: Likewise.
1453 * target-memory.h: Likewise.
1454 * trans-array.h: Likewise.
1455 * trans-const.h: Likewise.
1456 * trans-stmt.h: Likewise.
1457 * trans-types.c: Likewise.
1458 * trans-types.h: Likewise.
1459 * types.def: Likewise.
1460
1461 2008-02-24 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1462
1463 PR fortran/35223
1464 * simplify.c (gfc_simplify_ibclr), (gfc_simplify_ibits),
1465 (gfc_simplify_ibset): Remove call to range_check.
1466 (simplify_cmplx), (gfc_simplify_dble), (gfc_simplify_float)
1467 (gfc_simplify_real): Add call gfc_clear_ts to initialize the
1468 temporary gfc_typspec variable.
1469
1470 2008-02-24 Tobias Schlüter <tobi@gcc.gnu.org>
1471
1472 * trans-array.c (gfc_conv_descriptor_data_get,
1473 gfc_conv_descriptor_data_set_internal,
1474 gfc_conv_descriptor_data_addr, gfc_conv_descriptor_offset,
1475 gfc_conv_descriptor_dtype, gfc_conv_descriptor_dimension,
1476 gfc_conv_descriptor_stride, gfc_conv_descriptor_lbound,
1477 gfc_conv_descriptor_ubound, gfc_trans_create_temp_array,
1478 gfc_conv_array_transpose, gfc_grow_array,
1479 gfc_trans_array_constructor_subarray,
1480 gfc_trans_array_constructor_value, gfc_trans_scalarized_loop_end,
1481 gfc_array_init_size, gfc_array_allocate, gfc_array_deallocate,
1482 gfc_conv_array_initializer, gfc_trans_array_bounds,
1483 gfc_trans_auto_array_allocation, gfc_trans_dummy_array_bias,
1484 gfc_get_dataptr_offset, gfc_conv_array_parameter,
1485 gfc_trans_dealloc_allocated, get_full_array_size,
1486 gfc_duplicate_allocatable, structure_alloc_comps): Use fold_buildN
1487 instead of buildN.
1488 * trans-expr.c (gfc_conv_expr_present, gfc_conv_missing_dummy,
1489 gfc_conv_component_ref, gfc_conv_cst_int_power,
1490 gfc_conv_function_call, gfc_trans_structur_assign): Likewise.
1491 * trans-common.c (create_common): Likewise.
1492 * trans-openmp.c (gfc_trans_omp_atomic, gfc_trans_omp_do):
1493 Likewise.
1494 * trans-const.c (gfc_conv_constant_to_tree): Likewise.
1495 * trans-stmt.c (gfc_trans_goto, gfc_trans_return, gfc_trans_do,
1496 gfc_trans_integer_select, gfc_trans_character_select,
1497 gfc_trans_forall_loop, compute_overall_iter_number,
1498 gfc_trans_forall_1, gfc_evaluate_where_mask, gfc_trans_allocate,
1499 gfc_trans_deallocate): Likewise.
1500 * trans.c (gfc_build_addr_expr, gfc_trans_runtime_check,
1501 gfc_allocate_with_status, gfc_allocate_array_with_status,
1502 gfc_deallocate_with_status): Likewise.
1503 * f95-lang.c (gfc_truthvalue_conversion): Likewise.
1504 * trans-io.c (set_parameter_const, set_parameter_value,
1505 set_parameter_ref, set_string, set_internal_unit, io_result,
1506 set_error_locus, nml_get_addr_expr, transfer_expr): Likewise.
1507 * trans-decl.c (gfc_build_qualified_array, build_entry_thunks,
1508 gfc_get_fake_result_decl, gfc_trans_auto_character_variable,
1509 gfc_generate_function_code): Likewise.
1510 * convert.c (convert): Likewise.
1511 * trans-intrinsic.c (gfc_conv_intrinsic_conversion,
1512 build_fixbound_expr, build_fix_expr, gfc_conv_intrinsic_aint,
1513 gfc_conv_intrinsic_int, gfc_conv_intrinsic_imagpart,
1514 gfc_conv_intrinsic_conjg, gfc_conv_intrinsic_abs,
1515 gfc_conv_intrinsic_cmplx, gfc_conv_intrinsic_mod,
1516 gfc_conv_intrinsic_dim, gfc_conv_intrinsic_dprod,
1517 gfc_conv_intrinsic_ctime, gfc_conv_intrinsic_fdate,
1518 gfc_conv_intrinsic_ttynam, gfc_conv_intrinsic_minmax,
1519 gfc_conv_intrinsic_minmax_char, gfc_conv_intrinsic_count,
1520 gfc_conv_intrinsic_arith, gfc_conv_intrinsic_dot_product,
1521 gfc_conv_intrinsic_minmaxloc, gfc_conv_intrinsic_minmaxval,
1522 gfc_conv_intrinsic_btest, gfc_conv_intrinsic_not,
1523 gfc_conv_intrinsic_ibits, gfc_conv_intrinsic_ishft,
1524 gfc_conv_intrinsic_ichar, gfc_conv_intrinsic_size,
1525 gfc_conv_intrinsic_array_transfer, gfc_conv_intrinsic_transfer,
1526 gfc_conv_allocated, gfc_conv_associated, gfc_conv_intrinsic_trim,
1527 gfc_conv_intrinsic_repeat): Likewise.
1528
1529 2008-02-23 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1530
1531 PR target/25477
1532 * trans-expr.c (gfc_conv_power_op): Use BUILT_IN_CPOW{F,,L}.
1533 * f95-lang.c (gfc_init_builtin_functions): Define BUILT_IN_CPOW{F,,L}.
1534 * trans.h (gfor_fndecl_math_cpow, gfor_fndecl_math_cpowf,
1535 gfor_fndecl_math_cpowl10, gfor_fndecl_math_cpowl16): Remove.
1536 * trans-decl.c: Likewise.
1537
1538 2008-02-22 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1539
1540 PR fortran/35059
1541 * expr.c (find_array_element): Modify traversing the constructor to
1542 avoid trying to access NULL memory pointed to by next for the
1543 last element. (find_array_section): Exit while loop if cons->next is
1544 NULL.
1545
1546 2008-02-22 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1547
1548 PR fortran/34907
1549 * iresolve.c (resolve_mask_arg): Add gfc_clear_ts to initialize
1550 structure.
1551 (gfc_resolve_aint): Likewise.
1552 (gfc_resolve_anint): Likewise.
1553 (gfc_resolve_besn): Likewise.
1554 (gfc_resolve_cshift): Likewise.
1555 (gfc_resolve_ctime): Likewise.
1556 (gfc_resolve_eoshift): Likewise.
1557 (gfc_resolve_index_func): Likewise.
1558 (gfc_resolve_isatty): Likewise.
1559 (gfc_resolve_malloc): Likewise.
1560 (gfc_resolve_rrspacing): Likewise.
1561 (gfc_resolve_scale): Likewise.
1562 (gfc_resolve_set_exponent): Likewise.
1563 (gfc_resolve_spacing): Likewise.
1564 (gfc_resolve_spacing): Likewise.
1565 (gfc_resolve_fgetc): Likewise.
1566 (gfc_resolve_fputc): Likewise.
1567 (gfc_resolve_ftell): Likewise.
1568 (gfc_resolve_ttynam): Likewise.
1569 (gfc_resolve_alarm_sub): Likewise.
1570 (gfc_resolve_mvbits): Likewise.
1571 (gfc_resolve_getarg): Likewise.
1572 (gfc_resolve_signal_sub): Likewise.
1573 (gfc_resolve_exit): Likewise.
1574 (gfc_resolve_flush): Likewise.
1575 (gfc_resolve_free): Likewise.
1576 (gfc_resolve_ctime_sub): Likewise.
1577 (gfc_resolve_fgetc_sub): Likewise.
1578 (gfc_resolve_fputc_sub): Likewise.
1579 (gfc_resolve_fseek_sub): Likewise.
1580 (gfc_resolve_ftell_sub): Likewise.
1581 (gfc_resolve_ttynam_sub): Likewise.
1582
1583 2008-02-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1584
1585 * gfc-internals.texi: Fix typos and markup nits.
1586 * gfortran.texi: Likewise.
1587 * intrinsic.texi: Likewise.
1588
1589 2008-02-21 Richard Guenther <rguenther@suse.de>
1590
1591 * trans-expr.c (gfc_conv_expr_op): Expand INTRINSIC_PARENTHESES
1592 as unary PAREN_EXPR for real and complex typed expressions.
1593 (gfc_conv_unary_op): Fold the built tree.
1594
1595 2008-02-20 Tobias Burnus <burnus@net-b.de>
1596
1597 PR fortran/34997
1598 * match.c (gfc_match_name): Improve error message for '$'.
1599
1600 2008-02-19 Daniel Franke <franke.daniel@gmail.com>
1601
1602 PR fortran/35030
1603 * expr.c (gfc_check_pointer_assign): Add type and kind information
1604 to type-mismatch message.
1605 (gfc_check_assign): Unify error messages.
1606
1607 2008-02-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1608
1609 PR fortran/34952
1610 * gfortran.texi: Create new section for unimplemented extensions.
1611 Add "STRUCTURE and RECORD" and "ENCODE and DECODE statements".
1612 Remove "smaller projects" list. Fix a few typos.
1613
1614 2008-02-15 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1615
1616 * intrinsic.texi: Rename INDEX node to avoid clashing with
1617 index.html on case-insensitive systems.
1618
1619 2008-02-15 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1620
1621 PR fortran/35150
1622 * trans-expr.c (gfc_conv_function_call): Force evaluation of
1623 se->expr.
1624
1625 2008-02-10 Daniel Franke <franke.daniel@gmail.com>
1626
1627 PR fortran/35019
1628 * lang.opt: Allow '-J<dir>' next to '-J <dir>',
1629 likewise '-I <dir>' and '-I<dir>'.
1630
1631 2008-02-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1632
1633 PR other/35107
1634 * Make-lang.in (f951): Add $(GMPLIBS).
1635
1636 2008-02-05 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1637
1638 PR fortran/35037
1639 * trans-common.c (build_field): Mark fields as volatile when needed.
1640
1641 2008-02-05 Tobias Burnus <burnus@net-b.de>
1642
1643 PR fortran/35093
1644 * data.c (gfc_assign_data_value): Only free "size" if
1645 it has not already been freed.
1646
1647 2008-02-05 Paul Thomas <pault@gcc.gnu.org>
1648
1649 PR fortran/34945
1650 * array.c (match_array_element_spec): Remove check for negative
1651 array size.
1652 (gfc_resolve_array_spec): Add check for negative size.
1653
1654 2008-02-05 Paul Thomas <pault@gcc.gnu.org>
1655
1656 PR fortran/32315
1657 * data.c (gfc_assign_data_value): Add bounds check for array
1658 references.
1659
1660 2008-02-04 Daniel Franke <franke.daniel@gmail.com>
1661
1662 * resolve.c (resolve_where): Fix typo.
1663 (gfc_resolve_where_code_in_forall): Likewise.
1664
1665 2008-02-03 Paul Thomas <pault@gcc.gnu.org>
1666
1667 PR fortran/32760
1668 * resolve.c (resolve_allocate_deallocate): New function.
1669 (resolve_code): Call it for allocate and deallocate.
1670 * match.c (gfc_match_allocate, gfc_match_deallocate) : Remove
1671 the checking of the STAT tag and put in above new function.
1672 * primary,c (match_variable): Do not fix flavor of host
1673 associated symbols yet if the type is not known.
1674
1675 2008-01-31 Paul Thomas <pault@gcc.gnu.org>
1676
1677 PR fortran/34910
1678 * expr.c (gfc_check_assign): It is an error to assign
1679 to a sibling procedure.
1680
1681 2008-01-30 Paul Thomas <pault@gcc.gnu.org>
1682
1683 PR fortran/34975
1684 * symbol.c (gfc_delete_symtree, gfc_undo_symbols): Rename
1685 delete_symtree to gfc_delete_symtree.
1686 * gfortran.h : Add prototype for gfc_delete_symtree.
1687 * module.c (load_generic_interfaces): Transfer symbol to a
1688 unique symtree and delete old symtree, instead of renaming.
1689 (read_module): The rsym and the found symbol are the same, so
1690 the found symtree can be deleted.
1691
1692 PR fortran/34429
1693 * decl.c (match_char_spec): Remove the constraint on deferred
1694 matching of functions and free the length expression.
1695 delete_symtree to gfc_delete_symtree.
1696 (gfc_match_type_spec): Whitespace.
1697 (gfc_match_function_decl): Defer characteristic association for
1698 all types except BT_UNKNOWN.
1699 * parse.c (decode_specification_statement): Only derived type
1700 function matching is delayed to the end of specification.
1701
1702 2008-01-28 Tobias Burnus <burnus@net-b.de>
1703
1704 PR libfortran/34980
1705 * simplify.c (gfc_simplify_shape): Simplify rank zero arrays.
1706
1707 2008-01-27 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1708
1709 PR fortran/34990
1710 * array.c (gfc_check_constructor_type): Revert clearing the expression.
1711
1712 2008-01-26 Tobias Burnus <burnus@net-b.de>
1713
1714 PR fortran/34848
1715 * trans-expr.c (gfc_conv_function_call): Don't call
1716 gfc_add_interface_mapping if the expression is NULL.
1717
1718 2008-01-26 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1719
1720 PR fortran/31610
1721 * trans-array.c (gfc_trans_create_temp_array): Remove call to
1722 gcc_assert (integer_zerop (loop->from[n])).
1723
1724 2008-01-25 Daniel Franke <franke.daniel@gmail.com>
1725
1726 PR fortran/34661
1727 * resolve.c (resolve_where): Added check if user-defined assignment
1728 operator is an elemental subroutine.
1729 (gfc_resolve_where_code_in_forall): Likewise.
1730
1731 2008-01-24 Daniel Franke <franke.daniel@gmail.com>
1732
1733 PR fortran/33375
1734 PR fortran/34858
1735 * gfortran.h: Revert changes from 2008-01-17.
1736 * match.c: Likewise.
1737 * symbol.c: Likewise.
1738 (gfc_undo_symbols): Undo namespace changes related to common blocks.
1739
1740 2008-01-24 Daniel Franke <franke.daniel@gmail.com>
1741
1742 PR fortran/34202
1743 * data.c (formalize_structure_cons): Skip formalization on
1744 empty structures.
1745
1746 2008-01-24 Daniel Franke <franke.daniel@gmail.com>
1747
1748 * gfortran.texi (OpenMP): Extended existing documentation.
1749 (contributors): Added major contributors of 2008 that were
1750 not listed yet.
1751 (proposed extensions): Removed implemented items.
1752
1753 2008-01-24 Paul Thomas <pault@gcc.gnu.org>
1754
1755 PR fortran/34872
1756 * parse.c (next_statement) : If ST_GET_FCN_CHARACTERISTICS is
1757 seen, check for a statement label and, if present, delete it
1758 and set the locus to the start of the statement.
1759
1760 2008-01-22 Paul Thomas <pault@gcc.gnu.org>
1761
1762 PR fortran/34875
1763 * trans-io.c (gfc_trans_transfer): If the array reference in a
1764 read has a vector subscript, use gfc_conv_subref_array_arg to
1765 copy back the temporary.
1766
1767 2008-01-22 Tobias Burnus <burnus@net-b.de>
1768
1769 PR fortran/34848
1770 * interface.c (compare_actual_formal): Fix adding type
1771 to missing_arg_type for absent optional arguments.
1772
1773 2008-01-22 Tobias Burnus <burnus@net-b.de>
1774
1775 PR fortran/34907
1776 * parse.c (parse_spec): Change = into ==.
1777
1778 2008-01-22 Daniel Franke <franke.daniel@gmail.com>
1779
1780 PR fortran/34915
1781 * expr.c (check_elemental): Fix check for valid data types.
1782
1783 2008-01-22 Tobias Burnus <burnus@net-b.de>
1784
1785 PR fortran/34899
1786 * scanner.c (load_line): Support <tab><digit> continuation lines.
1787 * invoke.texi (-Wtabs): Document this.
1788
1789 2008-01-22 Paul Thomas <pault@gcc.gnu.org>
1790
1791 PR fortran/34896
1792 * module.c (read_module): Set use_rename attribute.
1793
1794 2007-01-21 Tobias Burnus <burnus@net-b.de>
1795
1796 PR fortran/34901
1797 * interface.c (compare_parameter): Improved error message
1798 for arguments of same type and mismatched kinds.
1799
1800 2008-01-20 Paul Thomas <pault@gcc.gnu.org>
1801
1802 PR fortran/34861
1803 * resolve.c (resolve_entries): Do not do an array bounds check
1804 if the result symbols are the same.
1805
1806 PR fortran/34854
1807 * module.c (read_module) : Hide the symtree of the previous
1808 version of the symbol if this symbol is renamed.
1809
1810 2008-01-20 Paul Thomas <pault@gcc.gnu.org>
1811
1812 PR fortran/34784
1813 * array.c (gfc_check_constructor_type): Clear the expression ts
1814 so that the checking starts from the deepest level of array
1815 constructor.
1816 * primary.c (match_varspec): If an unknown type is changed to
1817 default character and the attempt to match a substring fails,
1818 change it back to unknown.
1819
1820 PR fortran/34785
1821 * trans-array.c (gfc_add_loop_ss_code) : If ss->string_length is
1822 NULL for an array constructor, use the cl.length expression to
1823 build it.
1824 (gfc_conv_array_parameter): Change call to gfc_evaluate_now to
1825 a tree assignment.
1826
1827 2008-01-19 Thomas Koenig <tkoenig@gcc.gnu.org>
1828
1829 PR fortran/34817
1830 PR fortran/34838
1831 * iresolve.c (gfc_resolve_all): Remove conversion of mask
1832 argument to kind=1 by removing call to resolve_mask_arg().
1833 (gfc_resolve_any): Likewise.
1834
1835 2008-01-19 Tobias Burnus <burnus@net-b.de>
1836
1837 PR fortran/34760
1838 * primary.c (match_variable): Handle FL_UNKNOWN without
1839 uneducated guessing.
1840 (match_variable): Improve error message.
1841
1842 2008-01-18 Tobias Burnus <burnus@net-b.de>
1843
1844 PR fortran/32616
1845 * interface.c (get_expr_storage_size): Return storage size
1846 for array element designators.
1847 (compare_actual_formal): Reject unequal string sizes for
1848 assumed-shape dummy arguments. And fix error message for
1849 array-sections with vector subscripts.
1850
1851 2008-01-17 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1852
1853 PR fortran/34556
1854 * simplify.c (is_constant_array_expr): New static function that returns
1855 true if the given expression is an array and is constant.
1856 (gfc_simplify_reshape): Use new function.
1857
1858 2008-01-17 H.J. Lu <hongjiu.lu@intel.com>
1859
1860 PR fortran/33375
1861 * symbol.c (free_common_tree): Renamed to ...
1862 (gfc_free_common_tree): This. Remove static.
1863 (gfc_free_namespace): Updated.
1864
1865 * gfortran.h (gfc_free_common_tree): New.
1866
1867 * match.c (gfc_match_common): Call gfc_free_common_tree () with
1868 gfc_current_ns->common_root and set gfc_current_ns->common_root
1869 to NULL on syntax error.
1870
1871 2008-01-18 Richard Sandiford <rsandifo@nildram.co.uk>
1872
1873 PR fortran/34686
1874 * trans-expr.c (gfc_conv_function_call): Use proper
1875 type for returned character pointers.
1876
1877 2008-01-17 Paul Thomas <pault@gcc.gnu.org>
1878
1879 PR fortran/34429
1880 PR fortran/34431
1881 PR fortran/34471
1882 * decl.c : Remove gfc_function_kind_locus and
1883 gfc_function_type_locus. Add gfc_matching_function.
1884 (match_char_length): If matching a function and the length
1885 does not match, return MATCH_YES and try again later.
1886 (gfc_match_kind_spec): The same.
1887 (match_char_kind): The same.
1888 (gfc_match_type_spec): The same for numeric and derived types.
1889 (match_prefix): Rename as gfc_match_prefix.
1890 (gfc_match_function_decl): Except for function valued character
1891 lengths, defer applying kind, type and charlen info until the
1892 end of specification block.
1893 gfortran.h (gfc_statement): Add ST_GET_FCN_CHARACTERISTICS.
1894 parse.c (decode_specification_statement): New function.
1895 (decode_statement): Call it when a function has kind = -1. Set
1896 and reset gfc_matching function, as function statement is being
1897 matched.
1898 (match_deferred_characteristics): Simplify with a single call
1899 to gfc_match_prefix. Do appropriate error handling. In any
1900 case, make sure that kind = -1 is reset or corrected.
1901 (parse_spec): Call above on seeing ST_GET_FCN_CHARACTERISTICS.
1902 Throw an error if kind = -1 after last specification statement.
1903 parse.h : Prototype for gfc_match_prefix.
1904
1905 2008-01-16 Tobias Burnus <burnus@net-b.de>
1906
1907 PR fortran/34796
1908 * interface.c (compare_parameter): Allow AS_DEFERRED array
1909 elements and reject attr.pointer array elemenents.
1910 (get_expr_storage_size): Return storage size of elements of
1911 assumed-shape and pointer arrays.
1912
1913 2008-01-15 Sebastian Pop <sebastian.pop@amd.com>
1914
1915 * f95-lang.c (gfc_init_builtin_functions): Initialize GOMP builtins
1916 for flag_tree_parallelize_loops.
1917
1918 2008-01-15 Thomas Koenig <tkoenig@gcc.gnu.org>
1919
1920 PR libfortran/34671
1921 * iresolve.c (gfc_resolve_all): Call resolve_mask_arg.
1922 (gfc_resolve_any): Likewise.
1923 (gfc_resolve_count): Likewise. Don't append kind of
1924 argument to function name.
1925
1926 2008-01-13 Tobias Burnus <burnus@net-b.de>
1927
1928 PR fortran/34665
1929 * resolve.c (resolve_actual_arglist): For expressions,
1930 also check for assume-sized arrays.
1931 * interface.c (compare_parameter): Move F2003 character checks
1932 here, print error messages here, reject elements of
1933 assumed-shape array as argument to dummy arrays.
1934 (compare_actual_formal): Update for the changes above.
1935
1936 2008-01-13 Tobias Burnus <burnus@net-b.de>
1937
1938 PR fortran/34763
1939 * decl.c (contained_procedure): Only check directly preceeding state.
1940
1941 2008-01-13 Tobias Burnus <burnus@net-b.de>
1942
1943 PR fortran/34759
1944 * check.c (gfc_check_shape): Accept array ranges of
1945 assumed-size arrays.
1946
1947 2008-01-12 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1948
1949 PR fortran/34432
1950 * match.c (gfc_match_name): Don't error if leading character is a '(',
1951 just return MATCH_NO.
1952
1953 2008-01-11 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1954
1955 PR fortran/34722
1956 * trans-io.c (create_dummy_iostat): Commit the symbol.
1957
1958 2008-01-11 Paul Thomas <pault@gcc.gnu.org>
1959
1960 PR fortran/34537
1961 * simplify.c (gfc_simplify_transfer): Return NULL if the size
1962 of the element is unavailable and only assign character length
1963 to the result, if 'mold' is constant.
1964
1965 2008-01-10 Paul Thomas <pault@gcc.gnu.org>
1966
1967 PR fortran/34396
1968 * trans-array.c (gfc_trans_array_ctor_element): Use gfc_trans_string_copy
1969 to assign strings and perform bounds checks on the string length.
1970 (get_array_ctor_strlen): Remove bounds checking.
1971 (gfc_trans_array_constructor): Initialize string length checking.
1972 * trans-array.h : Add prototype for gfc_trans_string_copy.
1973
1974 2008-01-08 Richard Guenther <rguenther@suse.de>
1975
1976 PR fortran/34706
1977 PR tree-optimization/34683
1978 * trans-types.c (gfc_get_array_type_bounds): Use an array type
1979 with known size for accesses if that is known.
1980
1981 2008-01-08 Paul Thomas <pault@gcc.gnu.org>
1982
1983 PR fortran/34476
1984 * expr.c (find_array_element): Check that the array bounds are
1985 constant before using them. Use lower, as well as upper bound.
1986 (check_restricted): Allow implied index variable.
1987
1988 2008-01-08 Paul Thomas <pault@gcc.gnu.org>
1989
1990 PR fortran/34681
1991 * trans_array.c (gfc_trans_deferred_array): Do not null the
1992 data pointer on entering scope, nor deallocate it on leaving
1993 scope, if the symbol has the 'save' attribute.
1994
1995 PR fortran/34704
1996 * trans_decl.c (gfc_finish_var_decl): Derived types with
1997 allocatable components and an initializer must be TREE_STATIC.
1998
1999 2008-01-07 Paul Thomas <pault@gcc.gnu.org>
2000
2001 PR fortran/34672
2002 * module.c (write_generic): Rewrite completely.
2003 (write_module): Change call to write_generic.
2004
2005 2008-01-06 Jerry DeLisle <jvdelisle@gcc.gnu.org>
2006
2007 PR fortran/34659
2008 * scanner.c (load_line): Do not count ' ' as printable when checking for
2009 continuations.
2010
2011 2008-01-06 Paul Thomas <pault@gcc.gnu.org>
2012
2013 PR fortran/34545
2014 * module.c (load_needed): If the namespace has no proc_name
2015 give it the module symbol.
2016
2017 2008-01-06 Jerry DeLisle <jvdelisle@gcc.gnu.org>
2018
2019 PR fortran/34387
2020 * trans-expr.c (gfc_conv_missing_dummy): Use a temporary to type convert
2021 the dummy variable expression, test for NULL, and pass the variable
2022 address to the called function.
2023
2024 2007-01-06 Tobias Burnus <burnus@net-b.de>
2025
2026 PR fortran/34658
2027 * match.c (gfc_match_common): Remove blank common in
2028 DATA BLOCK warning.
2029 * resolve.c (resolve_common_vars): New function.
2030 (resolve_common_blocks): Move checks to resolve_common_vars
2031 and invoke that function.
2032 (resolve_types): Call resolve_common_vars for blank commons.
2033
2034 2008-01-06 Tobias Burnus <burnus@net-b.de>
2035
2036 PR fortran/34655
2037 * resolve.c (resolve_equivalence_derived): Reject derived types with
2038 default initialization if equivalenced with COMMON variable.
2039
2040 2008-01-06 Tobias Burnus <burnus@net-b.de>
2041
2042 PR fortran/34654
2043 * io.c (check_io_constraints): Disallow unformatted I/O for
2044 internal units.
2045
2046 2008-01-06 Tobias Burnus <burnus@net-b.de>
2047
2048 PR fortran/34660
2049 * resolve.c (resolve_formal_arglist): Reject dummy procedure in
2050 ELEMENTAL functions.
2051
2052 2008-01-06 Tobias Burnus <burnus@net-b.de>
2053
2054 PR fortran/34662
2055 * interface.c (compare_actual_formal): Reject parameter
2056 actual to intent(out) dummy.
2057
2058 2008-01-04 Tobias Burnus <burnus@net-b.de>
2059
2060 PR fortran/34557
2061 * primary.c (match_varspec): Gobble whitespace before
2062 checking for '('.