1 2007-02-19 Thomas Koenig <Thomas.Koenig@online.de>
4 * fortran/iresolve.c(gfc_resolve_maxloc): Remove coercion of
5 argument to default integer.
6 (gfc_resolve_minloc): Likewise.
8 2007-02-18 Jerry DeLisle <jvdelisle@gcc.gnu.org>
11 * options.c (gfc_init_options): Relax warning level for obsolescent.
12 * match.c (match_arithmetic_if): Change to obsolescent from deleted.
15 2007-02-18 Roger Sayle <roger@eyesopen.com>
17 * trans-array.c (gfc_build_constant_array_constructor): When the
18 shape of the constructor is known, use that to construct the
20 (gfc_trans_constant_array_constructor): Initialize the "info"
21 information for all of the dimensions of the array constructor.
22 (constant_array_constructor_loop_size): New function.
23 (gfc_trans_array_constructor): Use it to determine whether a
24 loop is suitable for "constant array constructor" optimization.
26 * trans-intrinsic.c (gfc_conv_intrinsic_anyall): Use fold_build2
27 instead of build2, to avoid conditions like "(a != b) != 0".
29 2007-02-18 Roger Sayle <roger@eyesopen.com>
30 Paul Thomas <pault@gcc.gnu.org>
33 * match.c (match_forall_iterator): Use gfc_match_expr instead
34 of gfc_match_variable to match the iterator variable. Return
35 MATCH_NO if not a variable. Remove the reset of the symbol's
38 2007-02-16 Tobias Burnus <burnus@net-b.de>
41 * trans-decl.c (gfc_generate_function_code): Do not initialize
42 pointers to derived components.
44 2007-02-15 Sandra Loosemore <sandra@codesourcery.com>
45 Brooks Moses <brooks.moses@codesourcery.com>
46 Lee Millward <lee.millward@codesourcery.com>
48 * trans-expr.c (gfc_conv_power_op): Use build_call_expr.
49 (gfc_conv_string_tmp): Likewise.
50 (gfc_conv_concat_op): Likewise.
51 (gfc_build_compare_string): Likewise.
52 (gfc_conv_function_call): Use build_call_list instead of build3.
54 * trans-array.c (gfc_trans_allocate_array_storage): Use
56 (gfc_grow_array): Likewise.
57 (gfc_trans_array_ctor_element): Likewise.
58 (gfc_trans_array_constructor_value): Likewise.
59 (gfc_array_allocate): Likewise.
60 (gfc_array_deallocate): Likewise.
61 (gfc_trans_auto_array_allocation): Likewise.
62 (gfc_trans_dummy_array_bias): Likewise.
63 (gfc_conv_array_parameter): Likewise.
64 (gfc_trans_dealloc_allocated): Likewise.
65 (gfc_duplicate_allocatable): Likewise.
67 * trans-openmp.c (gfc_trans_omp_barrier): Use build_call_expr.
68 (gfc_trans_omp_flush): Likewise.
70 * trans-stmt.c (gfc_conv_elementel_dependencies): Use build_call_expr.
71 (gfc_trans_pause): Likewise.
72 (gfc_trans_stop): Likewise.
73 (gfc_trans_character_select): Likewise.
74 (gfc_do_allocate): Likewise.
75 (gfc_trans_assign_need_temp): Likewise.
76 (gfc_trans_pointer_assign_need_temp): Likewise.
77 (gfc_trans_forall_1): Likewise.
78 (gfc_trans_where_2): Likewise.
79 (gfc_trans_allocate): Likewise.
80 (gfc_trans_deallocate): Likewise.
82 * trans.c (gfc_trans_runtime_check): Use build_call_expr.
84 * trans-io.c (gfc_trans_open): Use build_call_expr.
85 (gfc_trans_close): Likewise.
86 (build_filepos): Likewise.
87 (gfc_trans_inquire): Likewise.
88 (NML_FIRST_ARG): Delete.
89 (NML_ADD_ARG): Delete.
90 (transfer_namelist_element): Use build_call_expr.
92 (gfc_trans_dt_end): Likewise.
93 (transfer_expr): Likewise.
94 (transfer_array-desc): Likewise.
96 * trans-decl.c (gfc_generate_function_code): Use build_call_expr.
97 (gfc_generate_constructors): Likewise.
99 * trans-intrinsic.c (gfc_conv_intrinsic_ctime): Use build_call_expr.
100 (gfc_conv_intrinsic_fdate): Likewise.
101 (gfc_conv_intrinsic_ttynam): Likewise.
102 (gfc_conv_intrinsic_array_transfer): Likewise.
103 (gfc_conv_associated): Likewise.
104 (gfc_conv_intrinsic_si_kind): Likewise.
105 (gfc_conv_intrinsic_trim): Likewise.
106 (gfc_conv_intrinsic_repeat: Likewise.
107 (gfc_conv_intrinsic_iargc): Likewise.
109 2007-02-14 Jerry DeLisle <jvdelisle@gcc.gnu.org>
112 * scanner.c (gfc_next_char_literal): Add check for end of file after
113 call to advance_line.
115 2007-02-14 Steven G. Kargl <kargl@gcc.gnu.org>
118 * primary.c (match_logical_constant): Return MATCH_ERROR on invalid
121 2007-02-14 Steven G. Kargl <kargl@gcc.gnu.org>
123 * misc.c (gfc_typename): Fix potential buffer overflow.
125 2007-02-13 Paul Thomas <pault@gcc.gnu.org>
128 * module.c (read_module): Set pointer_info to referenced if the
129 symbol has no namespace.
131 2007-02-12 Nick Clifton <nickc@redhat.com>
133 * lang.opt: Add Warning attribute to warning options.
135 2007-02-11 Daniel Franke <franke.daniel@gmail.com>
137 * intrinsic.texi (HOSTNM): Fix typographical error in syntax.
138 (SLEEP): Added section and documentation.
140 2007-02-11 Tobias Schlüter <tobi@gcc.gnu.org>
143 * decl.c (add_init_expr_to_sym): Remove ENUM specific code.
144 (variable_decl): Likewise. Rewrap comment.
145 (match_attr_spec): Remove ENUM specific code.
146 (gfc_match_enum): Fix typo in error message.
147 (enumerator_decl): New function.
148 (gfc_match_enumerator_def): Use enumerator_decl instead of
149 variable_decl. Adapt code accordingly.
151 2007-02-11 Paul Thomas <pault@gcc.gnu.org>
154 * module.c (find_symtree_for_symbol): New function to return
155 a symtree that is not a "unique symtree" given a symbol.
156 (read_module): Do not automatically set pointer_info to
157 referenced because this inhibits the generation of a unique
158 symtree. Recycle the existing symtree if possible by calling
159 find_symtree_for_symbol.
162 * decl.c (add_init_expr_to_sym): Make new charlen for an array
163 constructor initializer.
165 2007-02-10 Richard Henderson <rth@redhat.com>, Jakub Jelinek <jakub@redhat.com>
167 * f95-lang.c (gfc_init_builtin_functions): Add __emutls_get_address
168 and __emutls_register_common.
169 * openmp.c (gfc_match_omp_threadprivate): Don't error if !have_tls.
170 * trans-common.c (build_common_decl): Don't check have_tls.
171 * trans-decl.c (gfc_finish_var_decl): Likewise.
172 * types.def (BT_WORD, BT_FN_PTR_PTR): New.
173 (BT_FN_VOID_PTR_WORD_WORD_PTR): New.
175 2007-02-09 Tobias Burnus <burnus@net-b.de>
178 * trans-intrinsic.c (gfc_conv_intrinsic_minmaxloc,
179 gfc_conv_intrinsic_minmaxval): Use HUGE-1 for most negative integer.
181 2007-02-09 Francois-Xavier Coudert <coudert@clipper.ens.fr>
184 * trans-array.c (gfc_trans_create_temp_array): Remove use of the
185 function argument. Always generate code for negative extent.
187 * trans-array.h (gfc_trans_create_temp_array): Change prototype.
188 * trans-expr.c (gfc_conv_function_call): Remove use of last argument
189 of gfc_trans_create_temp_array.
190 * trans-intrinsic.c (gfc_conv_intrinsic_array_transfer): Likewise.
191 * trans-stmt.c (gfc_conv_elemental_dependencies): Likewise.
193 2007-02-08 Roger Sayle <roger@eyesopen.com>
195 * trans-stmt.c (gfc_trans_forall_1): Optimize the cases where the
196 mask expression is a compile-time constant (".true." or ".false.").
198 2007-02-04 Francois-Xavier Coudert <coudert@clipper.ens.fr>
201 * trans-intrinsic.c (gfc_conv_intrinsic_repeat): Evaluate
202 arguments only once. Generate check that NCOPIES argument is not
205 2007-02-04 Steven G. Kargl <kargl@gcc.gnu.org>
208 * fortran/invoke.texi: Update documentation.
209 * fortran/options.c (gfc_post_options): Deal with tabs with -std=f2003
212 2007-02-03 Kazu Hirata <kazu@codesourcery.com>
214 * trans-array.c: Fix a comment typo.
216 2007-02-03 Paul Thomas <pault@gcc.gnu.org>
219 * array.c (match_array_element_spec): If the length of an array is
220 negative, adjust the upper limit to make it zero length.
223 * resolve.c (pure_function, resolve_function): Initialize name to
224 null to clear up build warnings.
225 (resolve_fl_variable): Look at components explicitly to check for
226 default initializer, rather than using gfc_default_initializer.
228 2007-02-02 Steven G. Kargl <kargl@gcc.gnu.org>
231 * resolve.c (resolve_generic_f): Check for non-NULL sym.
233 2007-02-02 Roger Sayle <roger@eyesopen.com>
235 * trans.c (gfc_build_array_ref): Use STRIP_TYPE_NOPS to eliminate
236 NON_LVALUE_EXPR nodes and useless type conversions.
238 2007-02-02 Paul Thomas <pault@gcc.gnu.org>
242 * trans-expr.c (gfc_conv_aliased_arg): Remove static attribute
243 from function and make sure that substring lengths are
245 (is_aliased_array): Remove static attribute.
246 * trans.c : Add prototypes for gfc_conv_aliased_arg and
248 * trans-io.c (set_internal_unit): Add the post block to the
249 arguments of the function. Use is_aliased_array to check if
250 temporary is needed; if so call gfc_conv_aliased_arg.
251 (build_dt): Pass the post block to set_internal_unit and
252 add to the block after all io activiy is done.
254 2007-02-01 Roger Sayle <roger@eyesopen.com>
256 * trans-array.c (gfc_conv_expr_descriptor): We don't need to use
257 a temporary array to pass a constant non-character array constructor.
258 Generalize the descriptor generation code to handle scalarizer
259 "info" without an array reference.
261 2007-02-01 Roger Sayle <roger@eyesopen.com>
263 * dependency.c (gfc_check_dependency) <EXPR_ARRAY>: Implement
264 dependency checking for array constructors.
266 2007-02-01 Roger Sayle <roger@eyesopen.com>
268 * trans-stmt.c (compute_overall_iter_number): Document function
269 arguments. Generalize "unconditional forall nest with constant
270 bounds" optimization to eliminate unconditional inner loops with
273 2007-01-31 Tobias Burnus <burnus@net-b.de>
276 * interface.c (compare_actual_formal): Check conformance between
277 actual and VOLATILE dummy arguments.
278 * symbol.c (gfc_add_volatile): Allow setting of VOLATILE
279 multiple times in different scopes.
280 * decl.c (gfc_match_volatile): Search symbol in host association.
282 2007-01-31 Kazu Hirata <kazu@codesourcery.com>
284 * simplify.c, trans-array.c: Fix comment typos.
286 2007-01-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
288 * invoke.texi (Code Gen Options): Fix abbreviation typo.
289 * intrinsic.texi (ACCESS, LSHIFT, RSHIFT): Fix typos.
291 2007-01-30 Steve Ellcey <sje@cup.hp.com>
294 * trans-types.c (gfc_get_function_type): Do not add void_type_node
296 * trans-decl.c (create_function_arglist): Change assert.
298 2007-01-29 Paul Thomas <pault@gcc.gnu.org>
301 * module.c (read_module): If a symbol is excluded by an ONLY
302 clause, check to see if there is a symtree already loaded. If
303 so, attach the symtree to the pointer_info.
305 2007-01-28 Thomas Koenig <Thomas.Koenig@online.de>
308 * gfortran.h: Remove gfc_simplify_init_1.
309 * arith.h: Remove third argument from gfc_compare_string.
310 * arith.c(gfc_compare_expression): Remove third argument
311 from call to gfc_compare_string.
312 (gfc_compare_string): Remove third argument xcoll_table.
313 Remove use of xcoll_table.
314 * misc.c(gfc_init_1): Remove call to gfc_simplify_init_1.
315 * simplify.c(ascii_table): Remove.
316 (xascii_table): Likewise.
317 (gfc_simplify_achar): ICE if extract_int fails. Remove use of
318 ascii_table. Warn if -Wsurprising and value < 0 or > 127.
319 (gfc_simplify_char): ICE if extract_int fails. Error if
320 value < 0 or value > 255.
321 (gfc_simplify_iachar): Remove use of xascii_table.
322 Char values outside of 0..255 are an ICE.
323 (gfc_simplify_lge): Remove use of xascii_table.
324 (gfc_simplify_lgt): Likewise.
325 (gfc_simplify_lle): Likewise.
326 (gfc_simplify_llt): Likewise.
327 (invert_table): Remove.
328 (gfc_simplify_init_1): Remove.
330 2007-01-27 Roger Sayle <roger@eyesopen.com>
332 * trans-stmt.c (forall_info): Replace the next_nest and outer
333 fields that previously implemented a doubly-linked list with a
334 single prev_nest field (singly-linked list).
335 (gfc_trans_nested_forall_loop): The nested_forall_info argument
336 now denotes the innermost FORALL in the loop nest.
337 (compute_overall_iter_number): Use prev_nest instead of next_nest.
338 (gfc_trans_forall_1): Link/cons the new "info" to the head of the
339 nested_forall_info linked list. Free the current "info" when done.
341 2007-01-27 Paul Thomas <pault@gcc.gnu.org>
344 * trans-expr.c (gfc_conv_operator_assign): New function.
345 * trans.h : Add prototype for gfc_conv_operator_assign.
346 * trans-stmt.c (gfc_trans_where_assign): Add a gfc_symbol for
347 a potential operator assignment subroutine. If it is non-NULL
348 call gfc_conv_operator_assign instead of the first assignment.
349 ( gfc_trans_where_2): In the case of an operator assignment,
350 extract the argument expressions from the code for the
351 subroutine call and pass the symbol to gfc_trans_where_assign.
352 resolve.c (resolve_where, gfc_resolve_where_code_in_forall,
353 gfc_resolve_forall_body): Resolve the subroutine call for
354 operator assignments.
356 2007-01-26 Steven Bosscher <stevenb.gcc@gmail.com>
357 Steven G. Kargl <kargl@gcc.gnu.org>
360 * fortran/io.c (next_char): Deal with backslash escaped characters.
361 Issue warnings in non -std=gnu cases.
362 * fortran/primary.c (next_string_char): Issue warnings in non
364 2007-01-26 Tobias Burnus <burnus@net-b.de>
366 * lang-specs.h: Add support for .f03 and .F03 extensions.
367 * gfortran.texi: Document .f03 extension.
368 * options.c (form_from_filename): Recognize .f03.
370 2007-01-25 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
373 * lang.opt (Wall): Remove RejectNegative.
374 * options.c (gfc_handle_option): Wall can be disabled.
375 (set_Wall): Add a parameter for disabling Wall.
377 2007-01-23 Jerry DeLisle <jvdelisle@gcc.gnu.org>
380 * scanner.c (load_line): Remove check fot ctrl-z and don't gobble.
382 2007-01-23 Paul Thomas <pault@gcc.gnu.org>
385 * match.c (gfc_match_namelist): Add check for assumed size character
386 in namelist and provide error if found.
388 2007-01-21 Brooks Moses <brooks.moses@codesourcery.com>
390 * intrinsic.texi (ACHAR): Added cross-references.
391 (CHAR): Put cross-references in alphabetical order.
392 (IACHAR): Added cross-references.
393 (ICHAR): Added cross-references.
395 2007-01-20 Brooks Moses <brooks.moses@codesourcery.com>
397 * intrinsic.texi: Edited all "Syntax" examples to a consistent form.
398 (MAXVAL): Corrected description of result characteristics.
400 (UMASK): Added documentation.
402 2007-01-20 Steven G. Kargl <kargl@gcc.gnu.org>
404 * openmp.c, matchexp.c, module.c, scanner.c, resolve.c, st.c,
405 parse.c, primary.c, options.c, misc.c, simplify.c: Next installment
406 in the massive whitespace patch.
408 2007-01-20 Roger Sayle <roger@eyesopen.com>
410 * module.c (mio_array_ref): The dimen_type fields of an array ref
411 are an enumerated type and can't be read/written directly with a
412 call to mio_integer. Instead loop over and cast each element.
414 2007-01-20 Roger Sayle <roger@eyesopen.com>
416 * dependency.c (gfc_full_array_ref_p): Check that ref->next is NULL,
417 i.e. that the ARRAY_REF doesn't mention components.
418 * trans-array.c (gfc_constant_array_constructor_p): Export external
419 function renamed from constant_array_constructor_p.
420 (gfc_build_constant_array_constructor): Export.
421 (gfc_trans_array_constructor): Update call to the renamed function
422 constant_array_constructor_p.
423 * trans-array.h (gfc_constant_array_constructor_p): Prototype here.
424 (gfc_build_constant_array_constructor): Likewise.
425 * trans-expr.c (gfc_build_memcpy_call): New helper function split
426 out from gfc_trans_array_copy.
427 (gfc_trans_array_copy): Use gfc_build_memcpy_call.
428 (gfc_trans_array_constructor_copy): New function to optimize
429 assigning an entire array from a constant array constructor.
430 (gfc_trans_assignment): Call gfc_trans_array_constructor_copy
433 2007-01-20 Roger Sayle <roger@eyesopen.com>
435 * trans-intrinsic.c (gfc_conv_intrinsic_sign): New branchless
436 implementation for the SIGN intrinsic with integral operands.
437 (gfc_conv_intrinsic_minmax): Fix whitespace.
439 2007-01-20 Francois-Xavier Coudert <coudert@clipper.ens.fr>
441 * gfortran.h (gfc_options_t): Add flag_allow_leading_underscore.
442 * lang.opt: Add -fallow-leading-underscore.
443 * match.c (gfc_match_name): Allow leading underscore in symbol
444 name if -fallow-leading-underscore is used.
445 * symbol.c (gfc_get_default_type): Add special case for symbol
446 names beginning with an underscore.
447 * trans-decl.c (gfc_get_extern_function_decl,
448 gfc_build_intrinsic_function_decls): Add _gfortran prefix to
449 library symbols selected_int_kind, selected_real_kind and
451 * options.c (gfc_init_options, gfc_handle_option): Handle the
452 new -fallow-leading-underscore option.
454 2007-01-20 Francois-Xavier Coudert <coudert@clipper.ens.fr>
457 * options.c (gfc_handle_module_path_options): Path used in -J
458 option is now added to the module search path.
460 2007-01-20 Richard Guenther <rguenther@suse.de>
463 * f95-lang.c (gfc_init_builtin_functions): Provide cbrt and
464 cexpi builtins if we have TARGET_C99_FUNCTIONS. Provide
465 sincos builtins if the target has sincos.
467 2007-01-19 Brooks Moses <brooks.moses@codesourcery.com>
469 * intrinsic.texi (MATMUL): Corrected a typo.
470 (MAX): Separated @var arguments.
471 (MIN): Separated @var arguments.
473 2007-01-19 Brooks Moses <brooks.moses@codesourcery.com>
475 * intrinsic.texi: general whitespace cleanup.
476 (menu): Added TIME8, removed UNMASK.
477 (AINT): Clarified argument requirement.
478 (ANINT): Clarified argument requirement.
479 (CEILING): Clarified argument requirement.
480 (CHAR): Clarified argument requirement.
481 (CMPLX): Clarified argument requirement.
482 (DCMPLX): Clarified argument requirement.
483 (FGET): Line rewrapping.
484 (FLOOR): Clarified argument requirement.
485 (GMTIME): Added documentation.
486 (IAND): Added cross-reference.
487 (IBCLR): Added cross-reference.
488 (IBSET): Added cross-reference.
489 (IEOR): Added cross-reference.
490 (INT): Collapsed examples, clarified argument requirement.
491 (IOR): Added cross-references.
492 (LEN_TRIM): Corrected result kind.
493 (LINK): Added cross-reference.
494 (LLT): Removed "documentation pending".
495 (LOGICAL): Added documentation.
496 (LSHIFT): Added documentation.
497 (LTIME): Added documentation.
498 (MATMUL): Added documentation.
499 (MAX): Added documentation.
500 (MAXLOC): Added documentation.
501 (MAXVAL): Added documentation.
502 (MERGE): Added documentation.
503 (MIN): Added documentation.
504 (MINLOC): Added documentation.
505 (MINVAL): Added documentation.
506 (MVBITS): Moved to correct place, added documentation.
507 (NOT): Added documentation.
508 (PERROR): Added documentation.
509 (RAN): Moved to correct place, added documentation.
510 (REAL): Clarified argument requirement.
511 (RENAME): Added documentation.
512 (RSHIFT): Clarified argument requirement.
513 (SIGN): Corrected table specification.
514 (SYMLNK): Added documentation.
515 (SYSTEM): Added documentation.
516 (TIME): Added documentation.
517 (TIME8): Added section and documentation.
518 (UNMASK): Removed erroneous section.
520 2007-01-18 H.J. Lu <hongjiu.lu@intel.com>
522 * trans-stmt.c (compute_overall_iter_number): Fix a typo.
524 2007-01-18 Roger Sayle <roger@eyesopen.com>
526 * trans-expr.c (copyable_array_p): Consider user derived types without
527 allocatable components to be copyable.
529 2007-01-18 Roger Sayle <roger@eyesopen.com>
531 * trans-stmt.c (compute_overall_iter_number): Enhance to precompute
532 the number of interations in unconditional FORALL nests with constant
535 2007-01-18 Francois-Xavier Coudert <coudert@clipper.ens.fr>
536 Tobias Burnus <burnus@net-b.de>
539 * gfortran.h (gfc_option_t): Add flag_dump_core.
540 * lang.opt: Add -fdump-core option.
541 * invoke.texi: Document the new options.
542 * trans-decl.c (gfc_build_builtin_function_decls): Add new
543 options to the call to set_std.
544 * options.c (gfc_init_options, gfc_handle_option): Set the
547 2007-01-17 Paul Thomas <pault@gcc.gnu.org>
550 * module.c (load_generic_interfaces): Make the marking of the
551 symbol as ambiguous conditional on the module names being
553 (write_generic): Ensure that the generic interface has a
554 non-NULL module field.
556 2007-01-16 Roger Sayle <roger@eyesopen.com>
559 * trans-stmt.c (forall_info): Remove pmask field.
560 (gfc_trans_forall_loop): Remove NVAR argument, instead assume that
561 NVAR covers all the interation variables in the current forall_info.
562 Add an extra OUTER parameter, which specified the loop header in
563 which to place mask index initializations.
564 (gfc_trans_nested_forall_loop): Remove NEST_FLAG argument.
565 Change the semantics of MASK_FLAG to only control the mask in the
567 (compute_overall_iter_number): Optimize the trivial case of a
568 top-level loop having a constant number of iterations. Update
569 call to gfc_trans_nested_forall_loop. Calculate the number of
570 times the inner loop will be executed, not to size of the
572 (allocate_temp_for_forall_nest_1): Reuse SIZE as BYTESIZE when
573 sizeof(type) == 1. Tidy up.
574 (gfc_trans_assign_need_temp): Remove NEST_FLAG argument from calls
575 to gfc_trans_nested_forall_loop.
576 (gfc_trans_pointer_assign_need_temp): Likewise.
577 (gfc_trans_forall_1): Remove unused BYTESIZE, TMPVAR, SIZEVAR and
578 LENVAR local variables. Split mask allocation into a separate
579 hunk/pass from mask population. Use allocate_temp_for_forall_nest
580 to allocate the FORALL mask with the correct size. Update calls
581 to gfc_trans_nested_forall_loop.
582 (gfc_evaluate_where_mask): Update call to
583 gfc_trans_nested_forall_loop.
584 (gfc_trans_where_2): Likewise.
586 2007-01-15 Paul Thomas <pault@gcc.gnu.org>
589 * trans-stmt.c (gfc_trans_call): If it does not have one, get
590 a backend_decl for an alternate return.
593 * resolve.c (pure_function): Statement functions are pure. Note
594 that this will have to recurse to comply fully with F95.
597 * resolve.c (resolve_function): Only a reference to the final
598 dimension of an assumed size array is an error in an inquiry
602 * resolve.c (resolve_function): Make sure that the function
603 expression has a type.
605 2007-01-14 Paul Thomas <pault@gcc.gnu.org>
608 * trans-decl.c (gfc_sym_mangled_function_id): Module, external
609 symbols must not have the module name prepended.
611 2007-01-11 Thomas Koenig <Thomas.Koenig@online.de>
614 * iresolve.c (gfc_resolve_maxloc): If the rank
615 of the return array is nonzero and we process an
616 integer array smaller than default kind, coerce
617 the array to default integer.
618 * iresolve.c (gfc_resolve_minloc): Likewise.
620 2007-01-11 Brooks Moses <brooks.moses@codesourcery.com>
622 * simplify.c: Update copyright to 2007.
625 2007-01-11 Francois-Xavier Coudert <coudert@clipper.ens.fr>
628 * scanner.c (gfc_release_include_path): Free gfc_option.module_dir
631 2007-01-09 Brooks Moses <brooks.moses@codesourcery.com>
633 * simplify.c (gfc_simplify_ibclr): Fix POS comparison.
634 (gfc_simplify_ibset): Same.
636 2007-01-09 Brooks Moses <brooks.moses@codesourcery.com>
640 * simplify.c (convert_mpz_to_unsigned): New function.
641 (convert_mpz_to_signed): New function, largely based on
643 (twos_complement): Removed.
644 (gfc_simplify_ibclr): Add conversions to and from an
645 unsigned representation before bit-twiddling.
646 (gfc_simplify_ibset): Same.
647 (gfc_simplify_ishftc): Add checks for overly large
648 constant arguments, only check the third argument if
649 it's present, carry over high bits into the result as
650 appropriate, and perform the final conversion back to
651 a signed representation using the correct sign bit.
652 (gfc_simplify_not): Removed unnecessary masking.
654 2007-01-09 Paul Thomas <pault@gcc.gnu.org>
657 * resolve.c (resolve_code): Use the code->expr character length
658 directly to set length of llen.
660 2007-01-09 Jerry DeLisle <jvdelisle@gcc.gnu.org>
663 * lang.opt: Add Wcharacter_truncation option.
664 * options.c (gfc_init_options): Initialize
665 gfc_option.warn_character_truncation to zero.
666 (gfc_handle_option): Add case for OPT_Wcharacter_truncation.
668 2007-01-08 Steven G. Kargl <kargl@gcc.gnu.org>
670 * interface.c, intrinsic.c, gfortranspec.c, io.c, f95-lang.c,
671 iresolve.c, match.c: Update Copyright years. Whitespace.
673 2007-01-08 Richard Guenther <rguenther@suse.de>
675 * trans-io.c (transfer_array_desc): Use build_int_cst instead
678 2007-01-08 Roger Sayle <roger@eyesopen.com>
680 * trans-array.c (constant_array_constructor_p): New function to
681 determine whether an array constructor consists only of constant
682 elements, and if so return it's size.
683 (gfc_build_constant_array_constructor): Construct a statically
684 initialized gfortran array for a given EXPR_ARRAY.
685 (gfc_trans_constant_array_constructor): Efficiently scalarize
686 a constant array constructor.
687 (gfc_trans_array_constructor): Tidy up use of CONST_STRING.
688 Special case scalarization of constant array constructors, all of
689 whose elements are specified, using constant_array_constructor_p
690 and gfc_trans_constant_array_constructor.
691 (gfc_conv_scalarized_array_ref): Check whetger info->offset is zero
692 before adding it to index, to avoid creating a NON_LVALUE_EXPR.
694 2007-01-08 Kazu Hirata <kazu@codesourcery.com>
696 gfortran.texi: Fix typos.
698 2007-01-07 Steven G. Kargl <kargl@gcc.gnu.org>
700 * decl.c, dump-parse-tree.c, error.c, data.c, expr.c, dependency.c,
701 convert.c: Update Copyright dates. Fix whitespace.
703 2007-01-07 Bernhard Fischer <aldot@gcc.gnu.org>
705 * data.c (gfc_assign_data_value): Fix whitespace.
707 2007-01-07 Bernhard Fischer <aldot@gcc.gnu.org>
709 * trans-array.c (gfc_trans_create_temp_array, gfc_array_init_size):
712 2007-01-07 Bernhard Fischer <aldot@gcc.gnu.org>
715 * match.c (gfc_match_name): Print diagnostics for invalid
718 2007-01-06 Steven G. Kargl <kargl@gcc.gnu.org>
720 * array.c: Fix whitespace in comment table.
722 2007-01-06 Steven G. Kargl <kargl@gcc.gnu.org>
724 * array.c, bbt.c, check.c: Update copyright years. Whitespace.
726 2007-01-06 Steven G. Kargl <kargl@gcc.gnu.org>
728 * arith.c: Update copyright years. Whitespace.
730 2007-01-05 Roger Sayle <roger@eyesopen.com>
732 * trans-expr.c (gfc_trans_assignment_1): New subroutine to scalarize
733 array assignments split out from gfc_trans_assignment.
734 (gfc_trans_array_copy): New function to implement array to array
735 copies via calls to __builtin_memcpy.
736 (copyable_array_p): New helper function to identify an array of
737 simple/POD types, that may be copied/assigned using memcpy.
738 (gfc_trans_assignment): Use gfc_trans_array_copy to handle simple
739 whole array assignments considered suitable by copyable_array_p.
740 Invoke gfc_trans_assignment_1 to perform the fallback scalarization.
742 2007-01-05 Roger Sayle <roger@eyesopen.com>
744 * trans-array.c (gfc_trans_array_constructor_value): Make the
745 static const "data" array as TREE_READONLY.
746 * trans-stmt.c (gfc_trans_character_select): Likewise.
748 2007-01-05 Roger Sayle <roger@eyesopen.com>
750 * trans-array.c (gfc_conv_loop_setup): Test whether the loop
751 stride is one, to avoid fold_build2 introducing a useless
752 NON_LVALUE_EXPR node.
754 2007-01-05 Tobias Burnus <burnus@net-b.de>
756 * symbol.c (check_conflict): Fix error message.
758 2007-01-05 Paul Thomas <pault@gcc.gnu.org>
761 * decl.c (gfc_in_match_data, gfc_set_in_match_data): New
762 functions to signal that a DATA statement is being matched.
763 (gfc_match_data): Call gfc_set_in_match_data on entry and on
765 * gfortran.h : Add prototypes for above.
766 * expr.c (check_init_expr): Avoid check on parameter or
767 variable if gfc_in_match_data is true.
768 (gfc_match_init_expr): Do not call error on non-reduction of
769 expression if gfc_in_match_data is true.
773 * decl.c (gfc_set_constant_character_len): Add boolean arg to
774 flag array constructor resolution. Warn if string is being
775 truncated. Standard dependent error if string is padded. Set
776 new arg to false for all three calls to
777 gfc_set_constant_character_len.
778 * match.h : Add boolean arg to prototype for
779 gfc_set_constant_character_len.
780 * gfortran.h : Add warn_character_truncation to gfc_options.
781 * options.c (set_Wall): Set warn_character_truncation if -Wall
783 * resolve.c (resolve_code): Warn if rhs string in character
784 assignment has to be truncated.
785 * array.c (gfc_resolve_character_array_constructor): Set new
786 argument to true for call to gfc_set_constant_character_len.
788 2007-01-05 Tobias Burnus <burnus@net-b.de>
791 * interface.c (compare_parameter_intent): New function.
792 (check_intents): Support pointer intents.
793 * symbol.c (check_conflict): Support pointer intents,
794 better conflict_std message.
795 * expr.c (gfc_check_assign,gfc_check_pointer_assign):
796 Support pointer intents.
797 * resolve.c (resolve_deallocate_expr,resolve_allocate_expr):
798 Support pointer intents.
800 2007-01-03 Brooks Moses <brooks.moses@codesourcery.com>
803 * check.c (gfc_check_kill_sub): Add checks for non-scalar
806 2007-01-04 Brooks Moses <brooks.moses@codesourcery.com>
808 * intrinsic.texi: Minor cleanup, reflowing overlong
809 paragraphs, and correcting whitespace.
811 2007-01-04 Brooks Moses <brooks.moses@codesourcery.com>
813 * intrinsic.texi (LBOUND): Add documentation.
814 (LGE): Add documentation.
815 (LGT): Add documentation.
816 (LINK): Add documentation.
817 (LLE): Add documentation.
818 (LLT): Add documentation.
819 (LNBLNK): Add documentation.
820 (UBOUND): Add documentation.
821 (UNLINK): Add documentation.
823 2007-01-04 Brooks Moses <brooks.moses@codesourcery.com>
825 * intrinsic.texi (IAND): Clarify argument specifications.
826 (IBCLR): Add documentation.
827 (IBITS): Add documentation.
828 (IBSET): Add documentation.
829 (IEOR): Add documentation.
830 (IERRNO): Add documentation.
831 (INDEX): Add documentation.
832 (IOR): Add documentation.
833 (ISHFT): Add documentation.
834 (ISHFTC): Add documentation.
835 (KILL): Add documentation.
836 (LEN_TRIM): Add documentation.
838 2007-01-04 Brooks Moses <brooks.moses@codesourcery.com>
841 * interface.c (compare_actual_formal): check for
842 alternate returns when iterating over non-present
845 2007-01-04 Brooks Moses <brooks.moses@codesourcery.com>
847 * invoke.texi: Update manpage copyright to include 2007.
849 2007-01-04 Brooks Moses <brooks.moses@codesourcery.com>
851 * gfortran.texi: Update copyright to include 2007.
852 * intrinsic.texi: Update copyright to include 2007.
853 * invoke.texi: Update copyright to include 2007.
855 2007-01-02 Tobias Burnus <burnus@net-b.de>
856 Jakub Jelinek <jakub@redhat.com>
859 * scanner.c (open_included_file): Revert patch.
860 (gfc_open_included_file): Support absolute pathnames.
861 (gfc_open_intrinsic_module): Support absolute pathnames.
863 2007-01-03 Brooks Moses <brooks.moses@codesourcery.com>
865 * gfortran.texi (GNU Fortran and GCC): Rewrite
867 2007-01-03 Brooks Moses <brooks.moses@codesourcery.com>
869 * gfortran.texi (Introduction): Lower "Part I:
870 Introduction" to a chapter, renumber Parts II and III to
872 * intrinsic.texi (Introduction): Rename to "Introduction
873 to Intrinsics" to avoid conflict with the new chapter.
875 2007-01-03 Brooks Moses <brooks.moses@codesourcery.com>
877 * intrinsic.texi (Introduction): Rewrite first paragraph.
879 2007-01-03 Brooks Moses <brooks.moses@codesourcery.com>
881 * invoke.texi (OpenMP): Added index entry.
882 * gfortran.texi (title page): Removed erroneous '*'.
884 2007-01-03 Brooks Moses <brooks.moses@codesourcery.com>
886 * gfortran.texi (GFORTRAN_DEFAULT_RECL): Added units
888 (Extensions): Miscellaneous minor rewriting and copyediting.
889 (BOZ-literal constants): Renamed from Hexadecimal constants.
890 (Hollerith constants support): Added explanation and
891 suggestions for standard-conforming modern equivalents.
893 2007-01-03 Brooks Moses <brooks.moses@codesourcery.com>
895 * intrinsic.texi: Improvements to index entries; change
896 @findex entries to @cindex entries.
897 * invoke.texi: Standardize and improve index entries.
898 * gfortran.texi: Fix @code in one index entry.
900 2007-01-03 Brooks Moses <brooks.moses@codesourcery.com>
902 * invoke.texi: Change @code-type macros to appropriate
903 variants (@command, @option, etc.)
904 * gfortran.texi: Same.
906 2007-01-03 Brooks Moses <brooks.moses@codesourcery.com>
908 * intrinsic.texi: Various minor cleanups.
910 2007-01-02 Steven G. Kargl <kargls@comcast.net>
912 * trans-intrinsic.c (gfc_conv_intrinsic_ibits): Fix call to
915 2007-01-02 Tobias Burnus <burnus@net-b.de>
918 * scanner.c (open_included_file): Support full-path filenames.
920 2007-01-02 Paul Thomas <pault@gcc.gnu.org>
923 * interface.c (check_sym_interfaces): Remove call to
924 resolve_global_procedure.
925 gfortran.h : Remove prototype for resolve_global_procedure.
926 resolve.c (resolve_global_procedure): Add static attribute
927 to function declaration.
929 2007-01-01 Steven G. Kargl <kargls@comcast.net>
931 * ChangeLog: Copy to ...
932 * ChangeLog-2006: here.