1 2008-05-14 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
4 * simplify.c (only_convert_cmplx_boz): New function.
5 (gfc_simplify_cmplx, gfc_simplify_complex, gfc_simplify_dcmplx):
6 Call only_convert_cmplx_boz.
8 2008-05-14 Paul Thomas <pault@gcc.gnu.org>
11 * interface.c (compare_actual_formal): Do not check sizes if the
12 actual is BT_PROCEDURE.
14 2008-05-14 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
17 * trans-array.c (gfc_conv_ss_startstride): Any negative size is
18 the same as zero size.
19 (gfc_conv_loop_setup): Fix size calculation.
21 2008-05-14 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
24 * trans-intrinsic.c (gfc_conv_intrinsic_bound): Correctly
25 handle zero-size sections.
27 2008-05-14 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
30 * scanner.c (preprocessor_line): Allocate enough memory for a
33 2008-05-12 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
36 * target-memory.c (gfc_target_expr_size): Correctly treat
38 (gfc_target_encode_expr): Likewise.
39 (gfc_interpret_complex): Whitespace change.
41 2008-05-11 Thomas Koenig <tkoenig@gcc.gnu.org>
44 * trans.c (gfc_call_malloc): If size equals zero, allocate one
45 byte; don't return a null pointer.
47 2008-05-10 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
50 * module.c (quote_string): Fix sprintf format.
52 2008-05-09 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
55 * module.c (quote_string, unquote_string,
56 mio_allocated_wide_string): New functions.
57 (mio_expr): Call mio_allocated_wide_string where needed.
59 2008-05-07 Kenneth Zadeck <zadeck@naturalbridge.com>
61 * trans-decl.c (gfc_get_extern_function_decl, build_function_decl):
62 Rename DECL_IS_PURE to DECL_PURE_P.
64 2008-05-06 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
66 * arith.c: (gfc_arith_concat, gfc_compare_string,
67 gfc_compare_with_Cstring, hollerith2representation,
68 gfc_hollerith2int, gfc_hollerith2real, gfc_hollerith2complex,
69 gfc_hollerith2character, gfc_hollerith2logical): Use wide
70 characters for character constants.
71 * data.c (create_character_intializer): Likewise.
72 * decl.c (gfc_set_constant_character_len): Likewise.
73 * dump-parse-tree.c (show_char_const): Correctly dump wide
75 error.c (print_wide_char): Rename into gfc_print_wide_char.
76 (show_locus): Adapt to new prototype of gfc_print_wide_char.
77 expr.c (free_expr0): Representation is now disjunct from
78 character string value, so we always free it.
79 (gfc_copy_expr, find_substring_ref, gfc_simplify_expr): Adapt
80 to wide character strings.
81 * gfortran.h (gfc_expr): Make value.character.string a wide string.
82 (gfc_wide_toupper, gfc_wide_strncasecmp, gfc_wide_memset,
83 gfc_widechar_to_char, gfc_char_to_widechar): New prototypes.
84 (gfc_get_wide_string): New macro.
85 (gfc_print_wide_char): New prototype.
86 * io.c (format_string): Make a wide string.
87 (next_char, gfc_match_format, compare_to_allowed_values,
88 gfc_match_open): Deal with wide strings.
89 * module.c (mio_expr): Convert between wide strings and ASCII ones.
90 * primary.c (match_hollerith_constant, match_charkind_name):
92 * resolve.c (build_default_init_expr): Likewise.
93 * scanner.c (gfc_wide_toupper, gfc_wide_memset,
94 gfc_char_to_widechar): New functions.
95 (wide_strchr, gfc_widechar_to_char, gfc_wide_strncasecmp):
96 Changes in prototypes.
97 (gfc_define_undef_line, load_line, preprocessor_line,
98 include_line, load_file, gfc_read_orig_filename): Handle wide
100 * simplify.c (gfc_simplify_achar, gfc_simplify_adjustl,
101 gfc_simplify_adjustr, gfc_simplify_char, gfc_simplify_iachar,
102 gfc_simplify_ichar, simplify_min_max, gfc_simplify_new_line,
103 gfc_simplify_repeat): Handle wide strings.
104 (wide_strspn, wide_strcspn): New helper functions.
105 (gfc_simplify_scan, gfc_simplify_trim, gfc_simplify_verify):
107 * symbol.c (generate_isocbinding_symbol): Likewise.
108 * target-memory.c (size_character, gfc_target_expr_size,
109 encode_character, gfc_target_encode_expr, gfc_interpret_character,
110 gfc_target_interpret_expr): Handle wide strings.
111 * trans-const.c (gfc_conv_string_init): Lower wide strings to
113 (gfc_conv_constant_to_tree): Likewise.
114 * trans-expr.c (gfc_conv_substring_expr): Handle wide strings.
115 * trans-io.c (gfc_new_nml_name_expr): Likewise.
116 * trans-stmt.c (gfc_trans_label_assign): Likewise.
118 2008-05-06 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
120 * simplify.c (gfc_simplify_bessel_j0,gfc_simplify_bessel_j1,
121 gfc_simplify_bessel_jn,gfc_simplify_bessel_y0,
122 gfc_simplify_bessel_y1,gfc_simplify_bessel_yn): Mark arguments
123 with ATTRIBUTE_UNUSED.
125 2008-05-06 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
127 * check.c (gfc_check_sizeof): Switch to ATTRIBUTE_UNUSED.
128 * simplify.c (gfc_simplify_lgamma): Likewise.
130 2008-05-06 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
132 * openmp.c (gfc_match_omp_eos): Use gfc_next_ascii_char and
134 * decl.c (gfc_match_kind_spec, gfc_match_type_spec,
135 gfc_match_implicit_none, match_implicit_range, gfc_match_implicit,
136 match_string_p, match_attr_spec, gfc_match_suffix,
137 match_procedure_decl, gfc_match_entry, gfc_match_subroutine):
139 * gfortran.h (gfc_char_t): New type.
140 (gfc_linebuf): Make line member a gfc_char_t.
141 (locus): Make nextc member a gfc_char_t.
142 (gfc_wide_is_printable, gfc_wide_is_digit, gfc_wide_fits_in_byte,
143 gfc_wide_tolower, gfc_wide_strlen, gfc_next_ascii_char,
144 gfc_peek_ascii_char, gfc_check_digit): New prototypes.
145 * error.c (print_wide_char): New function.
146 (show_locus): Use print_wide_char and gfc_wide_strlen.
147 * io.c (next_char): Use gfc_char_t type.
148 (match_io): Use gfc_peek_ascii_char and gfc_next_ascii_char.
149 * match.c (gfc_match_parens, gfc_match_eos,
150 gfc_match_small_literal_int, gfc_match_name, gfc_match_name_C,
151 gfc_match_intrinsic_op, gfc_match_char, gfc_match_return,
152 gfc_match_common): Likewise.
153 * match.h (gfc_match_special_char): Change prototype.
154 * parse.c (decode_specification_statement, decode_statement,
155 decode_omp_directive, next_free, next_fixed): Use
156 gfc_peek_ascii_char and gfc_next_ascii_char.
157 * primary.c (gfc_check_digit): Change name.
158 (match_digits, match_hollerith_constant, match_boz_constant,
159 match_real_constant, next_string_char, match_charkind_name,
160 match_string_constant, match_logical_constant_string,
161 match_complex_constant, match_actual_arg, match_varspec,
162 gfc_match_rvalue, match_variable): Use gfc_peek_ascii_char and
164 * scanner.c (gfc_wide_fits_in_byte, wide_is_ascii,
165 gfc_wide_is_printable, gfc_wide_tolower, gfc_wide_is_digit,
166 gfc_wide_is_digit, wide_atoi, gfc_wide_strlen, wide_strcpy,
167 wide_strchr, widechar_to_char, wide_strncmp, wide_strncasecmp,
168 gfc_next_ascii_char, gfc_peek_ascii_char):
170 (next_char, gfc_define_undef_line, skip_free_comments,
171 gfc_next_char_literal, gfc_next_char, gfc_peek_char,
172 gfc_error_recovery, load_line, preprocessor_line, include_line,
173 load_file, gfc_read_orig_filename): Use gfc_char_t for source
174 characters and the {gfc_,}wide_* functions to manipulate wide
177 2008-05-06 Tobias Burnus <burnus@net-b.de>
180 * intrinsic.c (add_functions): Call gfc_simplify_bessel_*.
181 * intrinsic.h: Add prototypes for gfc_simplify_bessel_*.
182 * simplify.c (gfc_simplify_bessel_j0,gfc_simplify_bessel_j1,
183 gfc_simplify_bessel_jn,gfc_simplify_bessel_y0,
184 gfc_simplify_bessel_y1,gfc_simplify_bessel_yn): New.
186 2008-05-03 Janus Weil <jaydub66@gmail.com>
188 * misc.c (gfc_clear_ts): Set interface to NULL.
190 2008-05-03 Jerry DeLisle <jvdelisle@gcc.gnu.org>
193 * gfortran.h: Add extra_comma pointer to gfc_dt structure. Add iokind to
194 gfc_expr value union. Add io_kind enum to here from io.c.
195 * io.c (gfc_free_dt): Free extra_comma.
196 (gfc_resolve_dt): If an extra comma was encountered and io_unit is type
197 BT_CHARACTER, resolve to format_expr and set default unit. Error if
198 io_kind is M_WRITE. (match_io): Match the extra comma and set new
199 pointer, extra_comma.
201 2008-05-01 Bud Davis <bdavis9659@sbcglobal.net>
204 * simplify.c (gfc_simplify_index): Check for direction argument
207 2008-05-01 Janus Weil <jaydub66@gmail.com>
209 * gfortran.h (struct gfc_symbol): Moving "interface" member to
210 gfc_typespec (plus fixing a small docu error).
211 * interface.c (gfc_procedure_use): Ditto.
212 * decl.c (match_procedure_decl): Ditto.
213 * resolve.c (resolve_specific_f0,
214 resolve_specific_f0, resolve_symbol): Ditto.
216 2008-04-30 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
218 * intrinsic.c (add_functions): Add SELECTED_CHAR_KIND intrinsic.
219 * intrinsic.h (gfc_check_selected_char_kind,
220 gfc_simplify_selected_char_kind): New prototypes.
221 * gfortran.h (gfc_isym_id): Add GFC_ISYM_SC_KIND.
222 * trans.h (gfor_fndecl_sc_kind): New function decl.
223 * trans-decl.c (gfor_fndecl_sc_kind): Build new decl.
224 * arith.c (gfc_compare_with_Cstring): New function.
225 * arith.h (gfc_compare_with_Cstring): New prototype.
226 * check.c (gfc_check_selected_char_kind): New function.
227 * primary.c (match_string_constant, match_kind_param): Mark
228 symbols used as literal constant kind param as referenced.
229 * trans-intrinsic.c (gfc_conv_intrinsic_sc_kind): New function.
230 (gfc_conv_intrinsic_function): Call gfc_conv_intrinsic_sc_kind.
231 * intrinsic.texi (SELECTED_CHAR_KIND): Document new intrinsic.
232 * simplify.c (gfc_simplify_selected_char_kind): New function.
234 2008-04-28 Paul Thomas <pault@gcc.gnu.org>
237 * module.c (find_symbol): Do not return a result for a symbol
238 that has been renamed in another module.
240 2008-04-26 George Helffrich <george@gcc.gnu.org>
244 * trans-common.c (create_common): Add decl to function
245 chain (if inside one) to preserve identifier scope in debug output.
247 2008-04-25 Jan Hubicka <jh@suse.cz>
249 * trans-decl.c (trans_function_start): Update.
251 2008-04-25 Tobias Burnus <burnus@net-b.de>
252 Daniel Franke <franke.daniel@gmail.com>
255 * gfortranspec.c (lang_specific_driver): Deprecate
256 -M option; fix ICE when "-M" is last argument and
258 * options.c (gfc_handle_module_path_options):
259 Use -J instead of -M in error messages.
260 * invoke.texi: Mark -M as depecated.
262 2008-04-23 Jerry DeLisle <jvdelisle@gcc.gnu.org>
263 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
266 * trans-instrinsic.c (gfc_conv_intrinsic_minmaxloc): Correctly adjust
269 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
271 * trans-expr.c (gfc_conv_structure): Don't set TREE_INVARIANT.
272 * trans-array.c (gfc_build_null_descriptor): Don't set TREE_INVARIANT.
273 (gfc_trans_array_constructor_value): Don't set TREE_INVARIANT.
274 (gfc_build_constant_array_constructor): Don't set TREE_INVARIANT.
275 (gfc_conv_array_initializer): Don't set TREE_INVARIANT.
276 * trans-common.c (get_init_field): Don't set TREE_INVARIANT.
277 (create_common): Don't set TREE_INVARIANT.
278 * trans-stmt.c (gfc_trans_character_select): Don't set TREE_INVARIANT.
279 * trans-decl.c (gfc_generate_function_code): Don't set TREE_INVARIANT.
281 2008-04-21 Steve Ellcey <sje@cup.hp.com>
283 * f95-lang.c (gfc_init_decl_processing): use ptr_mode instead of Pmode.
285 2008-04-21 Daniel Franke <franke.daniel@gmail.com>
288 * gfortranspec.c (lookup_option): Properly handle separated arguments
289 in -J option, print missing argument message when necessary.
291 2008-04-20 Jerry DeLisle <jvdelisle@gcc.gnu.org>
294 * scanner.c (skip_fixed_comments): Update continue_line when comment is
295 detected. (gfc_next_char_literal): Likewise.
297 2008-04-19 Paul Thomas <pault@gcc.gnu.org>
302 * trans_array.c (gfc_trans_array_constructor): Temporarily
303 realign loop, if loop->from is not zero, before creating
304 the temporary array and provide an offset.
307 * trans-decl.c (gfc_init_default_dt): Add gfc_ prefix to name
308 and allow for NULL body. Change all references from
309 init_default_dt to gfc_init_default_dt.
310 * trans.h : Add prototype for gfc_init_default_dt.
311 * trans-array.c (gfc_trans_deferred_vars): After nullification
312 call gfc_init_default_dt for derived types with allocatable
315 2008-04-18 Jerry DeLisle <jvdelisle@gcc.gnu.org>
318 * trans-common.c (create_common): Revert patch causing regression.
320 2008-04-16 Jerry DeLisle <jvdelisle@gcc.gnu.org>
323 * iresolve.c (gfc_resolve_eoshift): Check for NULL symtree in test for
324 optional argument attribute.
326 2008-04-16 Paul Thomas <pault@gcc.gnu.org>
329 * trans-intrinsic.c (gfc_conv_intrinsic_char): Even though KIND
330 is not used, the argument must be converted.
332 2008-04-16 Jakub Jelinek <jakub@redhat.com>
335 * f95-lang.c (gfc_init_builtin_functions): Make sure
336 BUILT_IN_SINCOS{,F,L} types aren't varargs.
338 2008-04-15 Paul Thomas <pault@gcc.gnu.org>
341 * expr.c (scalarize_intrinsic_call): Reorder identification of
342 array argument so that if one is not found a segfault does not
343 occur. Return FAILURE if all scalar arguments.
345 2008-04-13 Jerry DeLisle <jvdelisle@gcc.gnu.org>
346 Tobias Burnus <burnus@net-b.de>
349 * options.c (gfc_init_options): Set the default maximum continuation
350 lines to 255 for both free and fixed form source for warnings.
351 (gfc_handle_option): Set -std=f95 fixed form max continuations to 19 and
352 the -std=f95 free form max continuations to 39 for warnings.
353 * scanner.c (gfc_next_char_literal): Adjust the current_line number only
354 if it is less than the current locus.
356 2008-04-07 Jerry DeLisle <jvdelisle@gcc.gnu.org>
358 PR fortran/25829 28655
359 * io.c (io_tag): Add new tags for decimal, encoding, asynchronous,
360 round, sign, and id. (match_open_element): Match new tags.
361 (gfc_resolve_open): Resolve new tags. (gfc_match_open): Enable encoding
362 for DEFAULT only. Update error messages. (match_dt_element): Fix match
363 tag for asynchronous. Update error messages. (gfc_free_inquire): Free
364 new expressions. (match_inquire_element): Match new tags.
365 (gfc_match_inquire): Add constraint for ID and PENDING.
366 (gfc_resolve_inquire): Resolve new tags.
367 * trans-io.c (gfc_trans_inquire): Clean up whitespace and fix setting of
368 mask for ID parameter.
369 * ioparm.def: Fix order of parameters for pending, round, and sign.
370 NOTE: These must line up with the definitions in libgfortran/io/io.h. or
373 2008-04-06 Paul Thomas <pault@gcc.gnu.org>
376 * expr.c (scalarize_intrinsic_call): Identify which argument is
377 an array and use that as the template.
378 (check_init_expr): Remove tests that first argument is an array
379 in the call to scalarize_intrinsic_call.
381 2008-04-06 Tobias Schlüter <tobi@gcc.gnu.org>
384 * io.c (io_tag): Add field 'value'. Split 'spec' field in
386 (match_etag, match_vtag, match_ltag): Split parsing in two steps
387 to give better error messages.
389 2008-04-06 Tobias Burnus <burnus@net-b.de>
391 * io.c (check_io_constraints): Add constrains. ID= requires
392 asynchronous= and asynchronous= must be init expression.
394 2008-04-06 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
396 * f95-lang.c: Set LANG_HOOKS_NAME to "GNU Fortran".
398 2008-04-06 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
400 * dump-parse-tree.c: Use fprintf, fputs and fputc instead of
401 gfc_status and gfc_status_char. Remove gfc_ prefix of the gfc_show_*
402 functions and make them static. Add new gfc_dump_parse_tree
404 * gfortran.h (gfc_option_t): Rename verbose into dump_parse_tree.
405 (gfc_status, gfc_status_char): Delete prototypes.
406 * error.c (gfc_status, gfc_status_char): Remove functions.
407 * scanner.c (gfc_new_file): Use printf instead of gfc_status.
408 * options.c (gfc_init_options): Rename verbose into dump_parse_tree.
409 (gfc_handle_module_path_options): Use gfc_fatal_error instead of
411 (gfc_handle_option): Rename verbose into dump_parse_tree.
412 * parse.c (gfc_parse_file): Use gfc_dump_parse_tree.
414 2008-04-05 Jerry DeLisle <jvdelisle@gcc.gnu.org>
415 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
417 PR fortran/25829 28655
418 * dump-parse-tree.c (gfc_show_code_node): Show new I/O parameters.
419 * gfortran.h (gfc_statement): Add ST_WAIT enumerator.
420 (gfc_open): Add pointers for decimal, encoding, round, sign,
421 asynchronous. (gfc_inquire): Add pointers for asynchronous, decimal,
422 encoding, pending, round, sign, size, id.
423 (gfc_wait): New typedef struct. (gfc_dt): Add pointers for id, pos,
424 asynchronous, blank, decimal, delim, pad, round, sign.
425 (gfc_exec_op): Add EXEC_WAIT enumerator. (gfc_code): Add pointer for
426 wait. (gfc_free_wait), (gfc_resolve_wait): New function prototypes.
427 * trans-stmt.h (gfc_trans_wait): New function prototype.
428 * trans.c (gfc_trans_code): Add case for EXEC_WAIT.
429 * io.c (io_tag): Add new tags for DECIMAL, ENCODING, ROUND, SIGN,
430 ASYCHRONOUS, ID. (match_open_element): Add matchers for new tags.
431 (gfc_free_open): Free new pointers. (gfc_resolve_open): Resolve new
432 tags. (gfc_resolve_open): Remove comment around check for allowed
433 values and ASYNCHRONOUS, update it. Likewise for DECIMAL, ENCODING,
434 ROUND, and SIGN. (match_dt_element): Add matching for new tags.
435 (gfc_free_wait): New function. (gfc_resolve_wait): New function.
436 (match_wait_element): New function. (gfc_match_wait): New function.
437 * resolve.c (gfc_resolve_blocks): Add case for EXEC_WAIT.
438 (resolve_code): Add case for EXEC_WAIT.
439 * st.c (gfc_free_statement): Add case for EXEC_WAIT.
440 * trans-io.c (ioparam_type): Add IOPARM_ptype_wait. (gfc_st_parameter):
441 Add "wait" entry. (iocall): Add IOCALL_WAIT enumerator.
442 (gfc_build_io_library_fndecls): Add function declaration for st_wait.
443 (gfc_trans_open): Add mask bits for new I/O tags.
444 (gfc_trans_inquire): Add mask bits for new I/O tags.
445 (gfc_trans_wait): New translation function.
446 (build_dt): Add mask bits for new I/O tags.
447 * match.c (gfc_match_if) Add matcher for "wait".
448 * match.h (gfc_match_wait): Prototype for new function.
449 * ioparm.def: Add new I/O parameter definitions.
450 * parse.c (decode_statement): Add match for "wait" statement.
451 (next_statement): Add case for ST_WAIT. (gfc_ascii_statement): Same.
453 2008-04-03 Jakub Jelinek <jakub@redhat.com>
456 * openmp.c (resolve_omp_clauses): Diagnose if a clause symbol
459 2008-04-03 Tom Tromey <tromey@redhat.com>
461 * Make-lang.in (fortran_OBJS): New variable.
463 2008-04-03 Paolo Bonzini <bonzini@gnu.org>
465 * f95-lang.c (insert_block): Kill.
467 2008-04-01 George Helffrich <george@gcc.gnu.org>
469 PR fortran/35154, fortran/23057
470 * trans-common.c (create_common): Add decl to function
471 chain to preserve identifier scope in debug output.
473 2008-04-01 Joseph Myers <joseph@codesourcery.com>
475 * gfortran.texi: Include gpl_v3.texi instead of gpl.texi
476 * Make-lang.in (GFORTRAN_TEXI): Include gpl_v3.texi instead of
479 2008-03-30 Paul Thomas <pault@gcc.gnu.org>
482 * resolve.c (resolve_function, resolve_call): If the procedure
483 is elemental do not look for noncopying intrinsics.
485 2008-03-29 Paul Thomas <pault@gcc.gnu.org>
488 * trans-array.c (gfc_array_init_size): Set 'size' zero if
489 negative in one dimension.
492 * trans-expr.c (gfc_trans_string_copy): Only assign a char
493 directly if the lhs and rhs types are the same.
495 2008-03-28 Daniel Franke <franke.daniel@gmail.com>
496 Paul Richard Thomas <paul.richard.thomas@gmail.com>
499 * primary.c (match_variable): Improved matching of function
501 * resolve.c (resolve_allocate_deallocate): Removed checks if
502 the actual argument for STAT is a variable.
504 2008-03-28 Tobias Burnus <burnus@net-b.de>
506 * symbol.c (gfc_get_default_type): Fix error message; option
507 -fallow_leading_underscore should be -fallow-leading-underscore
509 2008-03-27 Jerry DeLisle <jvdelisle@gcc.gnu.org>
512 * iresolve.c (gfc_resolve_cshift): Check for NULL symtree in test for
513 optional argument attribute.
515 2008-03-27 Tom Tromey <tromey@redhat.com>
517 * Make-lang.in: Revert automatic dependency patch.
519 2008-03-25 Tom Tromey <tromey@redhat.com>
521 * Make-lang.in: Remove .o targets.
522 (fortran_OBJS): New variable.
523 (fortran/gfortranspec.o): Move to fortran/. Reduce to variable
525 (GFORTRAN_D_OBJS): Update.
526 (GFORTRAN_TRANS_DEPS): Remove.
528 2008-03-24 Paul Thomas <pault@gcc.gnu.org>
531 * resolve.c (resolve_structure_cons): It is an error to assign
532 NULL to anything other than a pointer or allocatable component.
535 * resolve.c (resolve_symbol): If the symbol is a derived type,
536 resolve the derived type. If the symbol is a derived type
537 function, ensure that the derived type is visible in the same
538 namespace as the function.
540 2008-03-23 Tobias Schlüter <tobi@gcc.gnu.org>
542 * trans.h: Use fold_build in build1_v, build2_v and build3_v
544 * trans-openmp.c (gfc_trans_omp_critical, gfc_trans_omp_single):
545 Don't use build2_v macro.
547 2008-03-19 Daniel Franke <franke.daniel@gmail.com>
550 * interface.c (gfc_procedure_use): Check for keyworded arguments in
551 procedures without explicit interfaces.
553 2008-03-16 Paul Thomas <pault@gcc.gnu.org>
556 * resolve.c (check_assumed_size_reference): Only visit the
557 first reference and look directly at the highest dimension.
559 2008-03-15 Jerry DeLisle <jvdelisle@gcc.gnu.org>
562 * trans-array.c (gfc_conv_array_index_offset): Remove unnecessary
565 2008-03-15 Daniel Franke <franke.daniel@gmail.com>
568 * resolve.c (resolve_branch): Less strict and pessimistic warning
571 2008-03-11 Paolo Bonzini <bonzini@gnu.org>
573 * f95-lang.c (LANG_HOOKS_CLEAR_BINDING_STACK): Delete.
574 (gfc_be_parse_file): Call clear_binding_stack from here.
575 (gfc_clear_binding_stack): Rename to clear_binding_stack.
577 2008-03-09 Paul Thomas <pault@gcc.gnu.org>
580 * module.c (mio_symtree_ref): After providing a symbol for a
581 missing equivalence member, resolve and NULL the fixups.
583 2008-03-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
585 * invoke.texi (Error and Warning Options): Document
588 2008-03-08 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
591 * trans-array.c (gfc_conv_ss_startstride): Fix the logic to avoid
592 checking bounds of absent optional arguments.
594 2008-03-06 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
597 * intrinsic.c (add_functions): Add simplification routines for
598 ERF, DERF, ERFC and DERFC.
599 * decl.c (gfc_match_suffix, gfc_match_subroutine): Change GNU
600 extensions into Fortran 2008 features.
601 * intrinsic.h (gfc_simplify_erf, gfc_simplify_erfc): New
603 * simplify.c (gfc_simplify_erf, gfc_simplify_erfc): New functions.
605 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
608 * intrinsic.c (add_functions): Modify intrinsics ACOSH, ASINH,
609 ATANH, ERF, ERFC and GAMMA. Add intrinsics BESSEL_{J,Y}{0,1,N},
610 ERFC_SCALED, LOG_GAMMA and HYPOT.
611 * intrinsic.h (gfc_check_hypot, gfc_simplify_hypot,
612 gfc_resolve_hypot): New prototypes.
613 * mathbuiltins.def: Add HYPOT builtin. Make complex versions of
614 ACOSH, ASINH and ATANH available.
615 * gfortran.h (GFC_ISYM_ERFC_SCALED, GFC_ISYM_HYPOT): New values.
616 * lang.opt: Add -std=f2008 option.
617 * libgfortran.h: Define GFC_STD_F2008.
618 * lang-specs.h: Add .f08 and .F08 file suffixes.
619 * iresolve.c (gfc_resolve_hypot): New function.
620 * parse.c (parse_contained): Allow empty CONTAINS for Fortran 2008.
621 * check.c (gfc_check_hypot): New function.
622 * trans-intrinsic.c (gfc_intrinsic_map): Define ERFC_SCALE builtin.
623 * options.c (set_default_std_flags): Allow Fortran 2008 by default.
624 (form_from_filename): Add .f08 suffix.
625 (gfc_handle_option): Handle -std=f2008 option.
626 * simplify.c (gfc_simplify_hypot): New function.
627 * gfortran.texi: Document Fortran 2008 status and file extensions.
628 * intrinsic.texi: Document new BESSEL_{J,Y}{0,1,N} intrinsics,
629 as well as HYPOT and ERFC_SCALED. Update documentation of ERF,
630 ERFC, GAMMA, LGAMMA, ASINH, ACOSH and ATANH.
631 * invoke.texi: Document the new -std=f2008 option.
633 2008-03-02 Jakub Jelinek <jakub@redhat.com>
635 * gfortranspec.c (lang_specific_driver): Update copyright notice
638 2008-02-29 Jerry DeLisle <jvdelisle@gcc.gnu.org>
641 * expr.c (find_array_element): Modify traversing the constructor to
642 avoid trying to access NULL memory pointed to by next for the
643 last element. (find_array_section): Exit while loop if cons->next is
645 * trans-expr.c (gfc_conv_scalar_char_value): Initialize gfc_typespec.
646 (gfc_conv_function_call): Same.
647 * decl.c (gfc_match_implicit): Same.
648 * trans-intrinsic.c (gfc_conv_intrinsic_sr_kind): Same.
650 2008-02-28 Daniel Franke <franke.daniel@gmail.com>
655 * lang.opt: Added -Wreturn-type.
656 * options.c (gfc_handle_option): Recognize -Wreturn-type.
657 * trans-decl.c (gfc_trans_deferred_vars): Emit warnings for funtions
658 where the result value is not set.
659 (gfc_generate_function_code): Likewise.
660 (generate_local_decl): Emit warnings for funtions whose RESULT
663 2008-02-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
666 * trans-expr.c (gfc_conv_variable): Don't build indirect
667 references when explicit interface is mandated.
668 * resolve.c (resolve_formal_arglist): Set attr.always_explicit
669 on the result symbol as well as the procedure symbol.
671 2008-02-27 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
674 * trans.h: Remove prototypes for gfor_fndecl_math_exponent4,
675 gfor_fndecl_math_exponent8, gfor_fndecl_math_exponent10 and
676 gfor_fndecl_math_exponent16.
677 * f95-lang.c (build_builtin_fntypes): Add new function types.
678 (gfc_init_builtin_functions): Add new builtins for nextafter,
679 frexp, ldexp, fabs, scalbn and inf.
680 * iresolve.c (gfc_resolve_rrspacing): Don't add hidden arguments.
681 (gfc_resolve_scale): Don't convert type of second argument.
682 (gfc_resolve_set_exponent): Likewise.
683 (gfc_resolve_size): Don't add hidden arguments.
684 * trans-decl.c: Remove gfor_fndecl_math_exponent4,
685 gfor_fndecl_math_exponent8, gfor_fndecl_math_exponent10 and
686 gfor_fndecl_math_exponent16.
687 * trans-intrinsic.c (gfc_intrinsic_map): Remove intrinsics
688 for scalbn, fraction, nearest, rrspacing, set_exponent and
690 (gfc_conv_intrinsic_exponent): Directly call frexp.
691 (gfc_conv_intrinsic_fraction, gfc_conv_intrinsic_nearest,
692 gfc_conv_intrinsic_spacing, gfc_conv_intrinsic_rrspacing,
693 gfc_conv_intrinsic_scale, gfc_conv_intrinsic_set_exponent): New
695 (gfc_conv_intrinsic_function): Use the new functions above.
697 2008-02-26 Tobias Burnus <burnus@net-b.de>
700 * interface.c (check_operator_interface): Show better line for error
701 messages; fix constrains for user-defined assignment operators.
702 (gfc_extend_assign): Fix constrains for user-defined assignment
705 2008-02-26 Tom Tromey <tromey@redhat.com>
707 * trans-io.c (set_error_locus): Remove old location code.
708 * trans-decl.c (gfc_set_decl_location): Remove old location code.
709 * f95-lang.c (gfc_init): Remove test of USE_MAPPED_LOCATION.
710 * scanner.c (gfc_gobble_whitespace): Remove old location code.
711 (get_file): Likewise.
712 (preprocessor_line): Likewise.
713 (load_file): Likewise.
714 (gfc_new_file): Likewise.
715 * trans.c (gfc_trans_runtime_check): Remove old location code.
716 (gfc_get_backend_locus): Likewise.
717 (gfc_set_backend_locus): Likewise.
718 * data.c (gfc_assign_data_value): Remove old location code.
719 * error.c (show_locus): Remove old location code.
720 * gfortran.h (gfc_linebuf): Remove old location code.
721 (gfc_linebuf_linenum): Remove old-location variant.
723 2008-02-25 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
726 * trans-const.c (gfc_build_string_const): Don't call gettext.
727 (gfc_build_localized_string_const): New function.
728 * trans-const.h (gfc_build_localized_string_const): New prototype.
729 * trans.c (gfc_trans_runtime_check): Use
730 gfc_build_localized_string_const instead of gfc_build_string_const.
731 (gfc_call_malloc): Likewise.
732 (gfc_allocate_with_status): Likewise.
733 (gfc_allocate_array_with_status): Likewise.
734 (gfc_deallocate_with_status): Likewise.
735 (gfc_call_realloc): Likewise.
736 * trans-io.c (gfc_trans_io_runtime_check): Likewise.
738 2008-02-24 Tobias Schlüter <tobi@gcc.gnu.org>
740 * arith.c: Update copyright years.
748 * dependency.c: Likewise.
749 * dependency.h: Likewise.
750 * dump-parse-tree.c: Likewise.
753 * gfc-internals.texi: Likewise.
754 * gfortran.h: Likewise.
755 * gfortran.texi: Likewise.
756 * gfortranspec.c: Likewise.
757 * interface.c: Likewise.
758 * intrinsic.c: Likewise.
759 * intrinsic.h: Likewise.
760 * intrinsic.texi: Likewise.
761 * invoke.texi: Likewise.
763 * iresolve.c: Likewise.
764 * iso-c-binding.def: Likewise.
765 * iso-fortran-env.def: Likewise.
766 * lang-specs.h: Likewise.
767 * lang.opt: Likewise.
768 * libgfortran.h: Likewise.
771 * matchexp.c: Likewise.
773 * module.c: Likewise.
774 * openmp.c: Likewise.
775 * options.c: Likewise.
778 * primary.c: Likewise.
779 * resolve.c: Likewise.
780 * scanner.c: Likewise.
781 * simplify.c: Likewise.
783 * symbol.c: Likewise.
784 * target-memory.c: Likewise.
785 * target-memory.h: Likewise.
786 * trans-array.h: Likewise.
787 * trans-const.h: Likewise.
788 * trans-stmt.h: Likewise.
789 * trans-types.c: Likewise.
790 * trans-types.h: Likewise.
791 * types.def: Likewise.
793 2008-02-24 Jerry DeLisle <jvdelisle@gcc.gnu.org>
796 * simplify.c (gfc_simplify_ibclr), (gfc_simplify_ibits),
797 (gfc_simplify_ibset): Remove call to range_check.
798 (simplify_cmplx), (gfc_simplify_dble), (gfc_simplify_float)
799 (gfc_simplify_real): Add call gfc_clear_ts to initialize the
800 temporary gfc_typspec variable.
802 2008-02-24 Tobias Schlüter <tobi@gcc.gnu.org>
804 * trans-array.c (gfc_conv_descriptor_data_get,
805 gfc_conv_descriptor_data_set_internal,
806 gfc_conv_descriptor_data_addr, gfc_conv_descriptor_offset,
807 gfc_conv_descriptor_dtype, gfc_conv_descriptor_dimension,
808 gfc_conv_descriptor_stride, gfc_conv_descriptor_lbound,
809 gfc_conv_descriptor_ubound, gfc_trans_create_temp_array,
810 gfc_conv_array_transpose, gfc_grow_array,
811 gfc_trans_array_constructor_subarray,
812 gfc_trans_array_constructor_value, gfc_trans_scalarized_loop_end,
813 gfc_array_init_size, gfc_array_allocate, gfc_array_deallocate,
814 gfc_conv_array_initializer, gfc_trans_array_bounds,
815 gfc_trans_auto_array_allocation, gfc_trans_dummy_array_bias,
816 gfc_get_dataptr_offset, gfc_conv_array_parameter,
817 gfc_trans_dealloc_allocated, get_full_array_size,
818 gfc_duplicate_allocatable, structure_alloc_comps): Use fold_buildN
820 * trans-expr.c (gfc_conv_expr_present, gfc_conv_missing_dummy,
821 gfc_conv_component_ref, gfc_conv_cst_int_power,
822 gfc_conv_function_call, gfc_trans_structur_assign): Likewise.
823 * trans-common.c (create_common): Likewise.
824 * trans-openmp.c (gfc_trans_omp_atomic, gfc_trans_omp_do):
826 * trans-const.c (gfc_conv_constant_to_tree): Likewise.
827 * trans-stmt.c (gfc_trans_goto, gfc_trans_return, gfc_trans_do,
828 gfc_trans_integer_select, gfc_trans_character_select,
829 gfc_trans_forall_loop, compute_overall_iter_number,
830 gfc_trans_forall_1, gfc_evaluate_where_mask, gfc_trans_allocate,
831 gfc_trans_deallocate): Likewise.
832 * trans.c (gfc_build_addr_expr, gfc_trans_runtime_check,
833 gfc_allocate_with_status, gfc_allocate_array_with_status,
834 gfc_deallocate_with_status): Likewise.
835 * f95-lang.c (gfc_truthvalue_conversion): Likewise.
836 * trans-io.c (set_parameter_const, set_parameter_value,
837 set_parameter_ref, set_string, set_internal_unit, io_result,
838 set_error_locus, nml_get_addr_expr, transfer_expr): Likewise.
839 * trans-decl.c (gfc_build_qualified_array, build_entry_thunks,
840 gfc_get_fake_result_decl, gfc_trans_auto_character_variable,
841 gfc_generate_function_code): Likewise.
842 * convert.c (convert): Likewise.
843 * trans-intrinsic.c (gfc_conv_intrinsic_conversion,
844 build_fixbound_expr, build_fix_expr, gfc_conv_intrinsic_aint,
845 gfc_conv_intrinsic_int, gfc_conv_intrinsic_imagpart,
846 gfc_conv_intrinsic_conjg, gfc_conv_intrinsic_abs,
847 gfc_conv_intrinsic_cmplx, gfc_conv_intrinsic_mod,
848 gfc_conv_intrinsic_dim, gfc_conv_intrinsic_dprod,
849 gfc_conv_intrinsic_ctime, gfc_conv_intrinsic_fdate,
850 gfc_conv_intrinsic_ttynam, gfc_conv_intrinsic_minmax,
851 gfc_conv_intrinsic_minmax_char, gfc_conv_intrinsic_count,
852 gfc_conv_intrinsic_arith, gfc_conv_intrinsic_dot_product,
853 gfc_conv_intrinsic_minmaxloc, gfc_conv_intrinsic_minmaxval,
854 gfc_conv_intrinsic_btest, gfc_conv_intrinsic_not,
855 gfc_conv_intrinsic_ibits, gfc_conv_intrinsic_ishft,
856 gfc_conv_intrinsic_ichar, gfc_conv_intrinsic_size,
857 gfc_conv_intrinsic_array_transfer, gfc_conv_intrinsic_transfer,
858 gfc_conv_allocated, gfc_conv_associated, gfc_conv_intrinsic_trim,
859 gfc_conv_intrinsic_repeat): Likewise.
861 2008-02-23 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
864 * trans-expr.c (gfc_conv_power_op): Use BUILT_IN_CPOW{F,,L}.
865 * f95-lang.c (gfc_init_builtin_functions): Define BUILT_IN_CPOW{F,,L}.
866 * trans.h (gfor_fndecl_math_cpow, gfor_fndecl_math_cpowf,
867 gfor_fndecl_math_cpowl10, gfor_fndecl_math_cpowl16): Remove.
868 * trans-decl.c: Likewise.
870 2008-02-22 Jerry DeLisle <jvdelisle@gcc.gnu.org>
873 * expr.c (find_array_element): Modify traversing the constructor to
874 avoid trying to access NULL memory pointed to by next for the
875 last element. (find_array_section): Exit while loop if cons->next is
878 2008-02-22 Jerry DeLisle <jvdelisle@gcc.gnu.org>
881 * iresolve.c (resolve_mask_arg): Add gfc_clear_ts to initialize
883 (gfc_resolve_aint): Likewise.
884 (gfc_resolve_anint): Likewise.
885 (gfc_resolve_besn): Likewise.
886 (gfc_resolve_cshift): Likewise.
887 (gfc_resolve_ctime): Likewise.
888 (gfc_resolve_eoshift): Likewise.
889 (gfc_resolve_index_func): Likewise.
890 (gfc_resolve_isatty): Likewise.
891 (gfc_resolve_malloc): Likewise.
892 (gfc_resolve_rrspacing): Likewise.
893 (gfc_resolve_scale): Likewise.
894 (gfc_resolve_set_exponent): Likewise.
895 (gfc_resolve_spacing): Likewise.
896 (gfc_resolve_spacing): Likewise.
897 (gfc_resolve_fgetc): Likewise.
898 (gfc_resolve_fputc): Likewise.
899 (gfc_resolve_ftell): Likewise.
900 (gfc_resolve_ttynam): Likewise.
901 (gfc_resolve_alarm_sub): Likewise.
902 (gfc_resolve_mvbits): Likewise.
903 (gfc_resolve_getarg): Likewise.
904 (gfc_resolve_signal_sub): Likewise.
905 (gfc_resolve_exit): Likewise.
906 (gfc_resolve_flush): Likewise.
907 (gfc_resolve_free): Likewise.
908 (gfc_resolve_ctime_sub): Likewise.
909 (gfc_resolve_fgetc_sub): Likewise.
910 (gfc_resolve_fputc_sub): Likewise.
911 (gfc_resolve_fseek_sub): Likewise.
912 (gfc_resolve_ftell_sub): Likewise.
913 (gfc_resolve_ttynam_sub): Likewise.
915 2008-02-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
917 * gfc-internals.texi: Fix typos and markup nits.
918 * gfortran.texi: Likewise.
919 * intrinsic.texi: Likewise.
921 2008-02-21 Richard Guenther <rguenther@suse.de>
923 * trans-expr.c (gfc_conv_expr_op): Expand INTRINSIC_PARENTHESES
924 as unary PAREN_EXPR for real and complex typed expressions.
925 (gfc_conv_unary_op): Fold the built tree.
927 2008-02-20 Tobias Burnus <burnus@net-b.de>
930 * match.c (gfc_match_name): Improve error message for '$'.
932 2008-02-19 Daniel Franke <franke.daniel@gmail.com>
935 * expr.c (gfc_check_pointer_assign): Add type and kind information
936 to type-mismatch message.
937 (gfc_check_assign): Unify error messages.
939 2008-02-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
942 * gfortran.texi: Create new section for unimplemented extensions.
943 Add "STRUCTURE and RECORD" and "ENCODE and DECODE statements".
944 Remove "smaller projects" list. Fix a few typos.
946 2008-02-15 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
948 * intrinsic.texi: Rename INDEX node to avoid clashing with
949 index.html on case-insensitive systems.
951 2008-02-15 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
954 * trans-expr.c (gfc_conv_function_call): Force evaluation of
957 2008-02-10 Daniel Franke <franke.daniel@gmail.com>
960 * lang.opt: Allow '-J<dir>' next to '-J <dir>',
961 likewise '-I <dir>' and '-I<dir>'.
963 2008-02-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
966 * Make-lang.in (f951): Add $(GMPLIBS).
968 2008-02-05 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
971 * trans-common.c (build_field): Mark fields as volatile when needed.
973 2008-02-05 Tobias Burnus <burnus@net-b.de>
976 * data.c (gfc_assign_data_value): Only free "size" if
977 it has not already been freed.
979 2008-02-05 Paul Thomas <pault@gcc.gnu.org>
982 * array.c (match_array_element_spec): Remove check for negative
984 (gfc_resolve_array_spec): Add check for negative size.
986 2008-02-05 Paul Thomas <pault@gcc.gnu.org>
989 * data.c (gfc_assign_data_value): Add bounds check for array
992 2008-02-04 Daniel Franke <franke.daniel@gmail.com>
994 * resolve.c (resolve_where): Fix typo.
995 (gfc_resolve_where_code_in_forall): Likewise.
997 2008-02-03 Paul Thomas <pault@gcc.gnu.org>
1000 * resolve.c (resolve_allocate_deallocate): New function.
1001 (resolve_code): Call it for allocate and deallocate.
1002 * match.c (gfc_match_allocate, gfc_match_deallocate) : Remove
1003 the checking of the STAT tag and put in above new function.
1004 * primary,c (match_variable): Do not fix flavor of host
1005 associated symbols yet if the type is not known.
1007 2008-01-31 Paul Thomas <pault@gcc.gnu.org>
1010 * expr.c (gfc_check_assign): It is an error to assign
1011 to a sibling procedure.
1013 2008-01-30 Paul Thomas <pault@gcc.gnu.org>
1016 * symbol.c (gfc_delete_symtree, gfc_undo_symbols): Rename
1017 delete_symtree to gfc_delete_symtree.
1018 * gfortran.h : Add prototype for gfc_delete_symtree.
1019 * module.c (load_generic_interfaces): Transfer symbol to a
1020 unique symtree and delete old symtree, instead of renaming.
1021 (read_module): The rsym and the found symbol are the same, so
1022 the found symtree can be deleted.
1025 * decl.c (match_char_spec): Remove the constraint on deferred
1026 matching of functions and free the length expression.
1027 delete_symtree to gfc_delete_symtree.
1028 (gfc_match_type_spec): Whitespace.
1029 (gfc_match_function_decl): Defer characteristic association for
1030 all types except BT_UNKNOWN.
1031 * parse.c (decode_specification_statement): Only derived type
1032 function matching is delayed to the end of specification.
1034 2008-01-28 Tobias Burnus <burnus@net-b.de>
1037 * simplify.c (gfc_simplify_shape): Simplify rank zero arrays.
1039 2008-01-27 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1042 * array.c (gfc_check_constructor_type): Revert clearing the expression.
1044 2008-01-26 Tobias Burnus <burnus@net-b.de>
1047 * trans-expr.c (gfc_conv_function_call): Don't call
1048 gfc_add_interface_mapping if the expression is NULL.
1050 2008-01-26 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1053 * trans-array.c (gfc_trans_create_temp_array): Remove call to
1054 gcc_assert (integer_zerop (loop->from[n])).
1056 2008-01-25 Daniel Franke <franke.daniel@gmail.com>
1059 * resolve.c (resolve_where): Added check if user-defined assignment
1060 operator is an elemental subroutine.
1061 (gfc_resolve_where_code_in_forall): Likewise.
1063 2008-01-24 Daniel Franke <franke.daniel@gmail.com>
1067 * gfortran.h: Revert changes from 2008-01-17.
1068 * match.c: Likewise.
1069 * symbol.c: Likewise.
1070 (gfc_undo_symbols): Undo namespace changes related to common blocks.
1072 2008-01-24 Daniel Franke <franke.daniel@gmail.com>
1075 * data.c (formalize_structure_cons): Skip formalization on
1078 2008-01-24 Daniel Franke <franke.daniel@gmail.com>
1080 * gfortran.texi (OpenMP): Extended existing documentation.
1081 (contributors): Added major contributors of 2008 that were
1083 (proposed extensions): Removed implemented items.
1085 2008-01-24 Paul Thomas <pault@gcc.gnu.org>
1088 * parse.c (next_statement) : If ST_GET_FCN_CHARACTERISTICS is
1089 seen, check for a statement label and, if present, delete it
1090 and set the locus to the start of the statement.
1092 2008-01-22 Paul Thomas <pault@gcc.gnu.org>
1095 * trans-io.c (gfc_trans_transfer): If the array reference in a
1096 read has a vector subscript, use gfc_conv_subref_array_arg to
1097 copy back the temporary.
1099 2008-01-22 Tobias Burnus <burnus@net-b.de>
1102 * interface.c (compare_actual_formal): Fix adding type
1103 to missing_arg_type for absent optional arguments.
1105 2008-01-22 Tobias Burnus <burnus@net-b.de>
1108 * parse.c (parse_spec): Change = into ==.
1110 2008-01-22 Daniel Franke <franke.daniel@gmail.com>
1113 * expr.c (check_elemental): Fix check for valid data types.
1115 2008-01-22 Tobias Burnus <burnus@net-b.de>
1118 * scanner.c (load_line): Support <tab><digit> continuation lines.
1119 * invoke.texi (-Wtabs): Document this.
1121 2008-01-22 Paul Thomas <pault@gcc.gnu.org>
1124 * module.c (read_module): Set use_rename attribute.
1126 2007-01-21 Tobias Burnus <burnus@net-b.de>
1129 * interface.c (compare_parameter): Improved error message
1130 for arguments of same type and mismatched kinds.
1132 2008-01-20 Paul Thomas <pault@gcc.gnu.org>
1135 * resolve.c (resolve_entries): Do not do an array bounds check
1136 if the result symbols are the same.
1139 * module.c (read_module) : Hide the symtree of the previous
1140 version of the symbol if this symbol is renamed.
1142 2008-01-20 Paul Thomas <pault@gcc.gnu.org>
1145 * array.c (gfc_check_constructor_type): Clear the expression ts
1146 so that the checking starts from the deepest level of array
1148 * primary.c (match_varspec): If an unknown type is changed to
1149 default character and the attempt to match a substring fails,
1150 change it back to unknown.
1153 * trans-array.c (gfc_add_loop_ss_code) : If ss->string_length is
1154 NULL for an array constructor, use the cl.length expression to
1156 (gfc_conv_array_parameter): Change call to gfc_evaluate_now to
1159 2008-01-19 Thomas Koenig <tkoenig@gcc.gnu.org>
1163 * iresolve.c (gfc_resolve_all): Remove conversion of mask
1164 argument to kind=1 by removing call to resolve_mask_arg().
1165 (gfc_resolve_any): Likewise.
1167 2008-01-19 Tobias Burnus <burnus@net-b.de>
1170 * primary.c (match_variable): Handle FL_UNKNOWN without
1171 uneducated guessing.
1172 (match_variable): Improve error message.
1174 2008-01-18 Tobias Burnus <burnus@net-b.de>
1177 * interface.c (get_expr_storage_size): Return storage size
1178 for array element designators.
1179 (compare_actual_formal): Reject unequal string sizes for
1180 assumed-shape dummy arguments. And fix error message for
1181 array-sections with vector subscripts.
1183 2008-01-17 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1186 * simplify.c (is_constant_array_expr): New static function that returns
1187 true if the given expression is an array and is constant.
1188 (gfc_simplify_reshape): Use new function.
1190 2008-01-17 H.J. Lu <hongjiu.lu@intel.com>
1193 * symbol.c (free_common_tree): Renamed to ...
1194 (gfc_free_common_tree): This. Remove static.
1195 (gfc_free_namespace): Updated.
1197 * gfortran.h (gfc_free_common_tree): New.
1199 * match.c (gfc_match_common): Call gfc_free_common_tree () with
1200 gfc_current_ns->common_root and set gfc_current_ns->common_root
1201 to NULL on syntax error.
1203 2008-01-18 Richard Sandiford <rsandifo@nildram.co.uk>
1206 * trans-expr.c (gfc_conv_function_call): Use proper
1207 type for returned character pointers.
1209 2008-01-17 Paul Thomas <pault@gcc.gnu.org>
1214 * decl.c : Remove gfc_function_kind_locus and
1215 gfc_function_type_locus. Add gfc_matching_function.
1216 (match_char_length): If matching a function and the length
1217 does not match, return MATCH_YES and try again later.
1218 (gfc_match_kind_spec): The same.
1219 (match_char_kind): The same.
1220 (gfc_match_type_spec): The same for numeric and derived types.
1221 (match_prefix): Rename as gfc_match_prefix.
1222 (gfc_match_function_decl): Except for function valued character
1223 lengths, defer applying kind, type and charlen info until the
1224 end of specification block.
1225 gfortran.h (gfc_statement): Add ST_GET_FCN_CHARACTERISTICS.
1226 parse.c (decode_specification_statement): New function.
1227 (decode_statement): Call it when a function has kind = -1. Set
1228 and reset gfc_matching function, as function statement is being
1230 (match_deferred_characteristics): Simplify with a single call
1231 to gfc_match_prefix. Do appropriate error handling. In any
1232 case, make sure that kind = -1 is reset or corrected.
1233 (parse_spec): Call above on seeing ST_GET_FCN_CHARACTERISTICS.
1234 Throw an error if kind = -1 after last specification statement.
1235 parse.h : Prototype for gfc_match_prefix.
1237 2008-01-16 Tobias Burnus <burnus@net-b.de>
1240 * interface.c (compare_parameter): Allow AS_DEFERRED array
1241 elements and reject attr.pointer array elemenents.
1242 (get_expr_storage_size): Return storage size of elements of
1243 assumed-shape and pointer arrays.
1245 2008-01-15 Sebastian Pop <sebastian.pop@amd.com>
1247 * f95-lang.c (gfc_init_builtin_functions): Initialize GOMP builtins
1248 for flag_tree_parallelize_loops.
1250 2008-01-15 Thomas Koenig <tkoenig@gcc.gnu.org>
1253 * iresolve.c (gfc_resolve_all): Call resolve_mask_arg.
1254 (gfc_resolve_any): Likewise.
1255 (gfc_resolve_count): Likewise. Don't append kind of
1256 argument to function name.
1258 2008-01-13 Tobias Burnus <burnus@net-b.de>
1261 * resolve.c (resolve_actual_arglist): For expressions,
1262 also check for assume-sized arrays.
1263 * interface.c (compare_parameter): Move F2003 character checks
1264 here, print error messages here, reject elements of
1265 assumed-shape array as argument to dummy arrays.
1266 (compare_actual_formal): Update for the changes above.
1268 2008-01-13 Tobias Burnus <burnus@net-b.de>
1271 * decl.c (contained_procedure): Only check directly preceeding state.
1273 2008-01-13 Tobias Burnus <burnus@net-b.de>
1276 * check.c (gfc_check_shape): Accept array ranges of
1277 assumed-size arrays.
1279 2008-01-12 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1282 * match.c (gfc_match_name): Don't error if leading character is a '(',
1283 just return MATCH_NO.
1285 2008-01-11 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1288 * trans-io.c (create_dummy_iostat): Commit the symbol.
1290 2008-01-11 Paul Thomas <pault@gcc.gnu.org>
1293 * simplify.c (gfc_simplify_transfer): Return NULL if the size
1294 of the element is unavailable and only assign character length
1295 to the result, if 'mold' is constant.
1297 2008-01-10 Paul Thomas <pault@gcc.gnu.org>
1300 * trans-array.c (gfc_trans_array_ctor_element): Use gfc_trans_string_copy
1301 to assign strings and perform bounds checks on the string length.
1302 (get_array_ctor_strlen): Remove bounds checking.
1303 (gfc_trans_array_constructor): Initialize string length checking.
1304 * trans-array.h : Add prototype for gfc_trans_string_copy.
1306 2008-01-08 Richard Guenther <rguenther@suse.de>
1309 PR tree-optimization/34683
1310 * trans-types.c (gfc_get_array_type_bounds): Use an array type
1311 with known size for accesses if that is known.
1313 2008-01-08 Paul Thomas <pault@gcc.gnu.org>
1316 * expr.c (find_array_element): Check that the array bounds are
1317 constant before using them. Use lower, as well as upper bound.
1318 (check_restricted): Allow implied index variable.
1320 2008-01-08 Paul Thomas <pault@gcc.gnu.org>
1323 * trans_array.c (gfc_trans_deferred_array): Do not null the
1324 data pointer on entering scope, nor deallocate it on leaving
1325 scope, if the symbol has the 'save' attribute.
1328 * trans_decl.c (gfc_finish_var_decl): Derived types with
1329 allocatable components and an initializer must be TREE_STATIC.
1331 2008-01-07 Paul Thomas <pault@gcc.gnu.org>
1334 * module.c (write_generic): Rewrite completely.
1335 (write_module): Change call to write_generic.
1337 2008-01-06 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1340 * scanner.c (load_line): Do not count ' ' as printable when checking for
1343 2008-01-06 Paul Thomas <pault@gcc.gnu.org>
1346 * module.c (load_needed): If the namespace has no proc_name
1347 give it the module symbol.
1349 2008-01-06 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1352 * trans-expr.c (gfc_conv_missing_dummy): Use a temporary to type convert
1353 the dummy variable expression, test for NULL, and pass the variable
1354 address to the called function.
1356 2007-01-06 Tobias Burnus <burnus@net-b.de>
1359 * match.c (gfc_match_common): Remove blank common in
1361 * resolve.c (resolve_common_vars): New function.
1362 (resolve_common_blocks): Move checks to resolve_common_vars
1363 and invoke that function.
1364 (resolve_types): Call resolve_common_vars for blank commons.
1366 2008-01-06 Tobias Burnus <burnus@net-b.de>
1369 * resolve.c (resolve_equivalence_derived): Reject derived types with
1370 default initialization if equivalenced with COMMON variable.
1372 2008-01-06 Tobias Burnus <burnus@net-b.de>
1375 * io.c (check_io_constraints): Disallow unformatted I/O for
1378 2008-01-06 Tobias Burnus <burnus@net-b.de>
1381 * resolve.c (resolve_formal_arglist): Reject dummy procedure in
1382 ELEMENTAL functions.
1384 2008-01-06 Tobias Burnus <burnus@net-b.de>
1387 * interface.c (compare_actual_formal): Reject parameter
1388 actual to intent(out) dummy.
1390 2008-01-04 Tobias Burnus <burnus@net-b.de>
1393 * primary.c (match_varspec): Gobble whitespace before