]> gcc.gnu.org Git - gcc.git/blob - gcc/fortran/ChangeLog
dfaeeec31eab27a2c33270b60ec56f0a9918e9fc
[gcc.git] / gcc / fortran / ChangeLog
1 2010-06-18 Tobias Burnus <burnus@net-b.de>
2
3 PR fortran/44556
4 * resolve.c (resolve_allocate_deallocate): Properly check
5 part-refs in stat=/errmsg= for invalid use.
6
7 2010-06-17 Janus Weil <janus@gcc.gnu.org>
8
9 PR fortran/44558
10 * resolve.c (resolve_typebound_function,resolve_typebound_subroutine):
11 Return directly in case of an error.
12
13 2010-06-16 Janus Weil <janus@gcc.gnu.org>
14
15 PR fortran/44549
16 * gfortran.h (gfc_get_typebound_proc): Modified Prototype.
17 * decl.c (match_procedure_in_type): Give a unique gfc_typebound_proc
18 structure to each procedure in a procedure list.
19 * module.c (mio_typebound_proc): Add NULL argument to
20 'gfc_get_typebound_proc'.
21 * symbol.c (gfc_get_typebound_proc): Add a new argument, which is used
22 to initialize the new structure.
23
24 2010-06-15 Janus Weil <janus@gcc.gnu.org>
25
26 PR fortran/43388
27 * gfortran.h (gfc_expr): Add new member 'mold'.
28 * match.c (gfc_match_allocate): Implement the MOLD tag.
29 * resolve.c (resolve_allocate_expr): Ditto.
30 * trans-stmt.c (gfc_trans_allocate): Ditto.
31
32 2010-06-15 Jakub Jelinek <jakub@redhat.com>
33
34 PR fortran/44536
35 * trans-openmp.c (gfc_omp_predetermined_sharing): Don't return
36 OMP_CLAUSE_DEFAULT_SHARED for artificial vars with
37 GFC_DECL_SAVED_DESCRIPTOR set.
38 (gfc_omp_report_decl): New function.
39 * trans.h (gfc_omp_report_decl): New prototype.
40 * f95-lang.c (LANG_HOOKS_OMP_REPORT_DECL): Redefine.
41
42 2010-06-13 Daniel Franke <franke.daniel@gmail.com>
43
44 PR fortran/31588
45 PR fortran/43954
46 * gfortranspec.c (lang_specific_driver): Removed deprecation
47 warning for -M.
48 * lang.opt: Add options -M, -MM, -MD, -MMD, -MF, -MG, -MP, -MT, -MQ.
49 * lang-specs.h (CPP_FORWARD_OPTIONS): Add -M* options.
50 * cpp.h (gfc_cpp_makedep): New.
51 (gfc_cpp_add_dep): New.
52 (gfc_cpp_add_target): New.
53 * cpp.c (gfc_cpp_option): Add deps* members.
54 (gfc_cpp_makedep): New.
55 (gfc_cpp_add_dep): New.
56 (gfc_cpp_add_target): New.
57 (gfc_cpp_init_options): Initialize new options.
58 (gfc_cpp_handle_option): Handle new options.
59 (gfc_cpp_post_options): Map new options to libcpp-options.
60 (gfc_cpp_init): Handle deferred -MQ and -MT options.
61 (gfc_cpp_done): If requested, write dependencies to file.
62 * module.c (gfc_dump_module): Add a module filename as target.
63 * scanner.c (open_included_file): New parameter system; add the
64 included file as dependency.
65 (gfc_open_included_file): Add the included file as dependency.
66 (gfc_open_intrinsic_module): Likewise.
67 * invoke.texi: Removed deprecation warning for -M.
68 * gfortran.texi: Removed Makefile-dependencies project.
69
70 2010-06-12 Daniel Franke <franke.daniel@gmail.com>
71
72 * resolve.c (resolve_global_procedure): Improved checking if an
73 explicit interface is required.
74
75 2010-06-12 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
76
77 * trans-decl.c (gfc_build_intrinsic_function_decls): Fix
78 return type.
79 * trans-intrinsic.c (gfc_conv_intrinsic_fdate): Fix argument type.
80 (gfc_conv_intrinsic_ttynam): Likewise.
81 (gfc_conv_intrinsic_trim): Likewise.
82
83 2010-06-12 Janus Weil <janus@gcc.gnu.org>
84
85 PR fortran/40117
86 * decl.c (match_procedure_in_type): Allow procedure lists (F08).
87
88 2010-06-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
89
90 * trans-intrinsic.c (gfc_build_intrinsic_lib_fndecls): Fix comment.
91
92 2010-06-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
93
94 * mathbuiltins.def: Add builtins that do not directly correspond
95 to a Fortran intrinsic, with new macro OTHER_BUILTIN.
96 * f95-lang.c (gfc_init_builtin_functions): Define OTHER_BUILTIN.
97 * trans-intrinsic.c (gfc_intrinsic_map_t): Remove
98 code_{r,c}{4,8,10,16} fields. Add
99 {,complex}{float,double,long_double}_built_in fields.
100 (gfc_intrinsic_map): Adjust definitions of DEFINE_MATH_BUILTIN,
101 DEFINE_MATH_BUILTIN_C and LIB_FUNCTION accordingly. Add
102 definition of OTHER_BUILTIN.
103 (real_compnt_info): Remove unused struct.
104 (builtin_decl_for_precision, builtin_decl_for_float_kind): New
105 functions.
106 (build_round_expr): Call builtin_decl_for_precision instead of
107 series of if-else.
108 (gfc_conv_intrinsic_aint): Call builtin_decl_for_float_kind
109 instead of a switch.
110 (gfc_build_intrinsic_lib_fndecls): Match
111 {real,complex}{4,8,10,16}decl into the C-style built_in_decls.
112 (gfc_get_intrinsic_lib_fndecl): Do not hardcode floating-point
113 kinds.
114 (gfc_conv_intrinsic_lib_function): Go through all the extended
115 gfc_intrinsic_map.
116 (gfc_trans_same_strlen_check): Call builtin_decl_for_float_kind
117 instead of a switch.
118 (gfc_conv_intrinsic_abs): Likewise.
119 (gfc_conv_intrinsic_mod): Likewise.
120 (gfc_conv_intrinsic_sign): Likewise.
121 (gfc_conv_intrinsic_fraction): Likewise.
122 (gfc_conv_intrinsic_nearest): Likewise.
123 (gfc_conv_intrinsic_spacing): Likewise.
124 (gfc_conv_intrinsic_rrspacing): Likewise.
125 (gfc_conv_intrinsic_scale): Likewise.
126 (gfc_conv_intrinsic_set_exponent): Likewise.
127
128 2010-06-11 Paul Thomas <pault@gcc.gnu.org>
129
130 PR fortran/42051
131 PR fortran/43896
132 * trans-expr.c (gfc_conv_derived_to_class): Handle array-valued
133 functions with CLASS formal arguments.
134
135 2010-06-10 Janus Weil <janus@gcc.gnu.org>
136
137 PR fortran/44207
138 * resolve.c (conformable_arrays): Handle allocatable components.
139
140 2010-06-10 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
141
142 PR fortran/38273
143 * gfortran.texi: Document that Cray pointers cannot be function
144 results.
145
146 2010-06-10 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
147
148 PR fortran/36234
149 * gfortran.texi: Document lack of support for syntax
150 "complex FUNCTION name*16()", and existence of alternative
151 legacy syntax "complex*16 FUNCTION name()".
152
153 2010-06-10 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
154
155 PR fortran/43032
156 * intrinsic.texi (FLUSH): Note the difference between FLUSH and
157 POSIX's fsync(), and how to call the latter from Fortran code.
158
159 2010-06-10 Daniel Franke <franke.daniel@gmail.com>
160
161 PR fortran/44457
162 * interface.c (compare_actual_formal): Reject actual arguments with
163 array subscript passed to ASYNCHRONOUS dummys.
164
165 2010-06-10 Daniel Kraft <d@domob.eu>
166
167 PR fortran/38936
168 * gfortran.h (enum gfc_statement): Add ST_ASSOCIATE, ST_END_ASSOCIATE.
169 (struct gfc_symbol): New field `assoc'.
170 (struct gfc_association_list): New struct.
171 (struct gfc_code): New struct `block' in union, move `ns' there
172 and add association list.
173 (gfc_free_association_list): New method.
174 (gfc_has_vector_subscript): Made public;
175 * match.h (gfc_match_associate): New method.
176 * parse.h (enum gfc_compile_state): Add COMP_ASSOCIATE.
177 * decl.c (gfc_match_end): Handle ST_END_ASSOCIATE.
178 * interface.c (gfc_has_vector_subscript): Made public.
179 (compare_actual_formal): Rename `has_vector_subscript' accordingly.
180 * match.c (gfc_match_associate): New method.
181 (gfc_match_select_type): Change reference to gfc_code's `ns' field.
182 * primary.c (match_variable): Don't allow names associated to expr here.
183 * parse.c (decode_statement): Try matching ASSOCIATE statement.
184 (case_exec_markers, case_end): Add ASSOCIATE statement.
185 (gfc_ascii_statement): Hande ST_ASSOCIATE and ST_END_ASSOCIATE.
186 (parse_associate): New method.
187 (parse_executable): Handle ST_ASSOCIATE.
188 (parse_block_construct): Change reference to gfc_code's `ns' field.
189 * resolve.c (resolve_select_type): Ditto.
190 (resolve_code): Ditto.
191 (resolve_block_construct): Ditto and add comment.
192 (resolve_select_type): Set association list in generated BLOCK to NULL.
193 (resolve_symbol): Resolve associate names.
194 * st.c (gfc_free_statement): Change reference to gfc_code's `ns' field
195 and free association list.
196 (gfc_free_association_list): New method.
197 * symbol.c (gfc_new_symbol): NULL new field `assoc'.
198 * trans-stmt.c (gfc_trans_block_construct): Change reference to
199 gfc_code's `ns' field.
200
201 2010-06-10 Kai Tietz <kai.tietz@onevision.com>
202
203 * error.c (error_print): Pre-initialize loc by NULL.
204 * openmp.c (resolve_omp_clauses): Add explicit
205 braces to avoid ambigous else.
206 * array.c (match_subscript): Pre-initialize m to MATCH_ERROR.
207
208 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
209
210 * gfc-internals.texi: Move to GFDL 1.3.
211 * gfortran.texi: Ditto.
212 * intrinsic.texi: Ditto.
213 * invoke.texi: Ditto.
214
215 2010-06-09 Daniel Franke <franke.daniel@gmail.com>
216
217 PR fortran/44347
218 * check.c (gfc_check_selected_real_kind): Verify that the
219 actual arguments are scalar.
220
221 2010-06-09 Daniel Franke <franke.daniel@gmail.com>
222
223 PR fortran/44359
224 * intrinsic.c (gfc_convert_type_warn): Further improve -Wconversion.
225
226 2010-06-09 Janus Weil <janus@gcc.gnu.org>
227
228 PR fortran/44430
229 * dump-parse-tree.c (show_symbol): Avoid infinite loop.
230
231 2010-06-09 Steven G. Kargl <kargl@gcc.gnu.org>
232
233 * fortran/symbol.c (check_conflict): Remove an invalid conflict check.
234
235 2010-06-09 Steven G. Kargl <kargl@gcc.gnu.org>
236
237 * fortran/intrinsic.c (add_functions): Change gfc_check_btest,
238 gfc_check_ibclr, and gfc_check_ibset to gfc_check_bitfcn.
239 * fortran/intrinsic.h: Remove prototypes for gfc_check_btest,
240 gfc_check_ibclr, and gfc_check_ibset. Add prototype for
241 gfc_check_bitfcn.
242 * fortran/check.c (nonnegative_check, less_than_bitsize1,
243 less_than_bitsize2): New functions.
244 (gfc_check_btest): Renamed to gfc_check_bitfcn. Use
245 nonnegative_check and less_than_bitsize1.
246 (gfc_check_ibclr, gfc_check_ibset): Removed.
247 (gfc_check_ibits,gfc_check_mvbits): Use nonnegative_check and
248 less_than_bitsize1.
249
250 2010-06-09 Janus Weil <janus@gcc.gnu.org>
251
252 PR fortran/44211
253 * resolve.c (resolve_typebound_function,resolve_typebound_subroutine):
254 Resolve references.
255
256 2010-06-09 Kai Tietz <kai.tietz@onevision.com>
257
258 * resolve.c (resolve_deallocate_expr): Avoid warning
259 about possible use of iunitialized sym.
260 (resolve_allocate_expr): Pre-initialize sym by NULL.
261
262 2010-06-09 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
263
264 PR fortran/43040
265 * f95-lang.c (gfc_init_builtin_functions): Remove comment.
266
267 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
268
269 * trans-types.c (gfc_get_nodesc_array_type): Use typed GC
270 allocation.
271 (gfc_get_array_type_bounds): Likewise.
272
273 * trans-decl.c (gfc_allocate_lang_decl): Likewise.
274 (gfc_find_module): Likewise.
275
276 * f95-lang.c (pushlevel): Likewise.
277
278 * trans.h (struct lang_type): Add variable_size GTY option.
279 (struct lang_decl): Likewise.
280
281 2010-06-08 Tobias Burnus <burnus@net-b.de>
282
283 PR fortran/44446
284 * symbol.c (check_conflict): Move protected--external/procedure check ...
285 * resolve.c (resolve_select_type): ... to the resolution stage.
286
287 2010-06-07 Tobias Burnus <burnus@net-b.de>
288
289 * options.c (gfc_handle_option): Fix -fno-recursive.
290
291 2010-06-07 Tobias Burnus <burnus@net-b.de>
292
293 * gfc-internals.texi (copyrights-gfortran): Fix copyright year format.
294 * gfortran.texi (copyrights-gfortran): Ditto.
295
296 2010-06-07 Joseph Myers <joseph@codesourcery.com>
297
298 * lang.opt (fshort-enums): Define using Var and VarExists.
299 * options.c (gfc_handle_option): Don't set flag_short_enums here.
300
301 2010-06-05 Paul Thomas <pault@gcc.gnu.org>
302 Janus Weil <janus@gcc.gnu.org>
303
304 PR fortran/43945
305 * resolve.c (get_declared_from_expr): Move to before
306 resolve_typebound_generic_call. Make new_ref and class_ref
307 ignorable if set to NULL.
308 (resolve_typebound_generic_call): Once we have resolved the
309 generic call, check that the specific instance is that which
310 is bound to the declared type.
311 (resolve_typebound_function,resolve_typebound_subroutine): Avoid
312 freeing 'class_ref->next' twice.
313
314 2010-06-05 Paul Thomas <pault@gcc.gnu.org>
315
316 PR fortran/43895
317 * trans-array.c (structure_alloc_comps): Dereference scalar
318 'decl' if it is a REFERENCE_TYPE. Tidy expressions containing
319 TREE_TYPE (decl).
320
321 2010-06-04 Joseph Myers <joseph@codesourcery.com>
322
323 * gfortranspec.c (append_arg, lang_specific_driver): Use
324 GCC-specific formats in diagnostics.
325
326 2010-06-02 Tobias Burnus <burnus@net-b.de>
327
328 PR fortran/44360
329 * parse.c (gfc_fixup_sibling_symbols): Do not "fix" use-associated
330 symbols.
331
332 2010-06-01 Jerry DeLisle <jvdelisle@gcc.gnu.org>
333
334 PR fortran/44371
335 * match.c (gfc_match_stopcode): Move gfc_match_eos call inside
336 condition block.
337
338 2010-05-31 Steven G. Kargl <kargl@gcc.gnu.org>
339
340 * fortran/gfortran.texi: Fix typos in description of variable-format-
341 expressions.
342
343 2010-05-31 Thomas Koenig <tkoenig@gcc.gnu.org>
344
345 PR fortran/36928
346 * dependency.c (gfc_check_section_vs_section): Check
347 for interleaving array assignments without conflicts.
348
349 2010-05-30 Janus Weil <janus@gcc.gnu.org>
350
351 * gcc/fortran/gfortran.h (CLASS_DATA): New macro for accessing the
352 $data component of a class container.
353 * gcc/fortran/decl.c (attr_decl1): Use macro CLASS_DATA.
354 * gcc/fortran/expr.c (gfc_check_pointer_assign,gfc_check_assign_symbol,
355 gfc_has_ultimate_allocatable,gfc_has_ultimate_pointer): Ditto.
356 * gcc/fortran/interface.c (matching_typebound_op): Ditto.
357 * gcc/fortran/match.c (gfc_match_allocate, gfc_match_deallocate): Ditto.
358 * gcc/fortran/parse.c (parse_derived): Ditto.
359 * gcc/fortran/primary.c (gfc_match_varspec, gfc_variable_attr,
360 gfc_expr_attr): Ditto.
361 * gcc/fortran/resolve.c (resolve_structure_cons, find_array_spec,
362 resolve_deallocate_expr, resolve_allocate_expr, resolve_select_type,
363 resolve_fl_var_and_proc, resolve_typebound_procedure,
364 resolve_fl_derived): Ditto.
365 * gcc/fortran/symbol.c (gfc_type_compatible): Restructured.
366 * gcc/fortran/trans-array.c (structure_alloc_comps): Use macro
367 CLASS_DATA.
368 * gcc/fortran/trans-decl.c (gfc_get_symbol_decl,
369 gfc_trans_deferred_vars): Ditto.
370 * gcc/fortran/trans-stmt.c (gfc_trans_allocate): Ditto.
371
372 2010-05-28 Tobias Burnus <burnus@net-b.de>
373
374 * options.c (gfc_handle_option): Fix handling of -fno-whole-file.
375
376 2010-05-28 Joseph Myers <joseph@codesourcery.com>
377
378 * gfortranspec.c (append_arg, lang_specific_driver): Use
379 fatal_error instead of fatal. Use warning instead of fprintf for
380 warnings.
381
382 2010-05-28 Joseph Myers <joseph@codesourcery.com>
383
384 * cpp.c (gfc_cpp_init_0): Use xstrerror instead of strerror.
385 * module.c (write_char, gfc_dump_module, gfc_use_module): Use
386 xstrerror instead of strerror.
387
388 2010-05-26 Joseph Myers <joseph@codesourcery.com>
389
390 * cpp.c (cb_cpp_error): Save and restore
391 global_dc->warn_system_headers, not variable warn_system_headers.
392
393 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
394
395 * fortran/f95-lang.c: Do not include libfuncs.h, expr.h, and except.h.
396
397 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
398
399 * trans-common.c: Do not include rtl.h, include output.h instead.
400 * trans-decl.c: Likewise.
401
402 2010-05-26 Paul Thomas <pault@gcc.gnu.org>
403
404 PR fortran/40011
405 * resolve.c (resolve_global_procedure): Resolve the gsymbol's
406 namespace before trying to reorder the gsymbols.
407
408 2010-05-25 Daniel Franke <franke.daniel@gmail.com>
409
410 PR fortran/30668
411 PR fortran/31346
412 PR fortran/34260
413 * resolve.c (resolve_global_procedure): Add check for global
414 procedures with implicit interfaces and assumed-shape or optional
415 dummy arguments. Verify that function return type, kind and string
416 lengths match.
417
418 2010-05-21 Tobias Burnus <burnus@net-b.de>
419
420 * gfortran.h: Do not include system.h.
421 * bbt.c: Include system.h.
422 * data.c: Ditto.
423 * dependency.c: Ditto.
424 * dump-parse-tree.c: Ditto.
425 * arith.h: Do not include gfortran.h.
426 * constructor.h: Do not include gfortran.h and splay-tree.h.
427 * match.h: Do not include gfortran.h.
428 * parse.h: Ditto.
429 * target-memory.h: Ditto.
430 * openmp.c: Do not include toplev.h and target.h.
431 * trans-stmt.c: Ditto not include toplev.h.
432 * primary.c: Ditto.
433 * trans-common.c: Tell why toplev.h is needed. And
434 do not include target.h.
435 * trans-expr.c: Tell why toplev.h is needed.
436 * trans-array.c: Ditto.
437 * trans-openmp.c: Ditto.
438 * trans-const.c: Ditto.
439 * trans.c: Ditto.
440 * trans-types.c: Ditto.
441 * trans-io.c: Ditto.
442 * trans-decl.c: Ditto.
443 * scanner.c: Ditto.
444 * convert.c: Ditto.
445 * trans-intrinsic.c: Ditto.
446 * options.c: Ditto.
447
448 2010-05-22 Jerry DeLisle <jvdelisle@gcc.gnu.org>
449
450 PR fortran/43851
451 * match.c (gfc_match_stopcode): Use gfc_match_init_expr. Go to cleanup
452 before returning MATCH_ERROR. Add check for scalar. Add check for
453 default integer kind.
454
455 2010-05-22 Janus Weil <janus@gcc.gnu.org>
456
457 PR fortran/44212
458 * match.c (gfc_match_select_type): On error jump back out of the local
459 namespace.
460 * parse.c (parse_derived): Defer creation of vtab symbols to resolution
461 stage, more precisely to ...
462 * resolve.c (resolve_fl_derived): ... this place.
463
464 2010-05-22 Janus Weil <janus@gcc.gnu.org>
465
466 PR fortran/44213
467 * resolve.c (ensure_not_abstract): Allow abstract types with
468 non-abstract ancestors.
469
470 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
471
472 * trans-const.c: Include realmpfr.h.
473 * Make-lang.in: Update dependencies.
474
475 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
476
477 * trans-const.c, trans-types.c, trans-intrinsic.c:
478 Clean up redundant includes.
479
480 2010-05-20 Daniel Franke <franke.daniel@gmail.com>
481
482 PR fortran/38407
483 * lang.opt (Wunused-dummy-argument): New option.
484 * gfortran.h (gfc_option_t): Add warn_unused_dummy_argument.
485 * options.c (gfc_init_options): Disable warn_unused_dummy_argument.
486 (set_Wall): Enable warn_unused_dummy_argument.
487 (gfc_handle_option): Set warn_unused_dummy_argument according to
488 command line.
489 * trans-decl.c (generate_local_decl): Separate warnings about
490 unused variables and unused dummy arguments.
491 * invoke.texi: Documented new option.
492
493 2010-05-20 Steven Bosscher <steven@gcc.gnu.org>
494
495 * trans-expr.c: Do not include convert.h, ggc.h, real.h, and gimple.h.
496 (gfc_conv_string_tmp): Do not assert type comparibilty.
497 * trans-array.c: Do not include gimple.h, ggc.h, and real.h.
498 (gfc_conv_expr_descriptor): Remove assert.
499 * trans-common.c: Clarify why rtl.h and tm.h are included.
500 * trans-openmp.c: Do not include ggc.h and real.h.
501 Explain why gimple.h is included.
502 * trans-const.c: Do not include ggc.h.
503 * trans-stmt.c: Do not include gimple.h, ggc.h, and real.h.
504 * trans.c: Do not include ggc.h and real.h.
505 Explain why gimple.h is included.
506 * trans-types.c: Do not include tm.h. Explain why langhooks.h
507 and dwarf2out.h are included.
508 * trans-io.c: Do not include gimple.h and real.h.
509 * trans-decl.c: Explain why gimple.h, tm.h, and rtl.h are included.
510 * trans-intrinsic.c: Do not include gimple.h. Explain why tm.h
511 is included.
512
513 2010-05-20 Tobias Burnus <burnus@net-b.de>
514
515 * options.c (gfc_init_options,gfc_post_options): Enable
516 flag_associative_math by default.
517
518 2010-05-19 Jerry DeLisle <jvdelisle@gcc.gnu.org>
519
520 PR fortran/43851
521 * trans-stmt.c (gfc_trans_stop): Add generation of call to
522 gfortran_error_stop_numeric. Fix up some whitespace. Use stop_string for
523 blank STOP, handling a null expression. (gfc_trans_pause): Use
524 pause_string for blank PAUSE.
525 * trans.h: Add external function declaration for error_stop_numeric.
526 * trans-decl.c (gfc_build_builtin_function_decls): Add the building of
527 the declaration for the library call. Adjust whitespaces.
528 * match.c (gfc_match_stopcode): Remove use of the actual stop code to
529 signal no stop code. Match the expression following the stop and pass
530 that to the translators. Remove the old use of digit matching. Add
531 checks that the stop_code expression is INTEGER or CHARACTER, constant,
532 and if CHARACTER, default character KIND.
533
534 2010-05-19 Daniel Franke <franke.daniel@gmail.com>
535
536 PR fortran/44055
537 * lang.opt (Wconversion-extra): New option.
538 * gfortran.h (gfc_option_t): Add warn_conversion_extra.
539 * options.c (gfc_init_options): Disable -Wconversion-extra by default.
540 (set_Wall): Enable -Wconversion.
541 (gfc_handle_option): Set warn_conversion_extra.
542 * intrinsic.c (gfc_convert_type_warn): Ignore kind conditions
543 introduced for -Wconversion if -Wconversion-extra is present.
544 * invoke.texi: Add -Wconversion to -Wall; document new behaviour of
545 -Wconversion; document -Wconversion-extra.
546
547 2010-05-19 Daniel Franke <franke.daniel@gmail.com>
548
549 PR fortran/42360
550 * gfortran.h (gfc_has_default_initializer): New.
551 * expr.c (gfc_has_default_initializer): New.
552 * resolve.c (has_default_initializer): Removed, use
553 gfc_has_default_initializer() instead. Updated all callers.
554 * trans-array.c (has_default_initializer): Removed, use
555 gfc_has_default_initializer() instead. Updated all callers.
556 * trans-decl.c (generate_local_decl): Do not check the
557 first component only to check for initializers, but use
558 gfc_has_default_initializer() instead.
559
560 2010-05-19 Daniel Franke <franke.daniel@gmail.com>
561
562 PR fortran/38404
563 * primary.c (match_string_constant): Move start_locus just inside
564 the string.
565 * data.c (create_character_intializer): Clarified truncation warning.
566
567 2010-05-19 Daniel Franke <franke.daniel@gmail.com>
568
569 PR fortran/34505
570 * intrinsic.h (gfc_check_float): New prototype.
571 (gfc_check_sngl): New prototype.
572 * check.c (gfc_check_float): New.
573 (gfc_check_sngl): New.
574 * intrinsic.c (add_functions): Moved DFLOAT from aliasing DBLE
575 to be a specific for REAL. Added check routines for FLOAT, DFLOAT
576 and SNGL.
577 * intrinsic.texi: Removed individual nodes of FLOAT, DFLOAT and SNGL,
578 added them to the list of specifics of REAL instead.
579
580 2010-05-17 Janus Weil <janus@gcc.gnu.org>
581
582 PR fortran/43990
583 * trans-expr.c (gfc_conv_structure): Remove unneeded and buggy code.
584 This is now handled via 'gfc_class_null_initializer'.
585
586 2010-05-17 Janus Weil <janus@gcc.gnu.org>
587
588 * class.c (gfc_add_component_ref,gfc_class_null_initializer,
589 gfc_build_class_symbol,add_proc_component,add_proc_comps,
590 add_procs_to_declared_vtab1,copy_vtab_proc_comps,
591 add_procs_to_declared_vtab,add_generic_specifics,
592 add_generics_to_declared_vtab,gfc_find_derived_vtab,
593 find_typebound_proc_uop,gfc_find_typebound_proc,
594 gfc_find_typebound_user_op,gfc_find_typebound_intrinsic_op,
595 gfc_get_tbp_symtree): Moved here from other places.
596 * expr.c (gfc_add_component_ref,gfc_class_null_initializer): Move to
597 class.c.
598 * gfortran.h (gfc_build_class_symbol,gfc_find_derived_vtab,
599 gfc_find_typebound_proc,gfc_find_typebound_user_op,
600 gfc_find_typebound_intrinsic_op,gfc_get_tbp_symtree,
601 gfc_add_component_ref, gfc_class_null_initializer): Moved to class.c.
602 * Make-lang.in: Add class.o.
603 * symbol.c (gfc_build_class_symbol,add_proc_component,add_proc_comps,
604 add_procs_to_declared_vtab1,copy_vtab_proc_comps,
605 add_procs_to_declared_vtab,add_generic_specifics,
606 add_generics_to_declared_vtab,gfc_find_derived_vtab,
607 find_typebound_proc_uop,gfc_find_typebound_proc,
608 gfc_find_typebound_user_op,gfc_find_typebound_intrinsic_op,
609 gfc_get_tbp_symtree): Move to class.c.
610
611 2010-05-17 Nathan Froyd <froydnj@codesourcery.com>
612
613 * trans-types.c (gfc_init_types): Use build_function_type_list.
614 (gfc_get_ppc_type): Likewise.
615 * trans-decl.c (gfc_generate_constructors): Likewise.
616 * f95-lang.c (build_builtin_fntypes): Likewise.
617 (gfc_init_builtin_functions): Likewise.
618 (DEF_FUNCTION_TYPE_0): Likewise.
619 (DEF_FUNCTION_TYPE_1): Likewise.
620 (DEF_FUNCTION_TYPE_2): Likewise.
621 (DEF_FUNCTION_TYPE_3): Likewise.
622 (DEF_FUNCTION_TYPE_4): Likewise.
623 (DEF_FUNCTION_TYPE_5): Likewise.
624 (DEF_FUNCTION_TYPE_6): Likewise.
625 (DEF_FUNCTION_TYPE_7): Likewise. Use ARG7.
626 (DEF_FUNCTION_TYPE_VAR_0): Use build_varags_function_type_list.
627
628 2010-05-17 Nathan Froyd <froydnj@codesourcery.com>
629
630 * trans-array.c (gfc_trans_array_constructor_value): Use
631 build_constructor instead of build_constructor_from_list.
632 (gfc_build_constant_array_constructor): Likewise.
633 * trans-decl.c (create_main_function): Likewise.
634 * trans-stmt.c (gfc_trans_character_select): Likewise.
635
636 2010-05-17 Janus Weil <janus@gcc.gnu.org>
637
638 PR fortran/44044
639 * resolve.c (resolve_fl_var_and_proc): Move error messages here from ...
640 (resolve_fl_variable_derived): ... this place.
641 (resolve_symbol): Make sure function symbols (and their result
642 variables) are not resolved twice.
643
644 2010-05-16 Daniel Franke <franke.daniel@gmail.com>
645
646 PR fortran/35779
647 * array.c (match_array_list): Revert change from 2010-05-13.
648
649 2010-05-16 Richard Guenther <rguenther@suse.de>
650
651 * trans-decl.c (module_htab_decls_hash): Revert last change.
652
653 2010-05-16 Richard Guenther <rguenther@suse.de>
654
655 * trans-decl.c (module_htab_decls_hash): Use IDENTIFIER_HASH_VALUE.
656
657 2010-05-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
658
659 * options.c (set_Wall): Remove special logic for Wuninitialized
660 without -O.
661
662 2010-05-15 Janus Weil <janus@gcc.gnu.org>
663
664 PR fortran/44154
665 PR fortran/42647
666 * trans-decl.c (gfc_trans_deferred_vars): Modify ordering of
667 if branches.
668
669 2010-05-15 Janus Weil <janus@gcc.gnu.org>
670
671 PR fortran/43207
672 PR fortran/43969
673 * gfortran.h (gfc_class_null_initializer): New prototype.
674 * expr.c (gfc_class_null_initializer): New function to build a NULL
675 initializer for CLASS pointers.
676 * symbol.c (gfc_build_class_symbol): Modify internal naming of class
677 containers. Remove default NULL initialization of $data component.
678 * trans.c (gfc_allocate_array_with_status): Fix wording of an error
679 message.
680 * trans-expr.c (gfc_conv_initializer,gfc_trans_subcomponent_assign):
681 Use new function 'gfc_class_null_initializer'.
682 * trans-intrinsic.c (gfc_conv_allocated): Handle allocatable scalar
683 class variables.
684
685 2010-05-14 Steven G. Kargl <kargl@gcc.gnu.org>
686
687 PR fortran/44135
688 * fortran/interface.c (get_sym_storage_size): Use signed instead of
689 unsigned mpz_get_?i routines.
690
691 2010-05-14 Jakub Jelinek <jakub@redhat.com>
692
693 * trans.c (trans_code): Set backend locus early.
694 * trans-decl.c (gfc_get_fake_result_decl): Use source location
695 of the function instead of current input_location.
696
697 2010-05-13 Daniel Franke <franke.daniel@gmail.com>
698
699 PR fortran/35779
700 * intrinsic.c (gfc_init_expr): Renamed to gfc_init_expr_flag.
701 Updated all usages.
702 * expr.c (init_flag): Removed; use gfc_init_expr_flag everywhere.
703 * array.c (match_array_list): Pass on gfc_init_expr_flag when matching
704 iterators.
705
706 2010-05-13 Jakub Jelinek <jakub@redhat.com>
707
708 PR fortran/44036
709 * openmp.c (resolve_omp_clauses): Allow procedure pointers in clause
710 variable lists.
711 * trans-openmp.c (gfc_omp_privatize_by_reference): Don't privatize
712 by reference dummy procedures or non-dummy procedure pointers.
713 (gfc_omp_predetermined_sharing): Return
714 OMP_CLAUSE_DEFAULT_FIRSTPRIVATE for dummy procedures.
715
716 2010-05-11 Daniel Franke <franke.daniel@gmail.com>
717
718 PR fortran/43711
719 * openmp.c (gfc_match_omp_taskwait): Report unexpected characters
720 after OMP statement.
721 (gfc_match_omp_critical): Likewise.
722 (gfc_match_omp_flush): Likewise.
723 (gfc_match_omp_workshare): Likewise.
724 (gfc_match_omp_master): Likewise.
725 (gfc_match_omp_ordered): Likewise.
726 (gfc_match_omp_atomic): Likewise.
727 (gfc_match_omp_barrier): Likewise.
728 (gfc_match_omp_end_nowait): Likewise.
729
730 2010-05-11 Daniel Franke <franke.daniel@gmail.com>
731
732 PR fortran/31820
733 * resolve.c (validate_case_label_expr): Removed FIXME.
734 (resolve_select): Raise default warning on case labels out of range
735 of the case expression.
736
737 2010-05-10 Daniel Franke <franke.daniel@gmail.com>
738
739 PR fortran/27866
740 PR fortran/35003
741 PR fortran/42809
742 * intrinsic.c (gfc_convert_type_warn): Be more discriminative
743 about conversion warnings.
744
745 2010-05-10 Janus Weil <janus@gcc.gnu.org>
746
747 PR fortran/44044
748 * match.c (gfc_match_select_type): Move error message to
749 resolve_select_type.
750 * resolve.c (resolve_select_type): Error message moved here from
751 gfc_match_select_type. Correctly set type of temporary.
752
753 2010-05-10 Richard Guenther <rguenther@suse.de>
754
755 * trans-decl.c (gfc_build_library_function_decl): Split out
756 worker to ...
757 (build_library_function_decl_1): ... this new function.
758 Set a fnspec attribute if a specification was provided.
759 (gfc_build_library_function_decl_with_spec): New function.
760 (gfc_build_intrinsic_function_decls): Annotate internal_pack
761 and internal_unpack.
762
763 2010-05-07 Daniel Franke <franke.daniel@gmail.com>
764
765 PR fortran/40728
766 * intrinc.c (gfc_is_intrinsic): Do not prematurely mark symbol
767 as external.
768
769 2010-05-07 Jason Merrill <jason@redhat.com>
770
771 * trans-expr.c (gfc_conv_procedure_call): Rename nullptr to null_ptr
772 to avoid -Wc++-compat warning.
773
774 2010-05-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
775
776 PR 40989
777 * options.c (gfc_handle_option): Add argument kind.
778 * gfortran.h (gfc_handle_option): Update declaration.
779
780 2010-05-06 Tobias Burnus <burnus@net-b.de>
781
782 PR fortran/43985
783 * trans-types.c (gfc_sym_type): Mark Cray pointees as
784 GFC_POINTER_TYPE_P.
785
786 2010-05-05 Daniel Franke <franke.daniel@gmail.com>
787
788 PR fortran/32331
789 * resolve.c (traverse_data_list): Rephrase error message for
790 non-constant bounds in data-implied-do.
791
792 2010-05-05 Daniel Franke <franke.daniel@gmail.com>
793
794 PR fortran/24978
795 * gfortran.h: Removed repeat count from constructor, removed
796 all usages.
797 * data.h (gfc_assign_data_value_range): Changed return value from
798 void to gfc_try.
799 * data.c (gfc_assign_data_value): Add location to constructor element.
800 (gfc_assign_data_value_range): Call gfc_assign_data_value()
801 for each element in range. Return early if an error was generated.
802 * resolve.c (check_data_variable): Stop early if range assignment
803 generated an error.
804
805 2010-05-05 Janus Weil <janus@gcc.gnu.org>
806
807 PR fortran/43696
808 * resolve.c (resolve_fl_derived): Some fixes for class variables.
809 * symbol.c (gfc_build_class_symbol): Add separate class container for
810 class pointers.
811
812 2010-05-03 Steven G. Kargl <kargl@gcc.gnu.org>
813
814 PR fortran/43592
815 * fortran/parse.c (parse_interface): Do not dereference a NULL pointer.
816
817 2010-05-02 Tobias Burnus <burnus@net-b.de>
818
819 PR fortran/18918
820 * intrinsic.c (add_functions): Fix GFC_STD and add gfc_resolve_ calls
821 for lcobound, ucobound, image_index and this_image.
822 * intrinsic.h (gfc_resolve_lcobound, gfc_resolve_this_image,
823 gfc_resolve_image_index, gfc_resolve_ucobound): New prototypes.
824 * iresolve.c (gfc_resolve_lcobound, gfc_resolve_this_image,
825 gfc_resolve_image_index, gfc_resolve_ucobound, resolve_bound): New
826 functions.
827 (gfc_resolve_lbound, gfc_resolve_ubound): Use resolve_bound.
828
829 2010-04-30 Tobias Burnus <burnus@net-b.de>
830
831 PR fortran/18918
832 PR fortran/43931
833 * trans-types.c (gfc_get_array_descriptor_base): Fix index
834 calculation for array descriptor types.
835
836 2010-04-29 Janus Weil <janus@gcc.gnu.org>
837
838 PR fortran/43896
839 * symbol.c (add_proc_component,copy_vtab_proc_comps): Remove
840 initializers for PPC members of the vtabs.
841
842 2010-04-29 Janus Weil <janus@gcc.gnu.org>
843
844 PR fortran/42274
845 * symbol.c (add_proc_component,add_proc_comps): Correctly set the 'ppc'
846 attribute for all PPC members of the vtypes.
847 (copy_vtab_proc_comps): Copy the correct interface.
848 * trans.h (gfc_trans_assign_vtab_procs): Modified prototype.
849 * trans-expr.c (gfc_trans_assign_vtab_procs): Pass the derived type as
850 a dummy argument and make sure all PPC members of the vtab are
851 initialized correctly.
852 (gfc_conv_derived_to_class,gfc_trans_class_assign): Additional argument
853 in call to gfc_trans_assign_vtab_procs.
854 * trans-stmt.c (gfc_trans_allocate): Ditto.
855
856 2010-04-29 Paul Thomas <pault@gcc.gnu.org>
857
858 PR fortran/43326
859 * resolve.c (resolve_typebound_function): Renamed
860 resolve_class_compcall.Do all the detection of class references
861 here.
862 (resolve_typebound_subroutine): resolve_class_typebound_call
863 renamed. Otherwise same as resolve_typebound_function.
864 (gfc_resolve_expr): Call resolve_typebound_function.
865 (resolve_code): Call resolve_typebound_subroutine.
866
867 2010-04-29 Janus Weil <janus@gcc.gnu.org>
868
869 PR fortran/43492
870 * resolve.c (resolve_typebound_generic_call): For CLASS methods
871 pass back the specific symtree name, rather than the target
872 name.
873
874 2010-04-29 Paul Thomas <pault@gcc.gnu.org>
875
876 PR fortran/42353
877 * resolve.c (resolve_structure_cons): Make the initializer of
878 the vtab component 'extends' the same type as the component.
879
880 2010-04-29 Jerry DeLisle <jvdelisle@gcc.gnu.org>
881
882 PR fortran/42680
883 * interface.c (check_interface1): Pass symbol name rather than NULL to
884 gfc_compare_interfaces.(gfc_compare_interfaces): Add assert to
885 trap MULL. (gfc_compare_derived_types): Revert previous change
886 incorporated incorrectly during merge from trunk, r155778.
887 * resolve.c (check_generic_tbp_ambiguity): Pass symbol name rather
888 than NULL to gfc_compare_interfaces.
889 * symbol.c (add_generic_specifics): Likewise.
890
891 2010-02-29 Janus Weil <janus@gcc.gnu.org>
892
893 PR fortran/42353
894 * interface.c (gfc_compare_derived_types): Add condition for vtype.
895 * symbol.c (gfc_find_derived_vtab): Sey access to private.
896 (gfc_find_derived_vtab): Likewise.
897 * module.c (ab_attribute): Add enumerator AB_VTAB.
898 (mio_symbol_attribute): Use new attribute, AB_VTAB.
899 (check_for_ambiguous): Likewise.
900
901 2010-04-29 Paul Thomas <pault@gcc.gnu.org>
902 Janus Weil <janus@gcc.gnu.org>
903
904 PR fortran/41829
905 * trans-expr.c (select_class_proc): Remove function.
906 (conv_function_val): Delete reference to previous.
907 (gfc_conv_derived_to_class): Add second argument to the call to
908 gfc_find_derived_vtab.
909 (gfc_conv_structure): Exclude proc_pointer components when
910 accessing $data field of class objects.
911 (gfc_trans_assign_vtab_procs): New function.
912 (gfc_trans_class_assign): Add second argument to the call to
913 gfc_find_derived_vtab.
914 * symbol.c (gfc_build_class_symbol): Add delayed_vtab arg and
915 implement holding off searching for the vptr derived type.
916 (add_proc_component): New function.
917 (add_proc_comps): New function.
918 (add_procs_to_declared_vtab1): New function.
919 (copy_vtab_proc_comps): New function.
920 (add_procs_to_declared_vtab): New function.
921 (void add_generic_specifics): New function.
922 (add_generics_to_declared_vtab): New function.
923 (gfc_find_derived_vtab): Add second argument to the call to
924 gfc_find_derived_vtab. Add the calls to
925 add_procs_to_declared_vtab and add_generics_to_declared_vtab.
926 * decl.c (build_sym, build_struct): Use new arg in calls to
927 gfc_build_class_symbol.
928 * gfortran.h : Add vtype bitfield to symbol_attr. Remove the
929 definition of struct gfc_class_esym_list. Modify prototypes
930 of gfc_build_class_symbol and gfc_find_derived_vtab.
931 * trans-stmt.c (gfc_trans_allocate): Add second argument to the
932 call to gfc_find_derived_vtab.
933 * module.c : Add the vtype attribute.
934 * trans.h : Add prototype for gfc_trans_assign_vtab_procs.
935 * resolve.c (resolve_typebound_generic_call): Add second arg
936 to pass along the generic name for class methods.
937 (resolve_typebound_call): The same.
938 (resolve_compcall): Use the second arg to carry the generic
939 name from the above. Remove the reference to class_esym.
940 (check_members, check_class_members, resolve_class_esym,
941 hash_value_expr): Remove functions.
942 (resolve_class_compcall, resolve_class_typebound_call): Modify
943 to use vtable rather than member by member calls.
944 (gfc_resolve_expr): Modify second arg in call to
945 resolve_compcall.
946 (resolve_select_type): Add second arg in call to
947 gfc_find_derived_vtab.
948 (resolve_code): Add second arg in call resolve_typebound_call.
949 (resolve_fl_derived): Exclude vtypes from check for late
950 procedure definitions. Likewise for checking of explicit
951 interface and checking of pass arg.
952 * iresolve.c (gfc_resolve_extends_type_of): Add second arg in
953 calls to gfc_find_derived_vtab.
954 * match.c (select_type_set_tmp): Use new arg in call to
955 gfc_build_class_symbol.
956 * trans-decl.c (gfc_get_symbol_decl): Complete vtable if
957 necessary.
958 * parse.c (endType): Finish incomplete classes.
959
960 2010-04-28 Tobias Burnus <burnus@net-b.de>
961
962 PR fortran/18918
963 PR fortran/43919
964 * simplify.c (simplify_cobound): Handle scalar coarrays.
965
966 2010-04-27 Tobias Burnus <burnus@net-b.de>
967
968 * gfc-internals.texi: Update copyright year.
969 * gfortran.texi: Ditto.
970 * invoke.texi: Ditto.
971
972 2010-04-27 Tobias Burnus <burnus@net-b.de>
973
974 PR fortran/18918
975 * resolve.c (resolve_allocate_expr): Allow array coarrays.
976 * trans-types.h (gfc_get_array_type_bounds): Update prototype.
977 * trans-types.c (gfc_get_array_type_bounds,
978 gfc_get_array_descriptor_base): Add corank argument.
979 * trans-array.c (gfc_array_init_size): Handle corank.
980 (gfc_trans_create_temp_array, gfc_array_allocate,
981 gfc_conv_expr_descriptor): Add corank argument to call.
982 * trans-stmt.c (gfc_trans_pointer_assign_need_temp): Ditto.
983
984 2010-04-24 Steven G. Kargl <kargl@gcc.gnu.org>
985
986 PR fortran/30073
987 PR fortran/43793
988 * trans-array.c (gfc_trans_array_bound_check): Use TREE_CODE instead
989 of mucking with a tree directly.
990
991 2010-04-24 Jerry DeLisle <jvdelisle@gcc.gnu.org>
992
993 PR fortran/43832
994 * io.c (gfc_match_open): Remove branch to syntax error. Add call to
995 gfc_error with new error message.
996
997 2010-04-24 Paul Thomas <pault@gcc.gnu.org>
998
999 PR fortran/43841
1000 PR fortran/43843
1001 * trans-expr.c (gfc_conv_expr): Supply an address expression for
1002 GFC_SS_REFERENCE.
1003 (gfc_conv_expr_reference): Call gfc_conv_expr and return for
1004 GFC_SS_REFERENCE.
1005 * trans-array.c (gfc_add_loop_ss_code): Store the value rather
1006 than the address of a GFC_SS_REFERENCE.
1007 * trans.h : Change comment on GFC_SS_REFERENCE.
1008
1009 2010-04-22 Richard Guenther <rguenther@suse.de>
1010
1011 PR fortran/43829
1012 * resolve.c (gfc_resolve_index): Wrap around ...
1013 (gfc_resolve_index_1): ... this. Add parameter to allow
1014 any integer kind index type.
1015 (resolve_array_ref): Allow any integer kind for the start
1016 index of an array ref.
1017
1018 2010-04-21 Jakub Jelinek <jakub@redhat.com>
1019
1020 PR fortran/43836
1021 * f95-lang.c (gfc_define_builtin): Set TREE_NOTHROW on
1022 the decl.
1023
1024 2010-04-20 Harald Anlauf <anlauf@gmx.de>
1025
1026 * intrinsic.c (sort_actual): Remove 'is' in error message.
1027
1028 2010-04-20 Paul Thomas <pault@gcc.gnu.org>
1029
1030 PR fortran/43227
1031 * resolve.c (resolve_fl_derived): If a component character
1032 length has not been resolved, do so now.
1033 (resolve_symbol): The same as above for a symbol character
1034 length.
1035 * trans-decl.c (gfc_create_module_variable): A 'length' decl is
1036 not needed for a character valued, procedure pointer.
1037
1038 PR fortran/43266
1039 * resolve.c (ensure_not_abstract_walker): If 'overriding' is
1040 not found, return FAILURE rather than ICEing.
1041
1042 2010-04-19 Jakub Jelinek <jakub@redhat.com>
1043
1044 PR fortran/43339
1045 * openmp.c (gfc_resolve_do_iterator): Only make iteration vars for
1046 sequential loops private in the innermost containing task region.
1047
1048 2010-04-18 Eric Botcazou <ebotcazou@adacore.com>
1049
1050 * f95-lang.c (gfc_init_decl_processing): Remove second argument in call
1051 to build_common_tree_nodes.
1052
1053 2010-04-17 Steven G. Kargl <kargl@gcc.gnu.org>
1054
1055 PR fortran/31538
1056 * fortran/trans-array.c (gfc_conv_ss_startstride): Remove the use of
1057 gfc_msg_bounds by using 'Array bound mismatch' directly.
1058 (gfc_trans_dummy_array_bias): Remove the use of gfc_msg_bounds. Reword
1059 error message to include the mismatch in the extent of array bound.
1060 * fortran/trans.c: Remove gfc_msg_bounds. It is only used in one place.
1061 * fortran/trans.h: Remove extern definition of gfc_msg_bounds.
1062
1063 2010-04-17 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1064
1065 * gfortran.texi: Update information on temporary file locations.
1066
1067 2010-04-16 Jakub Jelinek <jakub@redhat.com>
1068
1069 * trans-decl.c (gfc_build_qualified_array): Ensure
1070 ubound.N and lbound.N artificial variable names don't appear
1071 in debug info.
1072
1073 2010-04-15 Steven G. Kargl <kargl@gcc.gnu.org>
1074
1075 PR fortran/30073
1076 * trans-array.c (gfc_trans_array_bound_check): Eliminate a redundant
1077 block of code. Set name to the variable associated with the descriptor.
1078
1079 2010-04-15 Jakub Jelinek <jakub@redhat.com>
1080
1081 * trans-decl.c (gfc_build_qualified_array): Clear DECL_IGNORED_P
1082 on VAR_DECL LBOUND and/or UBOUND, even for -O1.
1083
1084 2010-04-14 Steven G. Kargl <kargl@gcc.gnu.org>
1085
1086 * intrinsic.texi: Add the missing specific name of intrinsic
1087 procedure where the specific name is identical to the generic name.
1088 Fix inconsistent or mismatch in the argument names in intrinsic
1089 procedure descriptions. Add the SCALAR allocatable description to
1090 ALLOCATED.
1091
1092 2010-04-14 Tobias Burnus <burnus@net-b.de>
1093
1094 PR fortran/18918
1095 * array.c (gfc_find_array_ref): Handle codimensions.
1096 (gfc_match_array_spec,gfc_match_array_ref): Use gfc_fatal_error.
1097 * check.c (is_coarray, dim_corank_check, gfc_check_lcobound,
1098 gfc_check_image_index, gfc_check_this_image, gfc_check_ucobound):
1099 New functions.
1100 * gfortran.h (gfc_isym_id): Add GFC_ISYM_IMAGE_INDEX,
1101 GFC_ISYM_LCOBOUND, GFC_ISYM_THIS_IMAGE,
1102 GFC_ISYM_UCOBOUND.
1103 * intrinsic.h (add_functions): Add this_image, image_index,
1104 lcobound and ucobound intrinsics.
1105 * intrinsic.c (gfc_check_lcobound,gfc_check_ucobound,
1106 gfc_check_image_index, gfc_check_this_image,
1107 gfc_simplify_image_index, gfc_simplify_lcobound,
1108 gfc_simplify_this_image, gfc_simplify_ucobound):
1109 New function prototypes.
1110 * intrinsic.texi (IMAGE_INDEX, LCOBOUND, THIS_IMAGE
1111 IMAGE_INDEX): Document new intrinsic functions.
1112 * match.c (gfc_match_critical, sync_statement): Make -fcoarray=none
1113 error fatal.
1114 * simplify.c (simplify_bound_dim): Handle coarrays.
1115 (simplify_bound): Update simplify_bound_dim call.
1116 (gfc_simplify_num_images): Add -fcoarray=none check.
1117 (simplify_cobound, gfc_simplify_lcobound, gfc_simplify_ucobound,
1118 gfc_simplify_ucobound, gfc_simplify_ucobound): New functions.
1119
1120 2010-04-14 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1121
1122 PR fortran/43747
1123 * constructor.c: Fix typo in comment.
1124 * expr.c (find_array_section): Add check for max array limit.
1125
1126 2010-04-13 Iain Sandoe <iains@gcc.gnu.org>
1127
1128 PR bootstrap/31400
1129 * gfortranspec.c (lookup_option): Check for -static and return
1130 OPTION_static.
1131 (lang_specific_driver): Break when OPTION_static is discovered.
1132
1133 2010-04-12 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1134
1135 * array.c (extract_element): Restore function from trunk.
1136 (gfc_get_array_element): Restore function from trunk.
1137 (gfc_expand_constructor): Restore check against
1138 flag_max_array_constructor.
1139 * constructor.c (node_copy_and_append): Delete unused.
1140 * gfortran.h: Delete comment and extra include.
1141 * constructor.h: Bump copyright and clean up TODO comments.
1142 * resolve.c: Whitespace.
1143
1144 2010-04-12 Daniel Franke <franke.daniel@gmail.com>
1145
1146 * simplify.c (compute_dot_product): Replaced usage of ADVANCE macro
1147 with direct access access to elements. Adjusted prototype, fixed all
1148 callers.
1149 (gfc_simplify_dot_product): Removed duplicate check for zero-sized
1150 array.
1151 (gfc_simplify_matmul): Removed usage of ADVANCE macro.
1152 (gfc_simplify_spread): Removed workaround, directly insert elements
1153 at a given array position.
1154 (gfc_simplify_transpose): Likewise.
1155 (gfc_simplify_pack): Replaced usage of ADVANCE macro with corresponding
1156 function calls.
1157 (gfc_simplify_unpack): Likewise.
1158
1159 2010-04-12 Daniel Franke <franke.daniel@gmail.com>
1160
1161 * simplify.c (only_convert_cmplx_boz): Renamed to ...
1162 (convert_boz): ... this and moved to start of file.
1163 (gfc_simplify_abs): Whitespace fix.
1164 (gfc_simplify_acos): Whitespace fix.
1165 (gfc_simplify_acosh): Whitespace fix.
1166 (gfc_simplify_aint): Whitespace fix.
1167 (gfc_simplify_dint): Whitespace fix.
1168 (gfc_simplify_anint): Whitespace fix.
1169 (gfc_simplify_and): Replaced if-gate by more common switch-over-type.
1170 (gfc_simplify_dnint): Whitespace fix.
1171 (gfc_simplify_asin): Whitespace fix.
1172 (gfc_simplify_asinh): Moved creation of result-expr out of switch.
1173 (gfc_simplify_atan): Likewise.
1174 (gfc_simplify_atanh): Whitespace fix.
1175 (gfc_simplify_atan2): Whitespace fix.
1176 (gfc_simplify_bessel_j0): Removed ATTRIBUTE_UNUSED.
1177 (gfc_simplify_bessel_j1): Likewise.
1178 (gfc_simplify_bessel_jn): Likewise.
1179 (gfc_simplify_bessel_y0): Likewise.
1180 (gfc_simplify_bessel_y1): Likewise.
1181 (gfc_simplify_bessel_yn): Likewise.
1182 (gfc_simplify_ceiling): Reorderd statements.
1183 (simplify_cmplx): Use convert_boz(), check for constant arguments.
1184 Whitespace fix.
1185 (gfc_simplify_cmplx): Use correct default kind. Removed check for
1186 constant arguments.
1187 (gfc_simplify_complex): Replaced if-gate. Removed check for
1188 constant arguments.
1189 (gfc_simplify_conjg): Whitespace fix.
1190 (gfc_simplify_cos): Whitespace fix.
1191 (gfc_simplify_cosh): Replaced if-gate by more common switch-over-type.
1192 (gfc_simplify_dcmplx): Removed check for constant arguments.
1193 (gfc_simplify_dble): Use convert_boz() and gfc_convert_constant().
1194 (gfc_simplify_digits): Whitespace fix.
1195 (gfc_simplify_dim): Whitespace fix.
1196 (gfc_simplify_dprod): Reordered statements.
1197 (gfc_simplify_erf): Whitespace fix.
1198 (gfc_simplify_erfc): Whitespace fix.
1199 (gfc_simplify_epsilon): Whitespace fix.
1200 (gfc_simplify_exp): Whitespace fix.
1201 (gfc_simplify_exponent): Use convert_boz().
1202 (gfc_simplify_floor): Reorderd statements.
1203 (gfc_simplify_gamma): Whitespace fix.
1204 (gfc_simplify_huge): Whitespace fix.
1205 (gfc_simplify_iand): Whitespace fix.
1206 (gfc_simplify_ieor): Whitespace fix.
1207 (simplify_intconv): Use gfc_convert_constant().
1208 (gfc_simplify_int): Use simplify_intconv().
1209 (gfc_simplify_int2): Reorderd statements.
1210 (gfc_simplify_idint): Reorderd statements.
1211 (gfc_simplify_ior): Whitespace fix.
1212 (gfc_simplify_ishftc): Removed duplicate type check.
1213 (gfc_simplify_len): Use range_check() instead of manual range check.
1214 (gfc_simplify_lgamma): Removed ATTRIBUTE_UNUSED. Whitespace fix.
1215 (gfc_simplify_log): Whitespace fix.
1216 (gfc_simplify_log10): Whitespace fix.
1217 (gfc_simplify_minval): Whitespace fix.
1218 (gfc_simplify_maxval): Whitespace fix.
1219 (gfc_simplify_mod): Whitespace fix.
1220 (gfc_simplify_modulo): Whitespace fix.
1221 (simplify_nint): Reorderd statements.
1222 (gfc_simplify_not): Whitespace fix.
1223 (gfc_simplify_or): Replaced if-gate by more common switch-over-type.
1224 (gfc_simplify_radix): Removed unused result-variable. Whitespace fix.
1225 (gfc_simplify_range): Removed unused result-variable. Whitespace fix.
1226 (gfc_simplify_real): Use convert_boz() and gfc_convert_constant().
1227 (gfc_simplify_realpart): Whitespace fix.
1228 (gfc_simplify_selected_char_kind): Removed unused result-variable.
1229 (gfc_simplify_selected_int_kind): Removed unused result-variable.
1230 (gfc_simplify_selected_real_kind): Removed unused result-variable.
1231 (gfc_simplify_sign): Whitespace fix.
1232 (gfc_simplify_sin): Whitespace fix.
1233 (gfc_simplify_sinh): Replaced if-gate by more common switch-over-type.
1234 (gfc_simplify_sqrt): Avoided goto by inlining check. Whitespace fix.
1235 (gfc_simplify_tan): Replaced if-gate by more common switch-over-type.
1236 (gfc_simplify_tanh): Replaced if-gate by more common switch-over-type.
1237 (gfc_simplify_xor): Replaced if-gate by more common switch-over-type.
1238
1239 2010-04-12 Daniel Franke <franke.daniel@gmail.com>
1240
1241 * gfortran.h (gfc_start_constructor): Removed.
1242 (gfc_get_array_element): Removed.
1243 * array.c (gfc_start_constructor): Removed, use gfc_get_array_expr
1244 instead. Fixed all callers.
1245 (extract_element): Removed.
1246 (gfc_expand_constructor): Temporarily removed check for
1247 max-array-constructor. Will be re-introduced later if still required.
1248 (gfc_get_array_element): Removed, use gfc_constructor_lookup_expr
1249 instead. Fixed all callers.
1250 * expr.c (find_array_section): Replaced manual lookup of elements
1251 by gfc_constructor_lookup.
1252
1253 2010-04-12 Daniel Franke <franke.daniel@gmail.com>
1254
1255 * gfortran.h (gfc_get_null_expr): New prototype.
1256 (gfc_get_operator_expr): New prototype.
1257 (gfc_get_character_expr): New prototype.
1258 (gfc_get_iokind_expr): New prototype.
1259 * expr.c (gfc_get_null_expr): New.
1260 (gfc_get_character_expr): New.
1261 (gfc_get_iokind_expr): New.
1262 (gfc_get_operator_expr): Moved here from matchexp.c (build_node).
1263 * matchexp.c (build_node): Renamed and moved to
1264 expr.c (gfc_get_operator_expr). Reordered arguments to match
1265 other functions. Fixed all callers.
1266 (gfc_get_parentheses): Use specific function to build expr.
1267 * array.c (gfc_match_array_constructor): Likewise.
1268 * arith.c (eval_intrinsic): Likewise.
1269 (gfc_hollerith2int): Likewise.
1270 (gfc_hollerith2real): Likewise.
1271 (gfc_hollerith2complex): Likewise.
1272 (gfc_hollerith2logical): Likewise.
1273 * data.c (create_character_intializer): Likewise.
1274 * decl.c (gfc_match_null): Likewise.
1275 (enum_initializer): Likewise.
1276 * io.c (gfc_match_format): Likewise.
1277 (match_io): Likewise.
1278 * match.c (gfc_match_nullify): Likewise.
1279 * primary.c (match_string_constant): Likewise.
1280 (match_logical_constant): Likewise.
1281 (build_actual_constructor): Likewise.
1282 * resolve.c (build_default_init_expr): Likewise.
1283 * symbol.c (generate_isocbinding_symbol): Likewise.
1284 (gfc_build_class_symbol): Likewise.
1285 (gfc_find_derived_vtab): Likewise.
1286 * simplify.c (simplify_achar_char): Likewise.
1287 (gfc_simplify_adjustl): Likewise.
1288 (gfc_simplify_adjustr): Likewise.
1289 (gfc_simplify_and): Likewise.
1290 (gfc_simplify_bit_size): Likewise.
1291 (gfc_simplify_is_iostat_end): Likewise.
1292 (gfc_simplify_is_iostat_eor): Likewise.
1293 (gfc_simplify_isnan): Likewise.
1294 (simplify_bound): Likewise.
1295 (gfc_simplify_leadz): Likewise.
1296 (gfc_simplify_len_trim): Likewise.
1297 (gfc_simplify_logical): Likewise.
1298 (gfc_simplify_maxexponent): Likewise.
1299 (gfc_simplify_minexponent): Likewise.
1300 (gfc_simplify_new_line): Likewise.
1301 (gfc_simplify_null): Likewise.
1302 (gfc_simplify_or): Likewise.
1303 (gfc_simplify_precision): Likewise.
1304 (gfc_simplify_repeat): Likewise.
1305 (gfc_simplify_scan): Likewise.
1306 (gfc_simplify_size): Likewise.
1307 (gfc_simplify_trailz): Likewise.
1308 (gfc_simplify_trim): Likewise.
1309 (gfc_simplify_verify): Likewise.
1310 (gfc_simplify_xor): Likewise.
1311 * trans-io.c (build_dt): Likewise.
1312 (gfc_new_nml_name_expr): Removed.
1313
1314 2010-04-12 Daniel Franke <franke.daniel@gmail.com>
1315
1316 * arith.h (gfc_constant_result): Removed prototype.
1317 * constructor.h (gfc_build_array_expr): Removed prototype.
1318 (gfc_build_structure_constructor_expr): Removed prototype.
1319 * gfortran.h (gfc_int_expr): Removed prototype.
1320 (gfc_logical_expr): Removed prototype.
1321 (gfc_get_array_expr): New prototype.
1322 (gfc_get_structure_constructor_expr): New prototype.
1323 (gfc_get_constant_expr): New prototype.
1324 (gfc_get_int_expr): New prototype.
1325 (gfc_get_logical_expr): New prototype.
1326 * arith.c (gfc_constant_result): Moved and renamed to
1327 expr.c (gfc_get_constant_expr). Fixed all callers.
1328 * constructor.c (gfc_build_array_expr): Moved and renamed to
1329 expr.c (gfc_get_array_expr). Split gfc_typespec argument to type
1330 and kind. Fixed all callers.
1331 (gfc_build_structure_constructor_expr): Moved and renamed to
1332 expr.c (gfc_get_structure_constructor_expr). Split gfc_typespec argument
1333 to type and kind. Fixed all callers.
1334 * expr.c (gfc_logical_expr): Renamed to ...
1335 (gfc_get_logical_expr): ... this. Added kind argument. Fixed all callers.
1336 (gfc_int_expr): Renamed to ...
1337 (gfc_get_int_expr): ... this. Added kind and where arguments. Fixed all
1338 callers.
1339 (gfc_get_constant_expr): New.
1340 (gfc_get_array_expr): New.
1341 (gfc_get_structure_constructor_expr): New.
1342 * simplify.c (int_expr_with_kind): Removed, callers use gfc_get_int_expr
1343 instead.
1344
1345 2010-04-12 Daniel Franke <franke.daniel@gmail.com>
1346
1347 * constructor.h: New.
1348 * constructor.c: New.
1349 * Make-lang.in: Add new files to F95_PARSER_OBJS.
1350 * arith.c (reducy_unary): Use constructor API.
1351 (reduce_binary_ac): Likewise.
1352 (reduce_binary_ca): Likewise.
1353 (reduce_binary_aa): Likewise.
1354 * check.c (gfc_check_pack): Likewise.
1355 (gfc_check_reshape): Likewise.
1356 (gfc_check_unpack): Likewise.
1357 * decl.c (add_init_expr_to_sym): Likewise.
1358 (build_struct): Likewise.
1359 * dependency.c (gfc_check_dependency): Likewise.
1360 (contains_forall_index_p): Likewise.
1361 * dump-parse-tree.c (show_constructor): Likewise.
1362 * expr.c (free_expr0): Likewise.
1363 (gfc_copy_expr): Likewise.
1364 (gfc_is_constant_expr): Likewise.
1365 (simplify_constructor): Likewise.
1366 (find_array_element): Likewise.
1367 (find_component_ref): Likewise.
1368 (find_array_section): Likewise.
1369 (find_substring_ref): Likewise.
1370 (simplify_const_ref): Likewise.
1371 (scalarize_intrinsic_call): Likewise.
1372 (check_alloc_comp_init): Likewise.
1373 (gfc_default_initializer): Likewise.
1374 (gfc_traverse_expr): Likewise.
1375 * iresolve.c (check_charlen_present): Likewise.
1376 (gfc_resolve_reshape): Likewise.
1377 (gfc_resolve_transfer): Likewise.
1378 * module.c (mio_constructor): Likewise.
1379 * primary.c (build_actual_constructor): Likewise.
1380 (gfc_match_structure_constructor): Likewise.
1381 * resolve.c (resolve_structure_cons): Likewise.
1382 * simplify.c (is_constant_array_expr): Likewise.
1383 (init_result_expr): Likewise.
1384 (transformational_result): Likewise.
1385 (simplify_transformation_to_scalar): Likewise.
1386 (simplify_transformation_to_array): Likewise.
1387 (gfc_simplify_dot_product): Likewise.
1388 (simplify_bound): Likewise.
1389 (simplify_matmul): Likewise.
1390 (simplify_minval_maxval): Likewise.
1391 (gfc_simplify_pack): Likewise.
1392 (gfc_simplify_reshape): Likewise.
1393 (gfc_simplify_shape): Likewise.
1394 (gfc_simplify_spread): Likewise.
1395 (gfc_simplify_transpose): Likewise.
1396 (gfc_simplify_unpack): Likewise.q
1397 (gfc_convert_constant): Likewise.
1398 (gfc_convert_char_constant): Likewise.
1399 * target-memory.c (size_array): Likewise.
1400 (encode_array): Likewise.
1401 (encode_derived): Likewise.
1402 (interpret_array): Likewise.
1403 (gfc_interpret_derived): Likewise.
1404 (expr_to_char): Likewise.
1405 (gfc_merge_initializers): Likewise.
1406 * trans-array.c (gfc_get_array_constructor_size): Likewise.
1407 (gfc_trans_array_constructor_value): Likewise.
1408 (get_array_ctor_strlen): Likewise.
1409 (gfc_constant_array_constructor_p): Likewise.
1410 (gfc_build_constant_array_constructor): Likewise.
1411 (gfc_trans_array_constructor): Likewise.
1412 (gfc_conv_array_initializer): Likewise.
1413 * trans-decl.c (check_constant_initializer): Likewise.
1414 * trans-expr.c (flatten_array_ctors_without_strlen): Likewise.
1415 (gfc_apply_interface_mapping_to_cons): Likewise.
1416 (gfc_trans_structure_assign): Likewise.
1417 (gfc_conv_structure): Likewise.
1418 * array.c (check_duplicate_iterator): Likewise.
1419 (match_array_list): Likewise.
1420 (match_array_cons_element): Likewise.
1421 (gfc_match_array_constructor): Likewise.
1422 (check_constructor_type): Likewise.
1423 (check_constructor): Likewise.
1424 (expand): Likewise.
1425 (expand_constructor): Likewise.
1426 (extract_element): Likewise.
1427 (gfc_expanded_ac): Likewise.
1428 (resolve_array_list): Likewise.
1429 (gfc_resolve_character_array_constructor): Likewise.
1430 (copy_iterator): Renamed to ...
1431 (gfc_copy_iterator): ... this.
1432 (gfc_append_constructor): Removed.
1433 (gfc_insert_constructor): Removed unused function.
1434 (gfc_get_constructor): Removed.
1435 (gfc_free_constructor): Removed.
1436 (qgfc_copy_constructor): Removed.
1437 * gfortran.h (struct gfc_expr): Removed member 'con_by_offset'.
1438 Removed all references. Replaced constructor list by splay-tree.
1439 (struct gfc_constructor): Removed member 'next', moved 'offset' from
1440 the inner struct, added member 'base'.
1441 (gfc_append_constructor): Removed prototype.
1442 (gfc_insert_constructor): Removed prototype.
1443 (gfc_get_constructor): Removed prototype.
1444 (gfc_free_constructor): Removed prototype.
1445 (qgfc_copy_constructor): Removed prototype.
1446 (gfc_copy_iterator): New prototype.
1447 * trans-array.h (gfc_constant_array_constructor_p): Adjusted prototype.
1448
1449 2010-04-10 Tobias Burnus <burnus@net-b.de>
1450
1451 PR fortran/43591
1452 * expr.c (gfc_is_constant_expr, gfc_traverse_expr): Handle
1453 proc-pointers and type-bound procedures.
1454 (gfc_specification_expr): Check proc-pointers for pureness.
1455
1456 2010-04-09 Iain Sandoe <iains@gcc.gnu.org>
1457
1458 PR bootstrap/43684
1459 * gfortranspec.c (lang_specific_driver): Do not expose vars
1460 only used by HAVE_LD_STATIC_DYNAMIC targets unless compiling
1461 for such.
1462
1463 2010-04-09 Tobias Burnus <burnus@net-b.de>
1464
1465 PR fortran/18918
1466 * decl.c (variable_decl, match_attr_spec): Fix setting the array
1467 spec.
1468 * array.c (match_subscript,gfc_match_array_ref): Add coarray support.
1469 * data.c (gfc_assign_data_value): Ditto.
1470 * expr.c (gfc_check_pointer_assign): Add check for coarray constraint.
1471 (gfc_traverse_expr): Traverse also through codimension expressions.
1472 (gfc_is_coindexed, gfc_has_ultimate_allocatable,
1473 gfc_has_ultimate_pointer): New functions.
1474 * gfortran.h (gfc_array_ref_dimen_type): Add DIMEN_STAR for coarrays.
1475 (gfc_array_ref): Add codimen.
1476 (gfc_array_ref): Add in_allocate.
1477 (gfc_is_coindexed, gfc_has_ultimate_allocatable,
1478 gfc_has_ultimate_pointer): Add prototypes.
1479 * interface.c (compare_parameter, compare_actual_formal,
1480 check_intents): Add coarray constraints.
1481 * match.c (gfc_match_iterator): Add coarray constraint.
1482 * match.h (gfc_match_array_ref): Update interface.
1483 * primary.c (gfc_match_varspec): Handle codimensions.
1484 * resolve.c (coarray_alloc, inquiry_argument): New static variables.
1485 (check_class_members): Return gfc_try instead for error recovery.
1486 (resolve_typebound_function,resolve_typebound_subroutine,
1487 check_members): Handle return value of check_class_members.
1488 (resolve_structure_cons, resolve_actual_arglist, resolve_function,
1489 check_dimension, compare_spec_to_ref, resolve_array_ref,
1490 resolve_ref, resolve_variable, gfc_resolve_expr, conformable_arrays,
1491 resolve_allocate_expr, resolve_ordinary_assign): Add coarray
1492 support.
1493 * trans-array.c (gfc_conv_array_ref, gfc_walk_variable_expr):
1494 Skip over coarray refs.
1495 (gfc_array_allocate) Add support for references containing coindexes.
1496 * trans-expr.c (gfc_add_interface_mapping): Copy coarray attribute.
1497 (gfc_map_intrinsic_function): Ignore codimensions.
1498
1499 2010-04-08 Bud Davis <bdavis9659@sbcglobal.net>
1500
1501 PR fortran/28039
1502 * io.c (check_format_string): Added check for additional non
1503 blank characters after the format string was successfully
1504 parsed.
1505 * io.c (check_format): Changed the error messages for positive
1506 int required and period required to drop through the error logic
1507 and report with gfc_error instead of gfc_error_now. Corrected
1508 format postion for hollerith strings.
1509
1510 2010-04-08 Tobias Burnus <burnus@net-b.de>
1511
1512 * module.c (use_iso_fortran_env_module): Fix standard check.
1513
1514 2010-04-07 Jakub Jelinek <jakub@redhat.com>
1515
1516 * parse.c (parse_derived, parse_enum): Avoid set but not used
1517 warning.
1518
1519 2010-04-07 Janne Blomqvist <jb@gcc.gnu.org>
1520
1521 PR fortran/40539
1522 * gfortran.texi: Add section about representation of
1523 LOGICAL variables.
1524
1525 2010-04-07 Simon Baldwin <simonb@google.com>
1526
1527 * cpp.c (cb_cpp_error): Add warning reason argument, set a value
1528 for diagnostic_override_option_index if CPP_W_WARNING_DIRECTIVE.
1529
1530 2010-04-07 Richard Guenther <rguenther@suse.de>
1531
1532 * options.c (gfc_init_options): Do not set.
1533
1534 2010-04-06 Tobias Burnus <burnus@net-b.de>
1535
1536 PR fortran/18918
1537 * array.c (gfc_match_array_spec): Add error for -fcoarray=none.
1538 * match.c (gfc_match_critical, sync_statement): Ditto.
1539 * gfortran.h (gfc_fcoarray): New enum.
1540 (gfc_option_t): Use it.
1541 * lang.opt (fcoarray): Add new flag.
1542 * invoke.texi (fcoarray): Document it.
1543 * options.c (gfc_init_options,gfc_handle_option): Handle -fcoarray=.
1544 (gfc_handle_coarray_option): New function.
1545
1546 2010-04-06 Tobias Burnus <burnus@net-b.de>
1547
1548 PR fortran/18918
1549 * gfortran.h (gfc_array_spec): Add cotype.
1550 * array.c (gfc_match_array_spec,gfc_set_array_spec): Use it
1551 and defer error diagnostic.
1552 * resolve.c (resolve_fl_derived): Add missing check.
1553 (resolve_symbol): Add cotype/type check.
1554 * parse.c (parse_derived): Fix setting of coarray_comp.
1555
1556 2010-04-06 Tobias Burnus <burnus@net-b.de>
1557
1558 PR fortran/18918
1559 * array.c (gfc_free_array_spec,gfc_resolve_array_spec,
1560 match_array_element_spec,gfc_copy_array_spec,
1561 gfc_compare_array_spec): Include corank.
1562 (match_array_element_spec,gfc_set_array_spec): Support codimension.
1563 * decl.c (build_sym,build_struct,variable_decl,
1564 match_attr_spec,attr_decl1,cray_pointer_decl,
1565 gfc_match_volatile): Add codimension.
1566 (gfc_match_codimension): New function.
1567 * dump-parse-tree.c (show_array_spec,show_attr): Support codimension.
1568 * gfortran.h (symbol_attribute,gfc_array_spec): Ditto.
1569 (gfc_add_codimension): New function prototype.
1570 * match.h (gfc_match_codimension): New function prototype.
1571 (gfc_match_array_spec): Update prototype
1572 * match.c (gfc_match_common): Update gfc_match_array_spec call.
1573 * module.c (MOD_VERSION): Bump.
1574 (mio_symbol_attribute): Support coarray attributes.
1575 (mio_array_spec): Add corank support.
1576 * parse.c (decode_specification_statement,decode_statement,
1577 parse_derived): Add coarray support.
1578 * resolve.c (resolve_formal_arglist, was_declared,
1579 is_non_constant_shape_array, resolve_fl_variable,
1580 resolve_fl_derived, resolve_symbol): Add coarray support.
1581 * symbol.c (check_conflict, gfc_add_volatile, gfc_copy_attr,
1582 gfc_build_class_symbol): Add coarray support.
1583 (gfc_add_codimension): New function.
1584
1585 2010-04-06 Tobias Burnus <burnus@net-b.de>
1586
1587 PR fortran/18918
1588 * iso-fortran-env.def: Add the integer parameters atomic_int_kind,
1589 atomic_logical_kind, iostat_inquire_internal_unit, stat_locked,
1590 stat_locked_other_image, stat_stopped_image and stat_unlocked of
1591 Fortran 2008.
1592 * intrinsic.texi (iso_fortran_env): Ditto.
1593 * libgfortran.h (libgfortran_stat_codes): New enum.
1594 * module.c (use_iso_fortran_env_module): Honour -std= when loading
1595 constants from the intrinsic module.
1596
1597 2010-04-06 Tobias Burnus <burnus@net-b.de>
1598
1599 PR fortran/39997
1600 * intrinsic.c (add_functions): Add num_images.
1601 * decl.c (gfc_match_end): Handle END CRITICAL.
1602 * intrinsic.h (gfc_simplify_num_images): Add prototype.
1603 * dump-parse-tree.c (show_code_node): Dump CRITICAL, ERROR STOP,
1604 and SYNC.
1605 * gfortran.h (gfc_statement): Add enum items for those.
1606 (gfc_exec_op) Ditto.
1607 (gfc_isym_id): Add num_images.
1608 * trans-stmt.c (gfc_trans_stop): Handle ERROR STOP.
1609 (gfc_trans_sync,gfc_trans_critical): New functions.
1610 * trans-stmt.h (gfc_trans_stop,gfc_trans_sync,
1611 gfc_trans_critical): Add/update prototypes.
1612 * trans.c (gfc_trans_code): Handle CRITICAL, ERROR STOP,
1613 and SYNC statements.
1614 * trans.h (gfor_fndecl_error_stop_string) Add variable.
1615 * resolve.c (resolve_sync): Add function.
1616 (gfc_resolve_blocks): Handle CRITICAL.
1617 (resolve_code): Handle CRITICAL, ERROR STOP,
1618 (resolve_branch): Add CRITICAL constraint check.
1619 and SYNC statements.
1620 * st.c (gfc_free_statement): Add new statements.
1621 * trans-decl.c (gfor_fndecl_error_stop_string): Global variable.
1622 (gfc_build_builtin_function_decls): Initialize it.
1623 * match.c (gfc_match_if): Handle ERROR STOP and SYNC.
1624 (gfc_match_critical, gfc_match_error_stop, sync_statement,
1625 gfc_match_sync_all, gfc_match_sync_images, gfc_match_sync_memory):
1626 New functions.
1627 (match_exit_cycle): Handle CRITICAL constraint.
1628 (gfc_match_stopcode): Handle ERROR STOP.
1629 * match.h (gfc_match_critical, gfc_match_error_stop,
1630 gfc_match_sync_all, gfc_match_sync_images,
1631 gfc_match_sync_memory): Add prototype.
1632 * parse.c (decode_statement, gfc_ascii_statement,
1633 parse_executable): Handle new statements.
1634 (parse_critical_block): New function.
1635 * parse.h (gfc_compile_state): Add COMP_CRITICAL.
1636 * intrinsic.texi (num_images): Document new function.
1637 * simplify.c (gfc_simplify_num_images): Add function.
1638
1639 2010-04-06 Tobias Burnus <burnus@net-b.de>
1640
1641 PR fortran/43178
1642 * trans-array.c (gfc_conv_expr_descriptor): Update
1643 gfc_trans_scalar_assign call.
1644 (has_default_initializer): New function.
1645 (gfc_trans_deferred_array): Nullify less often.
1646 * trans-expr.c (gfc_conv_subref_array_arg,
1647 gfc_trans_subcomponent_assign): Update call to
1648 gfc_trans_scalar_assign.
1649 (gfc_trans_scalar_assign): Add parameter and pass it on.
1650 (gfc_trans_assignment_1): Optionally, do not dealloc before
1651 assignment.
1652 * trans-openmp.c (gfc_trans_omp_array_reduction): Update
1653 call to gfc_trans_scalar_assign.
1654 * trans-decl.c (gfc_get_symbol_decl): Do not always apply
1655 initializer to static variables.
1656 (gfc_init_default_dt): Add dealloc parameter and pass it on.
1657 * trans-stmt.c (forall_make_variable_temp,
1658 generate_loop_for_temp_to_lhs, generate_loop_for_rhs_to_temp,
1659 gfc_trans_forall_1, gfc_trans_where_assign, gfc_trans_where_3
1660 gfc_trans_allocate): Update gfc_trans_assignment call.
1661 * trans.h (gfc_trans_scalar_assign, gfc_init_default_dt,
1662 gfc_init_default_dt, gfc_trans_assignment): Add bool dealloc
1663 parameter to prototype.
1664
1665 2010-03-31 Paul Thomas <pault@gcc.gnu.org>
1666
1667 * ioparm.def : Update copyright.
1668 * lang.opt : ditto
1669 * trans-array.c : ditto
1670 * trans-array.h : ditto
1671 * expr.c: ditto
1672 * trans-types.c: ditto
1673 * dependency.c : ditto
1674 * gfortran.h : ditto
1675 * options.c : ditto
1676 * trans-io.c : ditto
1677 * trans-intrinsic.c : ditto
1678 * libgfortran.h : ditto
1679 * invoke.texi : ditto
1680 * intrinsic.texi : ditto
1681 * trans.c : ditto
1682 * trans.h : ditto
1683 * intrinsic.c : ditto
1684 * interface.c : ditto
1685 * iresolve.c : ditto
1686 * trans-stmt.c : ditto
1687 * trans-stmt.h : ditto
1688 * parse,c : ditto
1689 * match.h : ditto
1690 * error.c : ditto
1691
1692 2010-03-20 Paul Thomas <pault@gcc.gnu.org>
1693
1694 PR fortran/43450
1695 * trans-decl.c (gfc_create_module_variable): With -fwhole-file
1696 do not assert the context of derived types.
1697
1698 2010-03-20 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1699
1700 PR fortran/43409
1701 * ioparm.def: Change inquire size variable to type pointer to
1702 GFC_IO_INT type.
1703
1704 2010-03-18 Paul Thomas <pault@gcc.gnu.org>
1705
1706 PR fortran/43039
1707 * trans-expr.c (conv_parent_component_references): Ensure that
1708 'dt' has a backend_decl.
1709
1710 PR fortran/43043
1711 * trans-expr.c (gfc_conv_structure): Ensure that the derived
1712 type has a backend_decl.
1713
1714 PR fortran/43044
1715 * resolve.c (resolve_global_procedure): Check that the 'cl'
1716 structure is not NULL.
1717
1718 2010-03-18 Shujing Zhao <pearly.zhao@oracle.com>
1719
1720 * lang.opt (-ffixed-line-length-, ffree-line-length-): Remove
1721 redundant tab.
1722
1723 2010-03-17 Tobias Burnus <burnus@net-b.de>
1724
1725 PR fortran/43331
1726 * trans-array.c (gfc_conv_array_index_offset,gfc_conv_array_ref,
1727 gfc_conv_ss_startstride): Remove no-longer-needed cp_was_assumed
1728 check.
1729 * decl.c (gfc_match_derived_decl): Don't mark assumed-size Cray
1730 pointees as having explizit size.
1731 * expr.c (gfc_check_assign): Remove now unreachable Cray pointee
1732 check.
1733 * trans-types.c (gfc_is_nodesc_array): Add cp_was_assumed to assert.
1734 (gfc_sym_type): Don't mark Cray pointees as restricted pointers.
1735 * resolve.c (resolve_symbol): Handle cp_was_assumed.
1736 * trans-decl.c (gfc_trans_deferred_vars): Ditto.
1737 (gfc_finish_var_decl): Don't mark Cray pointees as restricted
1738 pointers.
1739
1740 2010-03-14 Tobias Burnus <burnus@net-b.de>
1741
1742 PR fortran/43362
1743 * resolve.c (resolve_structure_cons): Add missing PURE constraint.
1744 (resolve_ordinary_assign): Add check to avoid segfault.
1745
1746 2010-03-12 Paul Thomas <pault@gcc.gnu.org>
1747
1748 PR fortran/43291
1749 PR fortran/43326
1750 * resolve.c (resolve_compcall): Add new boolean dummy argument
1751 'class_members'. Only resolve expression at end if false.
1752 Remove redundant, static variable 'class_object'.
1753 (check_class_members): Add extra argument to call of
1754 resolve_compcall.
1755 (resolve_typebound_function): Renamed resolve_class_compcall.
1756 Do all the detection of class references here. Correct calls to
1757 resolve_compcall for extra argument.
1758 (resolve_typebound_subroutine): resolve_class_typebound_call
1759 renamed. Otherwise same as resolve_typebound_function.
1760 (gfc_resolve_expr): Call resolve_typebound_function.
1761 (resolve_code): Call resolve_typebound_subroutine.
1762
1763 2010-03-10 Tobias Burnus <burnus@net-b.de
1764
1765 PR fortran/43303
1766 * symbol.c (get_iso_c_sym): Set sym->result.
1767
1768 2010-03-08 Janus Weil <janus@gcc.gnu.org>
1769
1770 PR fortran/43256
1771 * resolve.c (resolve_compcall): Don't set 'value.function.name' here
1772 for TBPs, otherwise they will not be resolved properly.
1773 (resolve_function): Use 'value.function.esym' instead of
1774 'value.function.name' to check if we're dealing with a TBP.
1775 (check_class_members): Set correct type of passed object for all TBPs,
1776 not only generic ones, except if the type is abstract.
1777
1778 2010-03-04 Janus Weil <janus@gcc.gnu.org>
1779
1780 PR fortran/43244
1781 * decl.c (gfc_match_final_decl): Make sure variable names starting with
1782 'final...' are not misinterpreted as FINAL statements.
1783
1784 2010-03-03 Paul Thomas <pault@gcc.gnu.org>
1785
1786 PR fortran/43243
1787 * trans-array.c (gfc_conv_array_parameter): Contiguous refs to
1788 allocatable ultimate components do not need temporaries, whilst
1789 ultimate pointer components do.
1790
1791 2010-03-03 Janus Weil <janus@gcc.gnu.org>
1792
1793 PR fortran/43169
1794 * resolve.c (resolve_code): Correctly set gfc_current_ns for
1795 EXEC_SELECT_TYPE.
1796 (gfc_impure_variable): Make it work with sub-namespaces (BLOCK etc).
1797 (gfc_pure): Ditto.
1798
1799 2010-03-02 Paul Thomas <pault@gcc.gnu.org>
1800
1801 PR fortran/43180
1802 * trans-array.c (gfc_conv_array_parameter): A full array of
1803 derived type need not be restricted to a symbol without an
1804 array spec to use the call to gfc_conv_expr_descriptor.
1805
1806 PR fortran/43173
1807 * trans-array.c (gfc_conv_array_parameter): Contiguous refs to
1808 allocatable arrays do not need temporaries.
1809
1810 2010-03-01 Tobias Burnus <burnus@net-b.de>
1811
1812 PR fortran/43199
1813 * resolve.c (find_array_spec): Handle REF_COMPONENT with
1814 CLASS components.
1815
1816 2010-02-28 Tobias Burnus <burnus@net-b.de>
1817
1818 PR fortran/43205
1819 * trans-expr.c (is_zero_initializer_p): Move up in the file.
1820 (gfc_conv_initializer): Handle zero initializer as special case.
1821
1822 2010-02-27 Tobias Burnus <burnus@net-b.de>
1823
1824 PR fortran/43185
1825 * resolve.c (resolve_fl_variable_derived): Imply SAVE
1826 for module variables for Fortran 2008.
1827
1828 2010-02-25 Jakub Jelinek <jakub@redhat.com>
1829
1830 PR debug/43166
1831 * trans-common.c (build_common_decl): Also update DECL_MODE,
1832 and DECL_SIZE when encountering a larger common block and call
1833 layout_decl.
1834
1835 2010-02-24 Tobias Burnus <burnus@net-b.de>
1836
1837 PR fortran/43042
1838 * trans-expr.c (gfc_conv_initializer): Call directly
1839 gfc_conv_constant for C_NULL_(FUN)PTR.
1840
1841 2010-02-22 Paul Thomas <pault@gcc.gnu.org>
1842
1843 PR fortran/43072
1844 * dependency.c (gfc_full_array_ref_p): Check for contiguous by
1845 checking the rest of the dimensions for elements.
1846
1847 2010-02-21 Tobias Burnus <burnus@net-b.de>
1848
1849 PR fortran/35259
1850 * gfortran.h (gfc_option_t): New flag -fprotect-parens.
1851 * lang.opt: Ditto.
1852 * option.c (gfc_init_options,gfc_handle_option): Ditto.
1853 * trans-expr.c (gfc_conv_expr_op): Use the flag.
1854 * invoke.texi: Document new -fno-protect-parens flag.
1855
1856 2010-02-20 Paul Thomas <pault@gcc.gnu.org>
1857
1858 PR fortran/36932
1859 PR fortran/36933
1860 PR fortran/43072
1861 PR fortran/43111
1862 * dependency.c (gfc_check_argument_var_dependency): Use enum
1863 value instead of arithmetic vaue for 'elemental'.
1864 (check_data_pointer_types): New function.
1865 (gfc_check_dependency): Call check_data_pointer_types.
1866 * trans-array.h : Change fourth argument of
1867 gfc_conv_array_parameter to boolean.
1868 * trans-array.c (gfc_conv_array_parameter): A contiguous array
1869 can be a dummy but it must not be assumed shape or deferred.
1870 Change fourth argument to boolean. Array constructor exprs will
1871 always be contiguous and do not need packing and unpacking.
1872 * trans-expr.c (gfc_conv_procedure_call): Clean up some white
1873 space and change fourth argument of gfc_conv_array_parameter
1874 to boolean.
1875 (gfc_trans_arrayfunc_assign): Change fourth argument of
1876 gfc_conv_array_parameter to boolean.
1877 * trans-io.c (gfc_convert_array_to_string): The same.
1878 * trans-intrinsic.c (gfc_conv_intrinsic_loc): The same.
1879
1880 2010-02-20 Tobias Burnus <burnus@net-b.de>
1881
1882 PR fortran/42958
1883 * libgfortran.h: Add GFC_RTCHECK_MEM.
1884 * invoke.texi (-fcheck=): Document -fcheck=mem.
1885 * tranc.c (gfc_call_malloc): Remove negative-size run-time error
1886 and enable malloc-success check only with -fcheck=mem.
1887 * option.c (gfc_handle_runtime_check_option): Add -fcheck=mem.
1888
1889 2010-02-16 Tobias Burnus <burnus@net-b.de>
1890
1891 PR fortran/43040
1892 * gfortran.h (gfc_isym_id): Rename GFS_ISYM_GAMMA to GFS_ISYM_TGAMMA.
1893 * intrinsic.c (add_functions): Ditto.
1894 * iresolve.c (gfc_resolve_gamma): Call tgamma instead of gamma.
1895 * mathbuiltins.def: Use TGAMMA instead of GAMMA with "tgamma".
1896
1897 2010-02-14 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1898
1899 PR fortran/32382
1900 * trans-stmt.h: Add prototype for gfc_trans_code_cond. Add tree cond to
1901 gfc_trans_do prototype.
1902 * trans-stmt.c (gfc_trans_simple_do): Add optional argument to pass in
1903 a loop exit condition. If exit condition is given, build the loop exit
1904 code, checking IO results of implied do loops in READ and WRITE.
1905 (gfc_trans_do): Likewise.
1906 * trans.c (trans_code): New static work function, previously
1907 gfc_trans_code. Passes exit condition to gfc_trans_do.
1908 (gfc_trans_code): Calls trans_code with NULL_TREE condition.
1909 (gfc_trans_code_cond): Calls trans_code with loop exit condition.
1910 * trans-io.c (build_dt): Build an exit condition to allow checking IO
1911 result status bits in the dtparm structure. Use this condition in call
1912 to gfc_trans_code_cond.
1913
1914 2010-02-13 Paul Thomas <pault@gcc.gnu.org>
1915
1916 PR fortran/41113
1917 PR fortran/41117
1918 * trans-array.c (gfc_conv_array_parameter): Use
1919 gfc_full_array_ref_p to detect full and contiguous variable
1920 arrays. Full array components and contiguous arrays do not need
1921 internal_pack and internal_unpack.
1922
1923 2010-02-11 Jakub Jelinek <jakub@redhat.com>
1924
1925 PR fortran/43030
1926 * resolve.c (gfc_resolve_dim_arg): Call gfc_clear_ts.
1927
1928 PR fortran/43029
1929 * decl.c (enumerator_decl): Don't call gfc_free_enum_history
1930 here.
1931 (gfc_match_enumerator_def): But here whenever enumerator_decl returns
1932 MATCH_ERROR.
1933
1934 2010-02-10 Joost VandeVondele <jv244@cam.ac.uk>
1935 Tobias Burnus <burnus@net-b.de>
1936
1937 PR fortran/40823
1938 * decl.c (gfc_match_subroutine): Explicitly set sym->declared_at.
1939
1940 2010-02-10 Tobias Burnus <burnus@net-b.de>
1941
1942 PR fortran/43015
1943 * trans-decl.c (gfc_generate_function_code): Only check
1944 actual-vs.-dummy character bounds if not bind(C).
1945
1946 2010-02-10 Jakub Jelinek <jakub@redhat.com>
1947
1948 PR fortran/42309
1949 * trans-expr.c (gfc_conv_subref_array_arg): Avoid accessing
1950 info->dimen after info has been freed.
1951
1952 2010-02-09 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1953
1954 PR fortran/42999
1955 * array.c (gfc_constant_ac): Do not prevent expansion of constructors
1956 with iterators.
1957
1958 2010-02-09 Jakub Jelinek <jakub@redhat.com>
1959
1960 * module.c (fix_mio_expr): Declare sym.
1961
1962 2010-02-09 Paul Thomas <pault@gcc.gnu.org>
1963
1964 PR fortran/41869
1965 * module.c (fix_mio_expr): Fix for private generic procedures.
1966
1967 2010-02-09 Daniel Kraft <d@domob.eu>
1968
1969 PR fortran/39171
1970 * resolve.c (resolve_charlen): Change warning about negative CHARACTER
1971 length to be correct and issue only with -Wsurprising.
1972 * invoke.texi (Wsurprising): Mention this new warning that is
1973 turned on by -Wsurprising.
1974
1975 2010-02-09 Daniel Kraft <d@domob.eu>
1976
1977 PR fortran/41507
1978 * intrinsic.texi (MAXVAL): Remove wrong claim that array argument
1979 can be CHARACTER type.
1980 (MINVAL), (MAXLOC), (MINLOC): Ditto.
1981
1982 2010-02-05 Paul Thomas <pault@gcc.gnu.org>
1983
1984 PR fortran/42309
1985 * trans-expr.c (gfc_conv_subref_array_arg): Add new argument
1986 'formal_ptr'. If this is true, give returned descriptor unity
1987 lbounds, in all dimensions, and the appropriate offset.
1988 (gfc_conv_procedure_call); If formal is a pointer, set the last
1989 argument of gfc_conv_subref_array_arg to true.
1990 * trans.h : Add last argument for gfc_conv_subref_array_arg.
1991 * trans-io.c (set_internal_unit, gfc_trans_transfer): Set the
1992 new arg of gfc_conv_subref_array_arg to false.
1993 * trans-stmt.c (forall_make_variable_temp): The same.
1994
1995 2010-02-03 Tobias Burnus <burnus@net-b.de>
1996
1997 PR fortran/42936
1998 * interface.c (compare_parameter): Disable rank-checking
1999 for NULL().
2000
2001 2010-02-02 Tobias Burnus <burnus@net-b.de>
2002
2003 PR fortran/42650
2004 * parse.c (decode_specification_statement): Use sym->result not sym.
2005
2006 2010-02-01 Tobias Burnus <burnus@net-b.de>
2007
2008 PR fortran/42922
2009 * decl.c (variable_decl): Allow default initializer in
2010 TYPE declarations in PURE functions.
2011
2012 2010-01-31 Janus Weil <janus@gcc.gnu.org>
2013
2014 PR fortran/42888
2015 * resolve.c (resolve_allocate_expr): Move default initialization code
2016 here from gfc_trans_allocate.
2017 * trans.c (gfc_trans_code): Call gfc_trans_class_assign also for
2018 EXEC_INIT_ASSIGN.
2019 * trans-expr.c (gfc_trans_class_assign): Handle default initialization
2020 of CLASS variables via memcpy.
2021 * trans-stmt.c (gfc_trans_allocate): Move default initialization code
2022 to resolve_allocate_expr.
2023
2024 2010-01-31 Paul Thomas <pault@gcc.gnu.org>
2025
2026 PR fortran/38324
2027 * expr.c (gfc_get_full_arrayspec_from_expr): New function.
2028 * gfortran.h : Add prototype for above.
2029 * trans-expr.c (gfc_trans_alloc_subarray_assign): New function.
2030 (gfc_trans_subcomponent_assign): Call new function to replace
2031 the code to deal with allocatable components.
2032 * trans-intrinsic.c (gfc_conv_intrinsic_bound): Call
2033 gfc_get_full_arrayspec_from_expr to replace existing code.
2034
2035 2010-01-25 Tobias Burnus <burnus@net-b.de>
2036
2037 PR fortran/42858
2038 * array.c (gfc_array_dimen_size): Fix intrinsic procedure
2039 check.
2040
2041 2010-01-24 Paul Thomas <pault@gcc.gnu.org>
2042
2043 PR fortran/41044
2044 PR fortran/41167
2045 * expr.c (remove_subobject_ref): If the constructor is NULL use
2046 the expression as the source.
2047 (simplify_const_ref): Change the type of expression if
2048 there are component references. Allow for substring to be at
2049 the end of an arbitrarily long chain of references. If an
2050 element is found that is not in an EXPR_ARRAY, assume that this
2051 is scalar initialization of array. Call remove_subobject_ref in
2052 this case with NULL second argument.
2053
2054 2010-01-24 Tobias Burnus <burnus@net-b.de>
2055
2056 PR fortran/39304
2057 * array.c (gfc_array_dimen_size): Use correct specific
2058 function in the check.
2059
2060 2010-01-21 Paul Thomas <pault@gcc.gnu.org>
2061
2062 PR fortran/42736
2063 * trans-stmt.c (gfc_conv_elemental_dependencies): If temporary
2064 is required, turn any trailing array elements after a range
2065 into ranges so that offsets can be calculated.
2066
2067 2010-01-20 Joern Rennecke <amylaar@spamcop.net>
2068
2069 * module.c (mio_f2k_derived): Use enumerator as initializer of
2070 enum variable.
2071
2072 PR bootstrap/42812
2073 * gfortran.h (struct gfc_namespace) <resolved>: Change to signed
2074 bitfield of width 2.
2075
2076 2010-01-19 Janus Weil <janus@gcc.gnu.org>
2077
2078 PR fortran/42804
2079 * resolve.c (extract_compcall_passed_object): Set locus for
2080 passed-object argument.
2081 (extract_ppc_passed_object): Set locus and correctly remove PPC
2082 reference.
2083
2084 2010-01-19 Paul Thomas <pault@gcc.gnu.org>
2085
2086 PR fortran/42783
2087 * trans-decl.c (add_argument_checking): Do not use the backend
2088 decl directly to test for the presence of an optional dummy
2089 argument. Use gfc_conv_expr_present, remembering to set the
2090 symbol referenced.
2091
2092 PR fortran/42772
2093 * trans-decl.c (gfc_generate_function_code): Small white space
2094 changes. If 'recurcheckvar' is NULL do not try to reset it.
2095
2096 2010-01-19 Janus Weil <janus@gcc.gnu.org>
2097
2098 PR fortran/42545
2099 * resolve.c (resolve_fl_derived): Set the accessibility of the parent
2100 component for extended types.
2101 * symbol.c (gfc_find_component): Remove a wrongly-worded error message
2102 and take care of parent component accessibility.
2103
2104 2010-01-17 Janus Weil <janus@gcc.gnu.org>
2105
2106 PR fortran/42677
2107 * gfortran.h (symbol_attribute): Remove 'ambiguous_interfaces'.
2108 * interface.c (check_interface1): Move a warning message here from
2109 resolve_fl_procedure.
2110 (check_sym_interfaces): Removed 'attr.ambiguous_interfaces'.
2111 * module.c (read_module): Remove call to gfc_check_interfaces, since
2112 this comes too early here.
2113 * resolve.c (resolve_fl_procedure): Move warning message to
2114 check_interface1.
2115
2116 2010-01-14 Jerry DeLisle <jvdelisle@gcc.gnu.org>
2117
2118 PR fortran/42684
2119 * interface.c (check_interface1): Pass symbol name rather than NULL to
2120 gfc_compare_interfaces. (gfc_compare_interfaces): Add assert to
2121 trap MULL.
2122 * resolve.c (check_generic_tbp_ambiguity): Pass symbol name rather
2123 than NULL to gfc_compare_interfaces.
2124
2125 2010-01-14 Paul Thomas <pault@gcc.gnu.org>
2126
2127 PR fortran/41478
2128 * trans-array.c (duplicate_allocatable): Static version of
2129 gfc_duplicate_allocatable with provision to handle scalar
2130 components. New boolean argument to switch off call to malloc
2131 if true.
2132 (gfc_duplicate_allocatable): New function to call above with
2133 new argument false.
2134 (gfc_copy_allocatable_data): New function to call above with
2135 new argument true.
2136 (structure_alloc_comps): Do not apply indirect reference to
2137 scalar pointers. Add new section to copy allocatable components
2138 of arrays. Extend copying of allocatable components to include
2139 scalars.
2140 (gfc_copy_only_alloc_comp): New function to copy allocatable
2141 component derived types, without allocating the base structure.
2142 * trans-array.h : Add primitive for gfc_copy_allocatable_data.
2143 Add primitive for gfc_copy_only_alloc_comp.
2144 * trans-expr.c (gfc_conv_procedure_call): After calls to
2145 transformational functions with results that are derived types
2146 with allocatable components, copy the components in the result.
2147 (gfc_trans_arrayfunc_assign): Deallocate allocatable components
2148 of lhs derived types before allocation.
2149
2150 2010-01-14 Paul Thomas <pault@gcc.gnu.org>
2151
2152 PR fortran/42481
2153 * module.c (load_generic_interfaces): If a procedure that is
2154 use associated but not generic is given an interface that
2155 includes itself, then make it generic.
2156
2157 2010-01-11 Joseph Myers <joseph@codesourcery.com>
2158 Shujing Zhao <pearly.zhao@oracle.com>
2159
2160 PR translation/42469
2161 * lang.opt (fblas-matmul-limit=, finit-character=, finit-integer=,
2162 finit-logical=, finit-real=, fmax-array-constructor=): Use tab
2163 character between option name and help text.
2164
2165 2010-01-09 Jerry DeLisle <jvdelisle@gcc.gnu.org>
2166
2167 PR fortran/20923
2168 PR fortran/32489
2169 * trans-array.c (gfc_conv_array_initializer): Change call to
2170 gfc_error_now to call to gfc_fatal_error.
2171 * array.c (count_elements): Whitespace. (extract_element): Whitespace.
2172 (is_constant_element): Changed name from constant_element.
2173 (gfc_constant_ac): Only use expand_construuctor for expression
2174 types of EXPR_ARRAY. If expression type is EXPR_CONSTANT, no need to
2175 call gfc_is_constant_expr.
2176 * expr.c (gfc_reduce_init_expr): Adjust conditionals and delete error
2177 message.
2178 * resolve.c (gfc_is_expandable_expr): New function that determiners if
2179 array expressions should have their constructors expanded.
2180 (gfc_resolve_expr): Use new function to determine whether or not to call
2181 gfc_expand_constructor.
2182
2183 2010-01-09 Tobias Burnus <burnus@net-b.de>
2184
2185 PR fortran/41298
2186 * trans-expr.c (gfc_trans_structure_assign): Handle
2187 c_null_(fun)ptr.
2188 * symbol.c (gen_special_c_interop_ptr): Add NULL_EXPR
2189 to the constructor for c_null_(fun)ptr.
2190 * resolve.c (resolve_structure_cons): Add special case
2191 for c_null_(fun)ptr.
2192
2193 2010-01-09 Jakub Jelinek <jakub@redhat.com>
2194
2195 * gfortranspec.c (lang_specific_driver): Update copyright notice
2196 dates.
2197
2198 2010-01-08 Tobias Burnus <burnus@net-b.de>
2199
2200 PR/fortran 25829
2201 * symbol.c (check_conflict, gfc_copy_attr): Add
2202 ASYNCHRONOUS support.
2203 (gfc_add_asynchronous): New function.
2204 * decl.c (match_attr_spec): Add ASYNCHRONOUS support.
2205 (gfc_match_asynchronous): New function.
2206 * dump-parse-tree.c (show_attr): Add ASYNCHRONOUS support.
2207 * gfortran.h (symbol_attribute): New ASYNCHRONOUS bit.
2208 (gfc_add_asynchronous): New Prototype.
2209 * module.c (ab_attribute, mio_symbol_attribute): Add
2210 ASYNCHRONOUS support.
2211 * resolve.c (was_declared): Ditto.
2212 * match.h (gfc_match_asynchronous): New prototype.
2213 * parse.c (decode_specification_statement,decode_statement):
2214 Add ASYNCHRONOUS support.
2215
2216 2010-01-07 Tobias Burnus <burnus@net-b.de>
2217
2218 PR fortran/42597
2219 * trans-decl.c (get_proc_pointer_decl): Fix call to
2220 gfc_conv_initializer for array-valued proc-pointer funcs.
2221
2222 2010-01-07 Tobias Burnus <burnus@net-b.de>
2223
2224 PR fortran/41872
2225 * trans-decl.c (gfc_trans_deferred_vars): Don't initialize
2226 allocatable scalars with SAVE attribute.
2227
2228 2010-01-05 Tobias Burnus <burnus@net-b.de>
2229
2230 PR fortran/42517
2231 * options.c (gfc_post_options): Set -frecursion
2232 when -fopenmp is used.
2233
2234 2010-01-05 Tobias Burnus <burnus@net-b.de>
2235
2236 PR fortran/41872
2237 * trans-expr.c (gfc_conv_procedure_call): Nullify
2238 return value for allocatable-scalar character functions.
2239
2240 2010-01-04 Tobias Burnus <burnus@net-b.de>
2241
2242 PR fortran/36161
2243 * error.c (error_printf, gfc_warning, gfc_notify_std,
2244 gfc_warning_now, gfc_error, gfc_error_now,
2245 gfc_fatal_error): Change argument name from nocmsgid to
2246 gmsgid to enable (x)gettext's % checking.
2247
2248 2010-01-04 Tobias Burnus <burnus@net-b.de>
2249
2250 * trans-decl.c (gfc_trans_deferred_vars): Fix spelling.
2251
2252 2010-01-04 Tobias Burnus <burnus@net-b.de>
2253
2254 PR fortran/41872
2255 * trans-expr.c (gfc_conv_procedure_call): Add indirect ref
2256 for functions returning allocatable scalars.
2257 * trans-stmt.c (gfc_trans_allocate): Emmit error when
2258 reallocating an allocatable scalar.
2259 * trans.c (gfc_allocate_with_status): Fix pseudocode syntax
2260 in comment.
2261 * trans-decl.c (gfc_trans_deferred_vars): Nullify local
2262 allocatable scalars.
2263 (gfc_generate_function_code): Nullify result variable for
2264 allocatable scalars.
2265
2266 PR fortran/40849
2267 * module.c (gfc_use_module): Fix warning string to allow
2268 for translation.
2269
2270 PR fortran/42517
2271 * invoke.texi (-fcheck=recursion): Mention that the checking
2272 is also disabled for -frecursive.
2273 * trans-decl.c (gfc_generate_function_code): Disable
2274 -fcheck=recursion when -frecursive is used.
2275
2276 * intrinsic.texi (iso_c_binding): Improve wording.
2277
2278 \f
2279 Copyright (C) 2010 Free Software Foundation, Inc.
2280
2281 Copying and distribution of this file, with or without modification,
2282 are permitted in any medium without royalty provided the copyright
2283 notice and this notice are preserved.
This page took 0.135222 seconds and 4 git commands to generate.