1 2010-04-24 Jerry DeLisle <jvdelisle@gcc.gnu.org>
4 * io.c (gfc_match_open): Remove branch to syntax error. Add call to
5 gfc_error with new error message.
7 2010-04-24 Paul Thomas <pault@gcc.gnu.org>
11 * trans-expr.c (gfc_conv_expr): Supply an address expression for
13 (gfc_conv_expr_reference): Call gfc_conv_expr and return for
15 * trans-array.c (gfc_add_loop_ss_code): Store the value rather
16 than the address of a GFC_SS_REFERENCE.
17 * trans.h : Change comment on GFC_SS_REFERENCE.
19 2010-04-22 Richard Guenther <rguenther@suse.de>
22 * resolve.c (gfc_resolve_index): Wrap around ...
23 (gfc_resolve_index_1): ... this. Add parameter to allow
24 any integer kind index type.
25 (resolve_array_ref): Allow any integer kind for the start
26 index of an array ref.
28 2010-04-21 Jakub Jelinek <jakub@redhat.com>
31 * f95-lang.c (gfc_define_builtin): Set TREE_NOTHROW on
34 2010-04-20 Harald Anlauf <anlauf@gmx.de>
36 * intrinsic.c (sort_actual): Remove 'is' in error message.
38 2010-04-20 Paul Thomas <pault@gcc.gnu.org>
41 * resolve.c (resolve_fl_derived): If a component character
42 length has not been resolved, do so now.
43 (resolve_symbol): The same as above for a symbol character
45 * trans-decl.c (gfc_create_module_variable): A 'length' decl is
46 not needed for a character valued, procedure pointer.
49 * resolve.c (ensure_not_abstract_walker): If 'overriding' is
50 not found, return FAILURE rather than ICEing.
52 2010-04-19 Jakub Jelinek <jakub@redhat.com>
55 * openmp.c (gfc_resolve_do_iterator): Only make iteration vars for
56 sequential loops private in the innermost containing task region.
58 2010-04-18 Eric Botcazou <ebotcazou@adacore.com>
60 * f95-lang.c (gfc_init_decl_processing): Remove second argument in call
61 to build_common_tree_nodes.
63 2010-04-17 Steven G. Kargl <kargl@gcc.gnu.org>
66 * fortran/trans-array.c (gfc_conv_ss_startstride): Remove the use of
67 gfc_msg_bounds by using 'Array bound mismatch' directly.
68 (gfc_trans_dummy_array_bias): Remove the use of gfc_msg_bounds. Reword
69 error message to include the mismatch in the extent of array bound.
70 * fortran/trans.c: Remove gfc_msg_bounds. It is only used in one place.
71 * fortran/trans.h: Remove extern definition of gfc_msg_bounds.
73 2010-04-17 Jerry DeLisle <jvdelisle@gcc.gnu.org>
75 * gfortran.texi: Update information on temporary file locations.
77 2010-04-16 Jakub Jelinek <jakub@redhat.com>
79 * trans-decl.c (gfc_build_qualified_array): Ensure
80 ubound.N and lbound.N artificial variable names don't appear
83 2010-04-15 Steven G. Kargl <kargl@gcc.gnu.org>
86 * trans-array.c (gfc_trans_array_bound_check): Eliminate a redundant
87 block of code. Set name to the variable associated with the descriptor.
89 2010-04-15 Jakub Jelinek <jakub@redhat.com>
91 * trans-decl.c (gfc_build_qualified_array): Clear DECL_IGNORED_P
92 on VAR_DECL LBOUND and/or UBOUND, even for -O1.
94 2010-04-14 Steven G. Kargl <kargl@gcc.gnu.org>
96 * intrinsic.texi: Add the missing specific name of intrinsic
97 procedure where the specific name is identical to the generic name.
98 Fix inconsistent or mismatch in the argument names in intrinsic
99 procedure descriptions. Add the SCALAR allocatable description to
102 2010-04-14 Tobias Burnus <burnus@net-b.de>
105 * array.c (gfc_find_array_ref): Handle codimensions.
106 (gfc_match_array_spec,gfc_match_array_ref): Use gfc_fatal_error.
107 * check.c (is_coarray, dim_corank_check, gfc_check_lcobound,
108 gfc_check_image_index, gfc_check_this_image, gfc_check_ucobound):
110 * gfortran.h (gfc_isym_id): Add GFC_ISYM_IMAGE_INDEX,
111 GFC_ISYM_LCOBOUND, GFC_ISYM_THIS_IMAGE,
113 * intrinsic.h (add_functions): Add this_image, image_index,
114 lcobound and ucobound intrinsics.
115 * intrinsic.c (gfc_check_lcobound,gfc_check_ucobound,
116 gfc_check_image_index, gfc_check_this_image,
117 gfc_simplify_image_index, gfc_simplify_lcobound,
118 gfc_simplify_this_image, gfc_simplify_ucobound):
119 New function prototypes.
120 * intrinsic.texi (IMAGE_INDEX, LCOBOUND, THIS_IMAGE
121 IMAGE_INDEX): Document new intrinsic functions.
122 * match.c (gfc_match_critical, sync_statement): Make -fcoarray=none
124 * simplify.c (simplify_bound_dim): Handle coarrays.
125 (simplify_bound): Update simplify_bound_dim call.
126 (gfc_simplify_num_images): Add -fcoarray=none check.
127 (simplify_cobound, gfc_simplify_lcobound, gfc_simplify_ucobound,
128 gfc_simplify_ucobound, gfc_simplify_ucobound): New functions.
130 2010-04-14 Jerry DeLisle <jvdelisle@gcc.gnu.org>
133 * constructor.c: Fix typo in comment.
134 * expr.c (find_array_section): Add check for max array limit.
136 2010-04-13 Iain Sandoe <iains@gcc.gnu.org>
139 * gfortranspec.c (lookup_option): Check for -static and return
141 (lang_specific_driver): Break when OPTION_static is discovered.
143 2010-04-12 Jerry DeLisle <jvdelisle@gcc.gnu.org>
145 * array.c (extract_element): Restore function from trunk.
146 (gfc_get_array_element): Restore function from trunk.
147 (gfc_expand_constructor): Restore check against
148 flag_max_array_constructor.
149 * constructor.c (node_copy_and_append): Delete unused.
150 * gfortran.h: Delete comment and extra include.
151 * constructor.h: Bump copyright and clean up TODO comments.
152 * resolve.c: Whitespace.
154 2010-04-12 Daniel Franke <franke.daniel@gmail.com>
156 * simplify.c (compute_dot_product): Replaced usage of ADVANCE macro
157 with direct access access to elements. Adjusted prototype, fixed all
159 (gfc_simplify_dot_product): Removed duplicate check for zero-sized
161 (gfc_simplify_matmul): Removed usage of ADVANCE macro.
162 (gfc_simplify_spread): Removed workaround, directly insert elements
163 at a given array position.
164 (gfc_simplify_transpose): Likewise.
165 (gfc_simplify_pack): Replaced usage of ADVANCE macro with corresponding
167 (gfc_simplify_unpack): Likewise.
169 2010-04-12 Daniel Franke <franke.daniel@gmail.com>
171 * simplify.c (only_convert_cmplx_boz): Renamed to ...
172 (convert_boz): ... this and moved to start of file.
173 (gfc_simplify_abs): Whitespace fix.
174 (gfc_simplify_acos): Whitespace fix.
175 (gfc_simplify_acosh): Whitespace fix.
176 (gfc_simplify_aint): Whitespace fix.
177 (gfc_simplify_dint): Whitespace fix.
178 (gfc_simplify_anint): Whitespace fix.
179 (gfc_simplify_and): Replaced if-gate by more common switch-over-type.
180 (gfc_simplify_dnint): Whitespace fix.
181 (gfc_simplify_asin): Whitespace fix.
182 (gfc_simplify_asinh): Moved creation of result-expr out of switch.
183 (gfc_simplify_atan): Likewise.
184 (gfc_simplify_atanh): Whitespace fix.
185 (gfc_simplify_atan2): Whitespace fix.
186 (gfc_simplify_bessel_j0): Removed ATTRIBUTE_UNUSED.
187 (gfc_simplify_bessel_j1): Likewise.
188 (gfc_simplify_bessel_jn): Likewise.
189 (gfc_simplify_bessel_y0): Likewise.
190 (gfc_simplify_bessel_y1): Likewise.
191 (gfc_simplify_bessel_yn): Likewise.
192 (gfc_simplify_ceiling): Reorderd statements.
193 (simplify_cmplx): Use convert_boz(), check for constant arguments.
195 (gfc_simplify_cmplx): Use correct default kind. Removed check for
197 (gfc_simplify_complex): Replaced if-gate. Removed check for
199 (gfc_simplify_conjg): Whitespace fix.
200 (gfc_simplify_cos): Whitespace fix.
201 (gfc_simplify_cosh): Replaced if-gate by more common switch-over-type.
202 (gfc_simplify_dcmplx): Removed check for constant arguments.
203 (gfc_simplify_dble): Use convert_boz() and gfc_convert_constant().
204 (gfc_simplify_digits): Whitespace fix.
205 (gfc_simplify_dim): Whitespace fix.
206 (gfc_simplify_dprod): Reordered statements.
207 (gfc_simplify_erf): Whitespace fix.
208 (gfc_simplify_erfc): Whitespace fix.
209 (gfc_simplify_epsilon): Whitespace fix.
210 (gfc_simplify_exp): Whitespace fix.
211 (gfc_simplify_exponent): Use convert_boz().
212 (gfc_simplify_floor): Reorderd statements.
213 (gfc_simplify_gamma): Whitespace fix.
214 (gfc_simplify_huge): Whitespace fix.
215 (gfc_simplify_iand): Whitespace fix.
216 (gfc_simplify_ieor): Whitespace fix.
217 (simplify_intconv): Use gfc_convert_constant().
218 (gfc_simplify_int): Use simplify_intconv().
219 (gfc_simplify_int2): Reorderd statements.
220 (gfc_simplify_idint): Reorderd statements.
221 (gfc_simplify_ior): Whitespace fix.
222 (gfc_simplify_ishftc): Removed duplicate type check.
223 (gfc_simplify_len): Use range_check() instead of manual range check.
224 (gfc_simplify_lgamma): Removed ATTRIBUTE_UNUSED. Whitespace fix.
225 (gfc_simplify_log): Whitespace fix.
226 (gfc_simplify_log10): Whitespace fix.
227 (gfc_simplify_minval): Whitespace fix.
228 (gfc_simplify_maxval): Whitespace fix.
229 (gfc_simplify_mod): Whitespace fix.
230 (gfc_simplify_modulo): Whitespace fix.
231 (simplify_nint): Reorderd statements.
232 (gfc_simplify_not): Whitespace fix.
233 (gfc_simplify_or): Replaced if-gate by more common switch-over-type.
234 (gfc_simplify_radix): Removed unused result-variable. Whitespace fix.
235 (gfc_simplify_range): Removed unused result-variable. Whitespace fix.
236 (gfc_simplify_real): Use convert_boz() and gfc_convert_constant().
237 (gfc_simplify_realpart): Whitespace fix.
238 (gfc_simplify_selected_char_kind): Removed unused result-variable.
239 (gfc_simplify_selected_int_kind): Removed unused result-variable.
240 (gfc_simplify_selected_real_kind): Removed unused result-variable.
241 (gfc_simplify_sign): Whitespace fix.
242 (gfc_simplify_sin): Whitespace fix.
243 (gfc_simplify_sinh): Replaced if-gate by more common switch-over-type.
244 (gfc_simplify_sqrt): Avoided goto by inlining check. Whitespace fix.
245 (gfc_simplify_tan): Replaced if-gate by more common switch-over-type.
246 (gfc_simplify_tanh): Replaced if-gate by more common switch-over-type.
247 (gfc_simplify_xor): Replaced if-gate by more common switch-over-type.
249 2010-04-12 Daniel Franke <franke.daniel@gmail.com>
251 * gfortran.h (gfc_start_constructor): Removed.
252 (gfc_get_array_element): Removed.
253 * array.c (gfc_start_constructor): Removed, use gfc_get_array_expr
254 instead. Fixed all callers.
255 (extract_element): Removed.
256 (gfc_expand_constructor): Temporarily removed check for
257 max-array-constructor. Will be re-introduced later if still required.
258 (gfc_get_array_element): Removed, use gfc_constructor_lookup_expr
259 instead. Fixed all callers.
260 * expr.c (find_array_section): Replaced manual lookup of elements
261 by gfc_constructor_lookup.
263 2010-04-12 Daniel Franke <franke.daniel@gmail.com>
265 * gfortran.h (gfc_get_null_expr): New prototype.
266 (gfc_get_operator_expr): New prototype.
267 (gfc_get_character_expr): New prototype.
268 (gfc_get_iokind_expr): New prototype.
269 * expr.c (gfc_get_null_expr): New.
270 (gfc_get_character_expr): New.
271 (gfc_get_iokind_expr): New.
272 (gfc_get_operator_expr): Moved here from matchexp.c (build_node).
273 * matchexp.c (build_node): Renamed and moved to
274 expr.c (gfc_get_operator_expr). Reordered arguments to match
275 other functions. Fixed all callers.
276 (gfc_get_parentheses): Use specific function to build expr.
277 * array.c (gfc_match_array_constructor): Likewise.
278 * arith.c (eval_intrinsic): Likewise.
279 (gfc_hollerith2int): Likewise.
280 (gfc_hollerith2real): Likewise.
281 (gfc_hollerith2complex): Likewise.
282 (gfc_hollerith2logical): Likewise.
283 * data.c (create_character_intializer): Likewise.
284 * decl.c (gfc_match_null): Likewise.
285 (enum_initializer): Likewise.
286 * io.c (gfc_match_format): Likewise.
287 (match_io): Likewise.
288 * match.c (gfc_match_nullify): Likewise.
289 * primary.c (match_string_constant): Likewise.
290 (match_logical_constant): Likewise.
291 (build_actual_constructor): Likewise.
292 * resolve.c (build_default_init_expr): Likewise.
293 * symbol.c (generate_isocbinding_symbol): Likewise.
294 (gfc_build_class_symbol): Likewise.
295 (gfc_find_derived_vtab): Likewise.
296 * simplify.c (simplify_achar_char): Likewise.
297 (gfc_simplify_adjustl): Likewise.
298 (gfc_simplify_adjustr): Likewise.
299 (gfc_simplify_and): Likewise.
300 (gfc_simplify_bit_size): Likewise.
301 (gfc_simplify_is_iostat_end): Likewise.
302 (gfc_simplify_is_iostat_eor): Likewise.
303 (gfc_simplify_isnan): Likewise.
304 (simplify_bound): Likewise.
305 (gfc_simplify_leadz): Likewise.
306 (gfc_simplify_len_trim): Likewise.
307 (gfc_simplify_logical): Likewise.
308 (gfc_simplify_maxexponent): Likewise.
309 (gfc_simplify_minexponent): Likewise.
310 (gfc_simplify_new_line): Likewise.
311 (gfc_simplify_null): Likewise.
312 (gfc_simplify_or): Likewise.
313 (gfc_simplify_precision): Likewise.
314 (gfc_simplify_repeat): Likewise.
315 (gfc_simplify_scan): Likewise.
316 (gfc_simplify_size): Likewise.
317 (gfc_simplify_trailz): Likewise.
318 (gfc_simplify_trim): Likewise.
319 (gfc_simplify_verify): Likewise.
320 (gfc_simplify_xor): Likewise.
321 * trans-io.c (build_dt): Likewise.
322 (gfc_new_nml_name_expr): Removed.
324 2010-04-12 Daniel Franke <franke.daniel@gmail.com>
326 * arith.h (gfc_constant_result): Removed prototype.
327 * constructor.h (gfc_build_array_expr): Removed prototype.
328 (gfc_build_structure_constructor_expr): Removed prototype.
329 * gfortran.h (gfc_int_expr): Removed prototype.
330 (gfc_logical_expr): Removed prototype.
331 (gfc_get_array_expr): New prototype.
332 (gfc_get_structure_constructor_expr): New prototype.
333 (gfc_get_constant_expr): New prototype.
334 (gfc_get_int_expr): New prototype.
335 (gfc_get_logical_expr): New prototype.
336 * arith.c (gfc_constant_result): Moved and renamed to
337 expr.c (gfc_get_constant_expr). Fixed all callers.
338 * constructor.c (gfc_build_array_expr): Moved and renamed to
339 expr.c (gfc_get_array_expr). Split gfc_typespec argument to type
340 and kind. Fixed all callers.
341 (gfc_build_structure_constructor_expr): Moved and renamed to
342 expr.c (gfc_get_structure_constructor_expr). Split gfc_typespec argument
343 to type and kind. Fixed all callers.
344 * expr.c (gfc_logical_expr): Renamed to ...
345 (gfc_get_logical_expr): ... this. Added kind argument. Fixed all callers.
346 (gfc_int_expr): Renamed to ...
347 (gfc_get_int_expr): ... this. Added kind and where arguments. Fixed all
349 (gfc_get_constant_expr): New.
350 (gfc_get_array_expr): New.
351 (gfc_get_structure_constructor_expr): New.
352 * simplify.c (int_expr_with_kind): Removed, callers use gfc_get_int_expr
355 2010-04-12 Daniel Franke <franke.daniel@gmail.com>
357 * constructor.h: New.
358 * constructor.c: New.
359 * Make-lang.in: Add new files to F95_PARSER_OBJS.
360 * arith.c (reducy_unary): Use constructor API.
361 (reduce_binary_ac): Likewise.
362 (reduce_binary_ca): Likewise.
363 (reduce_binary_aa): Likewise.
364 * check.c (gfc_check_pack): Likewise.
365 (gfc_check_reshape): Likewise.
366 (gfc_check_unpack): Likewise.
367 * decl.c (add_init_expr_to_sym): Likewise.
368 (build_struct): Likewise.
369 * dependency.c (gfc_check_dependency): Likewise.
370 (contains_forall_index_p): Likewise.
371 * dump-parse-tree.c (show_constructor): Likewise.
372 * expr.c (free_expr0): Likewise.
373 (gfc_copy_expr): Likewise.
374 (gfc_is_constant_expr): Likewise.
375 (simplify_constructor): Likewise.
376 (find_array_element): Likewise.
377 (find_component_ref): Likewise.
378 (find_array_section): Likewise.
379 (find_substring_ref): Likewise.
380 (simplify_const_ref): Likewise.
381 (scalarize_intrinsic_call): Likewise.
382 (check_alloc_comp_init): Likewise.
383 (gfc_default_initializer): Likewise.
384 (gfc_traverse_expr): Likewise.
385 * iresolve.c (check_charlen_present): Likewise.
386 (gfc_resolve_reshape): Likewise.
387 (gfc_resolve_transfer): Likewise.
388 * module.c (mio_constructor): Likewise.
389 * primary.c (build_actual_constructor): Likewise.
390 (gfc_match_structure_constructor): Likewise.
391 * resolve.c (resolve_structure_cons): Likewise.
392 * simplify.c (is_constant_array_expr): Likewise.
393 (init_result_expr): Likewise.
394 (transformational_result): Likewise.
395 (simplify_transformation_to_scalar): Likewise.
396 (simplify_transformation_to_array): Likewise.
397 (gfc_simplify_dot_product): Likewise.
398 (simplify_bound): Likewise.
399 (simplify_matmul): Likewise.
400 (simplify_minval_maxval): Likewise.
401 (gfc_simplify_pack): Likewise.
402 (gfc_simplify_reshape): Likewise.
403 (gfc_simplify_shape): Likewise.
404 (gfc_simplify_spread): Likewise.
405 (gfc_simplify_transpose): Likewise.
406 (gfc_simplify_unpack): Likewise.q
407 (gfc_convert_constant): Likewise.
408 (gfc_convert_char_constant): Likewise.
409 * target-memory.c (size_array): Likewise.
410 (encode_array): Likewise.
411 (encode_derived): Likewise.
412 (interpret_array): Likewise.
413 (gfc_interpret_derived): Likewise.
414 (expr_to_char): Likewise.
415 (gfc_merge_initializers): Likewise.
416 * trans-array.c (gfc_get_array_constructor_size): Likewise.
417 (gfc_trans_array_constructor_value): Likewise.
418 (get_array_ctor_strlen): Likewise.
419 (gfc_constant_array_constructor_p): Likewise.
420 (gfc_build_constant_array_constructor): Likewise.
421 (gfc_trans_array_constructor): Likewise.
422 (gfc_conv_array_initializer): Likewise.
423 * trans-decl.c (check_constant_initializer): Likewise.
424 * trans-expr.c (flatten_array_ctors_without_strlen): Likewise.
425 (gfc_apply_interface_mapping_to_cons): Likewise.
426 (gfc_trans_structure_assign): Likewise.
427 (gfc_conv_structure): Likewise.
428 * array.c (check_duplicate_iterator): Likewise.
429 (match_array_list): Likewise.
430 (match_array_cons_element): Likewise.
431 (gfc_match_array_constructor): Likewise.
432 (check_constructor_type): Likewise.
433 (check_constructor): Likewise.
435 (expand_constructor): Likewise.
436 (extract_element): Likewise.
437 (gfc_expanded_ac): Likewise.
438 (resolve_array_list): Likewise.
439 (gfc_resolve_character_array_constructor): Likewise.
440 (copy_iterator): Renamed to ...
441 (gfc_copy_iterator): ... this.
442 (gfc_append_constructor): Removed.
443 (gfc_insert_constructor): Removed unused function.
444 (gfc_get_constructor): Removed.
445 (gfc_free_constructor): Removed.
446 (qgfc_copy_constructor): Removed.
447 * gfortran.h (struct gfc_expr): Removed member 'con_by_offset'.
448 Removed all references. Replaced constructor list by splay-tree.
449 (struct gfc_constructor): Removed member 'next', moved 'offset' from
450 the inner struct, added member 'base'.
451 (gfc_append_constructor): Removed prototype.
452 (gfc_insert_constructor): Removed prototype.
453 (gfc_get_constructor): Removed prototype.
454 (gfc_free_constructor): Removed prototype.
455 (qgfc_copy_constructor): Removed prototype.
456 (gfc_copy_iterator): New prototype.
457 * trans-array.h (gfc_constant_array_constructor_p): Adjusted prototype.
459 2010-04-10 Tobias Burnus <burnus@net-b.de>
462 * expr.c (gfc_is_constant_expr, gfc_traverse_expr): Handle
463 proc-pointers and type-bound procedures.
464 (gfc_specification_expr): Check proc-pointers for pureness.
466 2010-04-09 Iain Sandoe <iains@gcc.gnu.org>
469 * gfortranspec.c (lang_specific_driver): Do not expose vars
470 only used by HAVE_LD_STATIC_DYNAMIC targets unless compiling
473 2010-04-09 Tobias Burnus <burnus@net-b.de>
476 * decl.c (variable_decl, match_attr_spec): Fix setting the array
478 * array.c (match_subscript,gfc_match_array_ref): Add coarray support.
479 * data.c (gfc_assign_data_value): Ditto.
480 * expr.c (gfc_check_pointer_assign): Add check for coarray constraint.
481 (gfc_traverse_expr): Traverse also through codimension expressions.
482 (gfc_is_coindexed, gfc_has_ultimate_allocatable,
483 gfc_has_ultimate_pointer): New functions.
484 * gfortran.h (gfc_array_ref_dimen_type): Add DIMEN_STAR for coarrays.
485 (gfc_array_ref): Add codimen.
486 (gfc_array_ref): Add in_allocate.
487 (gfc_is_coindexed, gfc_has_ultimate_allocatable,
488 gfc_has_ultimate_pointer): Add prototypes.
489 * interface.c (compare_parameter, compare_actual_formal,
490 check_intents): Add coarray constraints.
491 * match.c (gfc_match_iterator): Add coarray constraint.
492 * match.h (gfc_match_array_ref): Update interface.
493 * primary.c (gfc_match_varspec): Handle codimensions.
494 * resolve.c (coarray_alloc, inquiry_argument): New static variables.
495 (check_class_members): Return gfc_try instead for error recovery.
496 (resolve_typebound_function,resolve_typebound_subroutine,
497 check_members): Handle return value of check_class_members.
498 (resolve_structure_cons, resolve_actual_arglist, resolve_function,
499 check_dimension, compare_spec_to_ref, resolve_array_ref,
500 resolve_ref, resolve_variable, gfc_resolve_expr, conformable_arrays,
501 resolve_allocate_expr, resolve_ordinary_assign): Add coarray
503 * trans-array.c (gfc_conv_array_ref, gfc_walk_variable_expr):
504 Skip over coarray refs.
505 (gfc_array_allocate) Add support for references containing coindexes.
506 * trans-expr.c (gfc_add_interface_mapping): Copy coarray attribute.
507 (gfc_map_intrinsic_function): Ignore codimensions.
509 2010-04-08 Bud Davis <bdavis9659@sbcglobal.net>
512 * io.c (check_format_string): Added check for additional non
513 blank characters after the format string was successfully
515 * io.c (check_format): Changed the error messages for positive
516 int required and period required to drop through the error logic
517 and report with gfc_error instead of gfc_error_now. Corrected
518 format postion for hollerith strings.
520 2010-04-08 Tobias Burnus <burnus@net-b.de>
522 * module.c (use_iso_fortran_env_module): Fix standard check.
524 2010-04-07 Jakub Jelinek <jakub@redhat.com>
526 * parse.c (parse_derived, parse_enum): Avoid set but not used
529 2010-04-07 Janne Blomqvist <jb@gcc.gnu.org>
532 * gfortran.texi: Add section about representation of
535 2010-04-07 Simon Baldwin <simonb@google.com>
537 * cpp.c (cb_cpp_error): Add warning reason argument, set a value
538 for diagnostic_override_option_index if CPP_W_WARNING_DIRECTIVE.
540 2010-04-07 Richard Guenther <rguenther@suse.de>
542 * options.c (gfc_init_options): Do not set.
544 2010-04-06 Tobias Burnus <burnus@net-b.de>
547 * array.c (gfc_match_array_spec): Add error for -fcoarray=none.
548 * match.c (gfc_match_critical, sync_statement): Ditto.
549 * gfortran.h (gfc_fcoarray): New enum.
550 (gfc_option_t): Use it.
551 * lang.opt (fcoarray): Add new flag.
552 * invoke.texi (fcoarray): Document it.
553 * options.c (gfc_init_options,gfc_handle_option): Handle -fcoarray=.
554 (gfc_handle_coarray_option): New function.
556 2010-04-06 Tobias Burnus <burnus@net-b.de>
559 * gfortran.h (gfc_array_spec): Add cotype.
560 * array.c (gfc_match_array_spec,gfc_set_array_spec): Use it
561 and defer error diagnostic.
562 * resolve.c (resolve_fl_derived): Add missing check.
563 (resolve_symbol): Add cotype/type check.
564 * parse.c (parse_derived): Fix setting of coarray_comp.
566 2010-04-06 Tobias Burnus <burnus@net-b.de>
569 * array.c (gfc_free_array_spec,gfc_resolve_array_spec,
570 match_array_element_spec,gfc_copy_array_spec,
571 gfc_compare_array_spec): Include corank.
572 (match_array_element_spec,gfc_set_array_spec): Support codimension.
573 * decl.c (build_sym,build_struct,variable_decl,
574 match_attr_spec,attr_decl1,cray_pointer_decl,
575 gfc_match_volatile): Add codimension.
576 (gfc_match_codimension): New function.
577 * dump-parse-tree.c (show_array_spec,show_attr): Support codimension.
578 * gfortran.h (symbol_attribute,gfc_array_spec): Ditto.
579 (gfc_add_codimension): New function prototype.
580 * match.h (gfc_match_codimension): New function prototype.
581 (gfc_match_array_spec): Update prototype
582 * match.c (gfc_match_common): Update gfc_match_array_spec call.
583 * module.c (MOD_VERSION): Bump.
584 (mio_symbol_attribute): Support coarray attributes.
585 (mio_array_spec): Add corank support.
586 * parse.c (decode_specification_statement,decode_statement,
587 parse_derived): Add coarray support.
588 * resolve.c (resolve_formal_arglist, was_declared,
589 is_non_constant_shape_array, resolve_fl_variable,
590 resolve_fl_derived, resolve_symbol): Add coarray support.
591 * symbol.c (check_conflict, gfc_add_volatile, gfc_copy_attr,
592 gfc_build_class_symbol): Add coarray support.
593 (gfc_add_codimension): New function.
595 2010-04-06 Tobias Burnus <burnus@net-b.de>
598 * iso-fortran-env.def: Add the integer parameters atomic_int_kind,
599 atomic_logical_kind, iostat_inquire_internal_unit, stat_locked,
600 stat_locked_other_image, stat_stopped_image and stat_unlocked of
602 * intrinsic.texi (iso_fortran_env): Ditto.
603 * libgfortran.h (libgfortran_stat_codes): New enum.
604 * module.c (use_iso_fortran_env_module): Honour -std= when loading
605 constants from the intrinsic module.
607 2010-04-06 Tobias Burnus <burnus@net-b.de>
610 * intrinsic.c (add_functions): Add num_images.
611 * decl.c (gfc_match_end): Handle END CRITICAL.
612 * intrinsic.h (gfc_simplify_num_images): Add prototype.
613 * dump-parse-tree.c (show_code_node): Dump CRITICAL, ERROR STOP,
615 * gfortran.h (gfc_statement): Add enum items for those.
617 (gfc_isym_id): Add num_images.
618 * trans-stmt.c (gfc_trans_stop): Handle ERROR STOP.
619 (gfc_trans_sync,gfc_trans_critical): New functions.
620 * trans-stmt.h (gfc_trans_stop,gfc_trans_sync,
621 gfc_trans_critical): Add/update prototypes.
622 * trans.c (gfc_trans_code): Handle CRITICAL, ERROR STOP,
624 * trans.h (gfor_fndecl_error_stop_string) Add variable.
625 * resolve.c (resolve_sync): Add function.
626 (gfc_resolve_blocks): Handle CRITICAL.
627 (resolve_code): Handle CRITICAL, ERROR STOP,
628 (resolve_branch): Add CRITICAL constraint check.
630 * st.c (gfc_free_statement): Add new statements.
631 * trans-decl.c (gfor_fndecl_error_stop_string): Global variable.
632 (gfc_build_builtin_function_decls): Initialize it.
633 * match.c (gfc_match_if): Handle ERROR STOP and SYNC.
634 (gfc_match_critical, gfc_match_error_stop, sync_statement,
635 gfc_match_sync_all, gfc_match_sync_images, gfc_match_sync_memory):
637 (match_exit_cycle): Handle CRITICAL constraint.
638 (gfc_match_stopcode): Handle ERROR STOP.
639 * match.h (gfc_match_critical, gfc_match_error_stop,
640 gfc_match_sync_all, gfc_match_sync_images,
641 gfc_match_sync_memory): Add prototype.
642 * parse.c (decode_statement, gfc_ascii_statement,
643 parse_executable): Handle new statements.
644 (parse_critical_block): New function.
645 * parse.h (gfc_compile_state): Add COMP_CRITICAL.
646 * intrinsic.texi (num_images): Document new function.
647 * simplify.c (gfc_simplify_num_images): Add function.
649 2010-04-06 Tobias Burnus <burnus@net-b.de>
652 * trans-array.c (gfc_conv_expr_descriptor): Update
653 gfc_trans_scalar_assign call.
654 (has_default_initializer): New function.
655 (gfc_trans_deferred_array): Nullify less often.
656 * trans-expr.c (gfc_conv_subref_array_arg,
657 gfc_trans_subcomponent_assign): Update call to
658 gfc_trans_scalar_assign.
659 (gfc_trans_scalar_assign): Add parameter and pass it on.
660 (gfc_trans_assignment_1): Optionally, do not dealloc before
662 * trans-openmp.c (gfc_trans_omp_array_reduction): Update
663 call to gfc_trans_scalar_assign.
664 * trans-decl.c (gfc_get_symbol_decl): Do not always apply
665 initializer to static variables.
666 (gfc_init_default_dt): Add dealloc parameter and pass it on.
667 * trans-stmt.c (forall_make_variable_temp,
668 generate_loop_for_temp_to_lhs, generate_loop_for_rhs_to_temp,
669 gfc_trans_forall_1, gfc_trans_where_assign, gfc_trans_where_3
670 gfc_trans_allocate): Update gfc_trans_assignment call.
671 * trans.h (gfc_trans_scalar_assign, gfc_init_default_dt,
672 gfc_init_default_dt, gfc_trans_assignment): Add bool dealloc
673 parameter to prototype.
675 2010-03-31 Paul Thomas <pault@gcc.gnu.org>
677 * ioparm.def : Update copyright.
679 * trans-array.c : ditto
680 * trans-array.h : ditto
682 * trans-types.c: ditto
683 * dependency.c : ditto
687 * trans-intrinsic.c : ditto
688 * libgfortran.h : ditto
689 * invoke.texi : ditto
690 * intrinsic.texi : ditto
693 * intrinsic.c : ditto
694 * interface.c : ditto
696 * trans-stmt.c : ditto
697 * trans-stmt.h : ditto
702 2010-03-20 Paul Thomas <pault@gcc.gnu.org>
705 * trans-decl.c (gfc_create_module_variable): With -fwhole-file
706 do not assert the context of derived types.
708 2010-03-20 Jerry DeLisle <jvdelisle@gcc.gnu.org>
711 * ioparm.def: Change inquire size variable to type pointer to
714 2010-03-18 Paul Thomas <pault@gcc.gnu.org>
717 * trans-expr.c (conv_parent_component_references): Ensure that
718 'dt' has a backend_decl.
721 * trans-expr.c (gfc_conv_structure): Ensure that the derived
722 type has a backend_decl.
725 * resolve.c (resolve_global_procedure): Check that the 'cl'
726 structure is not NULL.
728 2010-03-18 Shujing Zhao <pearly.zhao@oracle.com>
730 * lang.opt (-ffixed-line-length-, ffree-line-length-): Remove
733 2010-03-17 Tobias Burnus <burnus@net-b.de>
736 * trans-array.c (gfc_conv_array_index_offset,gfc_conv_array_ref,
737 gfc_conv_ss_startstride): Remove no-longer-needed cp_was_assumed
739 * decl.c (gfc_match_derived_decl): Don't mark assumed-size Cray
740 pointees as having explizit size.
741 * expr.c (gfc_check_assign): Remove now unreachable Cray pointee
743 * trans-types.c (gfc_is_nodesc_array): Add cp_was_assumed to assert.
744 (gfc_sym_type): Don't mark Cray pointees as restricted pointers.
745 * resolve.c (resolve_symbol): Handle cp_was_assumed.
746 * trans-decl.c (gfc_trans_deferred_vars): Ditto.
747 (gfc_finish_var_decl): Don't mark Cray pointees as restricted
750 2010-03-14 Tobias Burnus <burnus@net-b.de>
753 * resolve.c (resolve_structure_cons): Add missing PURE constraint.
754 (resolve_ordinary_assign): Add check to avoid segfault.
756 2010-03-12 Paul Thomas <pault@gcc.gnu.org>
760 * resolve.c (resolve_compcall): Add new boolean dummy argument
761 'class_members'. Only resolve expression at end if false.
762 Remove redundant, static variable 'class_object'.
763 (check_class_members): Add extra argument to call of
765 (resolve_typebound_function): Renamed resolve_class_compcall.
766 Do all the detection of class references here. Correct calls to
767 resolve_compcall for extra argument.
768 (resolve_typebound_subroutine): resolve_class_typebound_call
769 renamed. Otherwise same as resolve_typebound_function.
770 (gfc_resolve_expr): Call resolve_typebound_function.
771 (resolve_code): Call resolve_typebound_subroutine.
773 2010-03-10 Tobias Burnus <burnus@net-b.de
776 * symbol.c (get_iso_c_sym): Set sym->result.
778 2010-03-08 Janus Weil <janus@gcc.gnu.org>
781 * resolve.c (resolve_compcall): Don't set 'value.function.name' here
782 for TBPs, otherwise they will not be resolved properly.
783 (resolve_function): Use 'value.function.esym' instead of
784 'value.function.name' to check if we're dealing with a TBP.
785 (check_class_members): Set correct type of passed object for all TBPs,
786 not only generic ones, except if the type is abstract.
788 2010-03-04 Janus Weil <janus@gcc.gnu.org>
791 * decl.c (gfc_match_final_decl): Make sure variable names starting with
792 'final...' are not misinterpreted as FINAL statements.
794 2010-03-03 Paul Thomas <pault@gcc.gnu.org>
797 * trans-array.c (gfc_conv_array_parameter): Contiguous refs to
798 allocatable ultimate components do not need temporaries, whilst
799 ultimate pointer components do.
801 2010-03-03 Janus Weil <janus@gcc.gnu.org>
804 * resolve.c (resolve_code): Correctly set gfc_current_ns for
806 (gfc_impure_variable): Make it work with sub-namespaces (BLOCK etc).
809 2010-03-02 Paul Thomas <pault@gcc.gnu.org>
812 * trans-array.c (gfc_conv_array_parameter): A full array of
813 derived type need not be restricted to a symbol without an
814 array spec to use the call to gfc_conv_expr_descriptor.
817 * trans-array.c (gfc_conv_array_parameter): Contiguous refs to
818 allocatable arrays do not need temporaries.
820 2010-03-01 Tobias Burnus <burnus@net-b.de>
823 * resolve.c (find_array_spec): Handle REF_COMPONENT with
826 2010-02-28 Tobias Burnus <burnus@net-b.de>
829 * trans-expr.c (is_zero_initializer_p): Move up in the file.
830 (gfc_conv_initializer): Handle zero initializer as special case.
832 2010-02-27 Tobias Burnus <burnus@net-b.de>
835 * resolve.c (resolve_fl_variable_derived): Imply SAVE
836 for module variables for Fortran 2008.
838 2010-02-25 Jakub Jelinek <jakub@redhat.com>
841 * trans-common.c (build_common_decl): Also update DECL_MODE,
842 and DECL_SIZE when encountering a larger common block and call
845 2010-02-24 Tobias Burnus <burnus@net-b.de>
848 * trans-expr.c (gfc_conv_initializer): Call directly
849 gfc_conv_constant for C_NULL_(FUN)PTR.
851 2010-02-22 Paul Thomas <pault@gcc.gnu.org>
854 * dependency.c (gfc_full_array_ref_p): Check for contiguous by
855 checking the rest of the dimensions for elements.
857 2010-02-21 Tobias Burnus <burnus@net-b.de>
860 * gfortran.h (gfc_option_t): New flag -fprotect-parens.
862 * option.c (gfc_init_options,gfc_handle_option): Ditto.
863 * trans-expr.c (gfc_conv_expr_op): Use the flag.
864 * invoke.texi: Document new -fno-protect-parens flag.
866 2010-02-20 Paul Thomas <pault@gcc.gnu.org>
872 * dependency.c (gfc_check_argument_var_dependency): Use enum
873 value instead of arithmetic vaue for 'elemental'.
874 (check_data_pointer_types): New function.
875 (gfc_check_dependency): Call check_data_pointer_types.
876 * trans-array.h : Change fourth argument of
877 gfc_conv_array_parameter to boolean.
878 * trans-array.c (gfc_conv_array_parameter): A contiguous array
879 can be a dummy but it must not be assumed shape or deferred.
880 Change fourth argument to boolean. Array constructor exprs will
881 always be contiguous and do not need packing and unpacking.
882 * trans-expr.c (gfc_conv_procedure_call): Clean up some white
883 space and change fourth argument of gfc_conv_array_parameter
885 (gfc_trans_arrayfunc_assign): Change fourth argument of
886 gfc_conv_array_parameter to boolean.
887 * trans-io.c (gfc_convert_array_to_string): The same.
888 * trans-intrinsic.c (gfc_conv_intrinsic_loc): The same.
890 2010-02-20 Tobias Burnus <burnus@net-b.de>
893 * libgfortran.h: Add GFC_RTCHECK_MEM.
894 * invoke.texi (-fcheck=): Document -fcheck=mem.
895 * tranc.c (gfc_call_malloc): Remove negative-size run-time error
896 and enable malloc-success check only with -fcheck=mem.
897 * option.c (gfc_handle_runtime_check_option): Add -fcheck=mem.
899 2010-02-16 Tobias Burnus <burnus@net-b.de>
902 * gfortran.h (gfc_isym_id): Rename GFS_ISYM_GAMMA to GFS_ISYM_TGAMMA.
903 * intrinsic.c (add_functions): Ditto.
904 * iresolve.c (gfc_resolve_gamma): Call tgamma instead of gamma.
905 * mathbuiltins.def: Use TGAMMA instead of GAMMA with "tgamma".
907 2010-02-14 Jerry DeLisle <jvdelisle@gcc.gnu.org>
910 * trans-stmt.h: Add prototype for gfc_trans_code_cond. Add tree cond to
911 gfc_trans_do prototype.
912 * trans-stmt.c (gfc_trans_simple_do): Add optional argument to pass in
913 a loop exit condition. If exit condition is given, build the loop exit
914 code, checking IO results of implied do loops in READ and WRITE.
915 (gfc_trans_do): Likewise.
916 * trans.c (trans_code): New static work function, previously
917 gfc_trans_code. Passes exit condition to gfc_trans_do.
918 (gfc_trans_code): Calls trans_code with NULL_TREE condition.
919 (gfc_trans_code_cond): Calls trans_code with loop exit condition.
920 * trans-io.c (build_dt): Build an exit condition to allow checking IO
921 result status bits in the dtparm structure. Use this condition in call
922 to gfc_trans_code_cond.
924 2010-02-13 Paul Thomas <pault@gcc.gnu.org>
928 * trans-array.c (gfc_conv_array_parameter): Use
929 gfc_full_array_ref_p to detect full and contiguous variable
930 arrays. Full array components and contiguous arrays do not need
931 internal_pack and internal_unpack.
933 2010-02-11 Jakub Jelinek <jakub@redhat.com>
936 * resolve.c (gfc_resolve_dim_arg): Call gfc_clear_ts.
939 * decl.c (enumerator_decl): Don't call gfc_free_enum_history
941 (gfc_match_enumerator_def): But here whenever enumerator_decl returns
944 2010-02-10 Joost VandeVondele <jv244@cam.ac.uk>
945 Tobias Burnus <burnus@net-b.de>
948 * decl.c (gfc_match_subroutine): Explicitly set sym->declared_at.
950 2010-02-10 Tobias Burnus <burnus@net-b.de>
953 * trans-decl.c (gfc_generate_function_code): Only check
954 actual-vs.-dummy character bounds if not bind(C).
956 2010-02-10 Jakub Jelinek <jakub@redhat.com>
959 * trans-expr.c (gfc_conv_subref_array_arg): Avoid accessing
960 info->dimen after info has been freed.
962 2010-02-09 Jerry DeLisle <jvdelisle@gcc.gnu.org>
965 * array.c (gfc_constant_ac): Do not prevent expansion of constructors
968 2010-02-09 Jakub Jelinek <jakub@redhat.com>
970 * module.c (fix_mio_expr): Declare sym.
972 2010-02-09 Paul Thomas <pault@gcc.gnu.org>
975 * module.c (fix_mio_expr): Fix for private generic procedures.
977 2010-02-09 Daniel Kraft <d@domob.eu>
980 * resolve.c (resolve_charlen): Change warning about negative CHARACTER
981 length to be correct and issue only with -Wsurprising.
982 * invoke.texi (Wsurprising): Mention this new warning that is
983 turned on by -Wsurprising.
985 2010-02-09 Daniel Kraft <d@domob.eu>
988 * intrinsic.texi (MAXVAL): Remove wrong claim that array argument
989 can be CHARACTER type.
990 (MINVAL), (MAXLOC), (MINLOC): Ditto.
992 2010-02-05 Paul Thomas <pault@gcc.gnu.org>
995 * trans-expr.c (gfc_conv_subref_array_arg): Add new argument
996 'formal_ptr'. If this is true, give returned descriptor unity
997 lbounds, in all dimensions, and the appropriate offset.
998 (gfc_conv_procedure_call); If formal is a pointer, set the last
999 argument of gfc_conv_subref_array_arg to true.
1000 * trans.h : Add last argument for gfc_conv_subref_array_arg.
1001 * trans-io.c (set_internal_unit, gfc_trans_transfer): Set the
1002 new arg of gfc_conv_subref_array_arg to false.
1003 * trans-stmt.c (forall_make_variable_temp): The same.
1005 2010-02-03 Tobias Burnus <burnus@net-b.de>
1008 * interface.c (compare_parameter): Disable rank-checking
1011 2010-02-02 Tobias Burnus <burnus@net-b.de>
1014 * parse.c (decode_specification_statement): Use sym->result not sym.
1016 2010-02-01 Tobias Burnus <burnus@net-b.de>
1019 * decl.c (variable_decl): Allow default initializer in
1020 TYPE declarations in PURE functions.
1022 2010-01-31 Janus Weil <janus@gcc.gnu.org>
1025 * resolve.c (resolve_allocate_expr): Move default initialization code
1026 here from gfc_trans_allocate.
1027 * trans.c (gfc_trans_code): Call gfc_trans_class_assign also for
1029 * trans-expr.c (gfc_trans_class_assign): Handle default initialization
1030 of CLASS variables via memcpy.
1031 * trans-stmt.c (gfc_trans_allocate): Move default initialization code
1032 to resolve_allocate_expr.
1034 2010-01-31 Paul Thomas <pault@gcc.gnu.org>
1037 * expr.c (gfc_get_full_arrayspec_from_expr): New function.
1038 * gfortran.h : Add prototype for above.
1039 * trans-expr.c (gfc_trans_alloc_subarray_assign): New function.
1040 (gfc_trans_subcomponent_assign): Call new function to replace
1041 the code to deal with allocatable components.
1042 * trans-intrinsic.c (gfc_conv_intrinsic_bound): Call
1043 gfc_get_full_arrayspec_from_expr to replace existing code.
1045 2010-01-25 Tobias Burnus <burnus@net-b.de>
1048 * array.c (gfc_array_dimen_size): Fix intrinsic procedure
1051 2010-01-24 Paul Thomas <pault@gcc.gnu.org>
1055 * expr.c (remove_subobject_ref): If the constructor is NULL use
1056 the expression as the source.
1057 (simplify_const_ref): Change the type of expression if
1058 there are component references. Allow for substring to be at
1059 the end of an arbitrarily long chain of references. If an
1060 element is found that is not in an EXPR_ARRAY, assume that this
1061 is scalar initialization of array. Call remove_subobject_ref in
1062 this case with NULL second argument.
1064 2010-01-24 Tobias Burnus <burnus@net-b.de>
1067 * array.c (gfc_array_dimen_size): Use correct specific
1068 function in the check.
1070 2010-01-21 Paul Thomas <pault@gcc.gnu.org>
1073 * trans-stmt.c (gfc_conv_elemental_dependencies): If temporary
1074 is required, turn any trailing array elements after a range
1075 into ranges so that offsets can be calculated.
1077 2010-01-20 Joern Rennecke <amylaar@spamcop.net>
1079 * module.c (mio_f2k_derived): Use enumerator as initializer of
1083 * gfortran.h (struct gfc_namespace) <resolved>: Change to signed
1084 bitfield of width 2.
1086 2010-01-19 Janus Weil <janus@gcc.gnu.org>
1089 * resolve.c (extract_compcall_passed_object): Set locus for
1090 passed-object argument.
1091 (extract_ppc_passed_object): Set locus and correctly remove PPC
1094 2010-01-19 Paul Thomas <pault@gcc.gnu.org>
1097 * trans-decl.c (add_argument_checking): Do not use the backend
1098 decl directly to test for the presence of an optional dummy
1099 argument. Use gfc_conv_expr_present, remembering to set the
1103 * trans-decl.c (gfc_generate_function_code): Small white space
1104 changes. If 'recurcheckvar' is NULL do not try to reset it.
1106 2010-01-19 Janus Weil <janus@gcc.gnu.org>
1109 * resolve.c (resolve_fl_derived): Set the accessibility of the parent
1110 component for extended types.
1111 * symbol.c (gfc_find_component): Remove a wrongly-worded error message
1112 and take care of parent component accessibility.
1114 2010-01-17 Janus Weil <janus@gcc.gnu.org>
1117 * gfortran.h (symbol_attribute): Remove 'ambiguous_interfaces'.
1118 * interface.c (check_interface1): Move a warning message here from
1119 resolve_fl_procedure.
1120 (check_sym_interfaces): Removed 'attr.ambiguous_interfaces'.
1121 * module.c (read_module): Remove call to gfc_check_interfaces, since
1122 this comes too early here.
1123 * resolve.c (resolve_fl_procedure): Move warning message to
1126 2010-01-14 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1129 * interface.c (check_interface1): Pass symbol name rather than NULL to
1130 gfc_compare_interfaces. (gfc_compare_interfaces): Add assert to
1132 * resolve.c (check_generic_tbp_ambiguity): Pass symbol name rather
1133 than NULL to gfc_compare_interfaces.
1135 2010-01-14 Paul Thomas <pault@gcc.gnu.org>
1138 * trans-array.c (duplicate_allocatable): Static version of
1139 gfc_duplicate_allocatable with provision to handle scalar
1140 components. New boolean argument to switch off call to malloc
1142 (gfc_duplicate_allocatable): New function to call above with
1144 (gfc_copy_allocatable_data): New function to call above with
1146 (structure_alloc_comps): Do not apply indirect reference to
1147 scalar pointers. Add new section to copy allocatable components
1148 of arrays. Extend copying of allocatable components to include
1150 (gfc_copy_only_alloc_comp): New function to copy allocatable
1151 component derived types, without allocating the base structure.
1152 * trans-array.h : Add primitive for gfc_copy_allocatable_data.
1153 Add primitive for gfc_copy_only_alloc_comp.
1154 * trans-expr.c (gfc_conv_procedure_call): After calls to
1155 transformational functions with results that are derived types
1156 with allocatable components, copy the components in the result.
1157 (gfc_trans_arrayfunc_assign): Deallocate allocatable components
1158 of lhs derived types before allocation.
1160 2010-01-14 Paul Thomas <pault@gcc.gnu.org>
1163 * module.c (load_generic_interfaces): If a procedure that is
1164 use associated but not generic is given an interface that
1165 includes itself, then make it generic.
1167 2010-01-11 Joseph Myers <joseph@codesourcery.com>
1168 Shujing Zhao <pearly.zhao@oracle.com>
1170 PR translation/42469
1171 * lang.opt (fblas-matmul-limit=, finit-character=, finit-integer=,
1172 finit-logical=, finit-real=, fmax-array-constructor=): Use tab
1173 character between option name and help text.
1175 2010-01-09 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1179 * trans-array.c (gfc_conv_array_initializer): Change call to
1180 gfc_error_now to call to gfc_fatal_error.
1181 * array.c (count_elements): Whitespace. (extract_element): Whitespace.
1182 (is_constant_element): Changed name from constant_element.
1183 (gfc_constant_ac): Only use expand_construuctor for expression
1184 types of EXPR_ARRAY. If expression type is EXPR_CONSTANT, no need to
1185 call gfc_is_constant_expr.
1186 * expr.c (gfc_reduce_init_expr): Adjust conditionals and delete error
1188 * resolve.c (gfc_is_expandable_expr): New function that determiners if
1189 array expressions should have their constructors expanded.
1190 (gfc_resolve_expr): Use new function to determine whether or not to call
1191 gfc_expand_constructor.
1193 2010-01-09 Tobias Burnus <burnus@net-b.de>
1196 * trans-expr.c (gfc_trans_structure_assign): Handle
1198 * symbol.c (gen_special_c_interop_ptr): Add NULL_EXPR
1199 to the constructor for c_null_(fun)ptr.
1200 * resolve.c (resolve_structure_cons): Add special case
1201 for c_null_(fun)ptr.
1203 2010-01-09 Jakub Jelinek <jakub@redhat.com>
1205 * gfortranspec.c (lang_specific_driver): Update copyright notice
1208 2010-01-08 Tobias Burnus <burnus@net-b.de>
1211 * symbol.c (check_conflict, gfc_copy_attr): Add
1212 ASYNCHRONOUS support.
1213 (gfc_add_asynchronous): New function.
1214 * decl.c (match_attr_spec): Add ASYNCHRONOUS support.
1215 (gfc_match_asynchronous): New function.
1216 * dump-parse-tree.c (show_attr): Add ASYNCHRONOUS support.
1217 * gfortran.h (symbol_attribute): New ASYNCHRONOUS bit.
1218 (gfc_add_asynchronous): New Prototype.
1219 * module.c (ab_attribute, mio_symbol_attribute): Add
1220 ASYNCHRONOUS support.
1221 * resolve.c (was_declared): Ditto.
1222 * match.h (gfc_match_asynchronous): New prototype.
1223 * parse.c (decode_specification_statement,decode_statement):
1224 Add ASYNCHRONOUS support.
1226 2010-01-07 Tobias Burnus <burnus@net-b.de>
1229 * trans-decl.c (get_proc_pointer_decl): Fix call to
1230 gfc_conv_initializer for array-valued proc-pointer funcs.
1232 2010-01-07 Tobias Burnus <burnus@net-b.de>
1235 * trans-decl.c (gfc_trans_deferred_vars): Don't initialize
1236 allocatable scalars with SAVE attribute.
1238 2010-01-05 Tobias Burnus <burnus@net-b.de>
1241 * options.c (gfc_post_options): Set -frecursion
1242 when -fopenmp is used.
1244 2010-01-05 Tobias Burnus <burnus@net-b.de>
1247 * trans-expr.c (gfc_conv_procedure_call): Nullify
1248 return value for allocatable-scalar character functions.
1250 2010-01-04 Tobias Burnus <burnus@net-b.de>
1253 * error.c (error_printf, gfc_warning, gfc_notify_std,
1254 gfc_warning_now, gfc_error, gfc_error_now,
1255 gfc_fatal_error): Change argument name from nocmsgid to
1256 gmsgid to enable (x)gettext's % checking.
1258 2010-01-04 Tobias Burnus <burnus@net-b.de>
1260 * trans-decl.c (gfc_trans_deferred_vars): Fix spelling.
1262 2010-01-04 Tobias Burnus <burnus@net-b.de>
1265 * trans-expr.c (gfc_conv_procedure_call): Add indirect ref
1266 for functions returning allocatable scalars.
1267 * trans-stmt.c (gfc_trans_allocate): Emmit error when
1268 reallocating an allocatable scalar.
1269 * trans.c (gfc_allocate_with_status): Fix pseudocode syntax
1271 * trans-decl.c (gfc_trans_deferred_vars): Nullify local
1272 allocatable scalars.
1273 (gfc_generate_function_code): Nullify result variable for
1274 allocatable scalars.
1277 * module.c (gfc_use_module): Fix warning string to allow
1281 * invoke.texi (-fcheck=recursion): Mention that the checking
1282 is also disabled for -frecursive.
1283 * trans-decl.c (gfc_generate_function_code): Disable
1284 -fcheck=recursion when -frecursive is used.
1286 * intrinsic.texi (iso_c_binding): Improve wording.
1289 Copyright (C) 2010 Free Software Foundation, Inc.
1291 Copying and distribution of this file, with or without modification,
1292 are permitted in any medium without royalty provided the copyright
1293 notice and this notice are preserved.