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