1 2008-05-15 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
3 * trans-expr.c (gfc_conv_concat_op): Take care of nondefault
5 (gfc_build_compare_string): Add kind argument and use it.
6 (gfc_conv_statement_function): Fix indentation.
7 * gfortran.h (gfc_character_info): New structure.
8 (gfc_character_kinds): New array.
9 * trans-types.c (gfc_character_kinds, gfc_character_types,
10 gfc_pcharacter_types): New array.
11 (gfc_init_kinds): Fill character kinds array.
12 (validate_character): Take care of nondefault character kinds.
13 (gfc_build_uint_type): New function.
14 (gfc_init_types): Take care of nondefault character kinds.
15 (gfc_get_char_type, gfc_get_pchar_type): New functions.
16 (gfc_get_character_type_len): Use gfc_get_char_type.
17 * trans.h (gfc_build_compare_string): Adjust prototype.
18 (gfor_fndecl_compare_string_char4, gfor_fndecl_concat_string_char4,
19 gfor_fndecl_string_len_trim_char4, gfor_fndecl_string_index_char4,
20 gfor_fndecl_string_scan_char4, gfor_fndecl_string_verify_char4,
21 gfor_fndecl_string_trim_char4, gfor_fndecl_string_minmax_char4,
22 gfor_fndecl_adjustl_char4, gfor_fndecl_adjustr_char4): New
24 * trans-types.h (gfc_get_char_type, gfc_get_pchar_type): New
26 * trans-decl.c (gfor_fndecl_compare_string_char4,
27 gfor_fndecl_string_len_trim_char4, gfor_fndecl_string_index_char4,
28 gfor_fndecl_string_scan_char4, gfor_fndecl_string_verify_char4,
29 gfor_fndecl_string_trim_char4, gfor_fndecl_string_minmax_char4,
30 gfor_fndecl_adjustl_char4, gfor_fndecl_adjustr_char4,
31 gfor_fndecl_concat_string_char4): New function decls.
32 (gfc_build_intrinsic_function_decls): Define new *_char4 function
34 * trans-intrinsic.c (gfc_conv_intrinsic_minmax_char,
35 gfc_conv_intrinsic_len_trim, gfc_conv_intrinsic_ichar,
36 gfc_conv_intrinsic_strcmp, gfc_conv_intrinsic_trim,
37 gfc_conv_intrinsic_function): Deal with nondefault character kinds.
39 2008-05-15 Sa Liu <saliu@de.ibm.com>
41 * iso-c-binding.def: Add standard parameter to macro NAMED_INTCST.
42 All existing NAMED_INTCST definitions has standard GFC_STD_F2003,
43 c_int128_t, c_int_least128_t and c_int_fast128_t are added as
45 * iso-fortran-evn.def: Add standard parameter GFC_STD_F2003
46 to macro NAMED_INTCST.
47 * symbol.c (std_for_isocbinding_symbol): New helper function to
48 return the standard that supports this isocbinding symbol.
49 (generate_isocbinding_symbol): Do not generate GNU extension symbols
50 if std=f2003. Add new parameter to NAMED_INTCST.
51 * module.c (use_iso_fortran_env_module): Add new parameter to
52 NAMED_INTCST and new field standard to struct intmod_sym.
53 * gfortran.h: Add new parameter to NAMED_INTCST.
54 * trans-types.c (init_c_interop_kinds): Add new parameter to
56 * intrinsic.texi: Documented new types C_INT128_T, C_INT_LEASE128_T
59 2008-05-14 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
62 * trans-decl.c (gfc_build_dummy_array_decl): Don't repack
63 arrays that have the TARGET attribute.
65 2008-05-14 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
68 * simplify.c (only_convert_cmplx_boz): New function.
69 (gfc_simplify_cmplx, gfc_simplify_complex, gfc_simplify_dcmplx):
70 Call only_convert_cmplx_boz.
72 2008-05-14 Paul Thomas <pault@gcc.gnu.org>
75 * interface.c (compare_actual_formal): Do not check sizes if the
76 actual is BT_PROCEDURE.
78 2008-05-14 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
81 * trans-array.c (gfc_conv_ss_startstride): Any negative size is
82 the same as zero size.
83 (gfc_conv_loop_setup): Fix size calculation.
85 2008-05-14 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
88 * trans-intrinsic.c (gfc_conv_intrinsic_bound): Correctly
89 handle zero-size sections.
91 2008-05-14 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
94 * scanner.c (preprocessor_line): Allocate enough memory for a
97 2008-05-12 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
100 * target-memory.c (gfc_target_expr_size): Correctly treat
102 (gfc_target_encode_expr): Likewise.
103 (gfc_interpret_complex): Whitespace change.
105 2008-05-11 Thomas Koenig <tkoenig@gcc.gnu.org>
108 * trans.c (gfc_call_malloc): If size equals zero, allocate one
109 byte; don't return a null pointer.
111 2008-05-10 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
114 * module.c (quote_string): Fix sprintf format.
116 2008-05-09 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
119 * module.c (quote_string, unquote_string,
120 mio_allocated_wide_string): New functions.
121 (mio_expr): Call mio_allocated_wide_string where needed.
123 2008-05-07 Kenneth Zadeck <zadeck@naturalbridge.com>
125 * trans-decl.c (gfc_get_extern_function_decl, build_function_decl):
126 Rename DECL_IS_PURE to DECL_PURE_P.
128 2008-05-06 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
130 * arith.c: (gfc_arith_concat, gfc_compare_string,
131 gfc_compare_with_Cstring, hollerith2representation,
132 gfc_hollerith2int, gfc_hollerith2real, gfc_hollerith2complex,
133 gfc_hollerith2character, gfc_hollerith2logical): Use wide
134 characters for character constants.
135 * data.c (create_character_intializer): Likewise.
136 * decl.c (gfc_set_constant_character_len): Likewise.
137 * dump-parse-tree.c (show_char_const): Correctly dump wide
139 error.c (print_wide_char): Rename into gfc_print_wide_char.
140 (show_locus): Adapt to new prototype of gfc_print_wide_char.
141 expr.c (free_expr0): Representation is now disjunct from
142 character string value, so we always free it.
143 (gfc_copy_expr, find_substring_ref, gfc_simplify_expr): Adapt
144 to wide character strings.
145 * gfortran.h (gfc_expr): Make value.character.string a wide string.
146 (gfc_wide_toupper, gfc_wide_strncasecmp, gfc_wide_memset,
147 gfc_widechar_to_char, gfc_char_to_widechar): New prototypes.
148 (gfc_get_wide_string): New macro.
149 (gfc_print_wide_char): New prototype.
150 * io.c (format_string): Make a wide string.
151 (next_char, gfc_match_format, compare_to_allowed_values,
152 gfc_match_open): Deal with wide strings.
153 * module.c (mio_expr): Convert between wide strings and ASCII ones.
154 * primary.c (match_hollerith_constant, match_charkind_name):
156 * resolve.c (build_default_init_expr): Likewise.
157 * scanner.c (gfc_wide_toupper, gfc_wide_memset,
158 gfc_char_to_widechar): New functions.
159 (wide_strchr, gfc_widechar_to_char, gfc_wide_strncasecmp):
160 Changes in prototypes.
161 (gfc_define_undef_line, load_line, preprocessor_line,
162 include_line, load_file, gfc_read_orig_filename): Handle wide
164 * simplify.c (gfc_simplify_achar, gfc_simplify_adjustl,
165 gfc_simplify_adjustr, gfc_simplify_char, gfc_simplify_iachar,
166 gfc_simplify_ichar, simplify_min_max, gfc_simplify_new_line,
167 gfc_simplify_repeat): Handle wide strings.
168 (wide_strspn, wide_strcspn): New helper functions.
169 (gfc_simplify_scan, gfc_simplify_trim, gfc_simplify_verify):
171 * symbol.c (generate_isocbinding_symbol): Likewise.
172 * target-memory.c (size_character, gfc_target_expr_size,
173 encode_character, gfc_target_encode_expr, gfc_interpret_character,
174 gfc_target_interpret_expr): Handle wide strings.
175 * trans-const.c (gfc_conv_string_init): Lower wide strings to
177 (gfc_conv_constant_to_tree): Likewise.
178 * trans-expr.c (gfc_conv_substring_expr): Handle wide strings.
179 * trans-io.c (gfc_new_nml_name_expr): Likewise.
180 * trans-stmt.c (gfc_trans_label_assign): Likewise.
182 2008-05-06 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
184 * simplify.c (gfc_simplify_bessel_j0,gfc_simplify_bessel_j1,
185 gfc_simplify_bessel_jn,gfc_simplify_bessel_y0,
186 gfc_simplify_bessel_y1,gfc_simplify_bessel_yn): Mark arguments
187 with ATTRIBUTE_UNUSED.
189 2008-05-06 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
191 * check.c (gfc_check_sizeof): Switch to ATTRIBUTE_UNUSED.
192 * simplify.c (gfc_simplify_lgamma): Likewise.
194 2008-05-06 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
196 * openmp.c (gfc_match_omp_eos): Use gfc_next_ascii_char and
198 * decl.c (gfc_match_kind_spec, gfc_match_type_spec,
199 gfc_match_implicit_none, match_implicit_range, gfc_match_implicit,
200 match_string_p, match_attr_spec, gfc_match_suffix,
201 match_procedure_decl, gfc_match_entry, gfc_match_subroutine):
203 * gfortran.h (gfc_char_t): New type.
204 (gfc_linebuf): Make line member a gfc_char_t.
205 (locus): Make nextc member a gfc_char_t.
206 (gfc_wide_is_printable, gfc_wide_is_digit, gfc_wide_fits_in_byte,
207 gfc_wide_tolower, gfc_wide_strlen, gfc_next_ascii_char,
208 gfc_peek_ascii_char, gfc_check_digit): New prototypes.
209 * error.c (print_wide_char): New function.
210 (show_locus): Use print_wide_char and gfc_wide_strlen.
211 * io.c (next_char): Use gfc_char_t type.
212 (match_io): Use gfc_peek_ascii_char and gfc_next_ascii_char.
213 * match.c (gfc_match_parens, gfc_match_eos,
214 gfc_match_small_literal_int, gfc_match_name, gfc_match_name_C,
215 gfc_match_intrinsic_op, gfc_match_char, gfc_match_return,
216 gfc_match_common): Likewise.
217 * match.h (gfc_match_special_char): Change prototype.
218 * parse.c (decode_specification_statement, decode_statement,
219 decode_omp_directive, next_free, next_fixed): Use
220 gfc_peek_ascii_char and gfc_next_ascii_char.
221 * primary.c (gfc_check_digit): Change name.
222 (match_digits, match_hollerith_constant, match_boz_constant,
223 match_real_constant, next_string_char, match_charkind_name,
224 match_string_constant, match_logical_constant_string,
225 match_complex_constant, match_actual_arg, match_varspec,
226 gfc_match_rvalue, match_variable): Use gfc_peek_ascii_char and
228 * scanner.c (gfc_wide_fits_in_byte, wide_is_ascii,
229 gfc_wide_is_printable, gfc_wide_tolower, gfc_wide_is_digit,
230 gfc_wide_is_digit, wide_atoi, gfc_wide_strlen, wide_strcpy,
231 wide_strchr, widechar_to_char, wide_strncmp, wide_strncasecmp,
232 gfc_next_ascii_char, gfc_peek_ascii_char):
234 (next_char, gfc_define_undef_line, skip_free_comments,
235 gfc_next_char_literal, gfc_next_char, gfc_peek_char,
236 gfc_error_recovery, load_line, preprocessor_line, include_line,
237 load_file, gfc_read_orig_filename): Use gfc_char_t for source
238 characters and the {gfc_,}wide_* functions to manipulate wide
241 2008-05-06 Tobias Burnus <burnus@net-b.de>
244 * intrinsic.c (add_functions): Call gfc_simplify_bessel_*.
245 * intrinsic.h: Add prototypes for gfc_simplify_bessel_*.
246 * simplify.c (gfc_simplify_bessel_j0,gfc_simplify_bessel_j1,
247 gfc_simplify_bessel_jn,gfc_simplify_bessel_y0,
248 gfc_simplify_bessel_y1,gfc_simplify_bessel_yn): New.
250 2008-05-03 Janus Weil <jaydub66@gmail.com>
252 * misc.c (gfc_clear_ts): Set interface to NULL.
254 2008-05-03 Jerry DeLisle <jvdelisle@gcc.gnu.org>
257 * gfortran.h: Add extra_comma pointer to gfc_dt structure. Add iokind to
258 gfc_expr value union. Add io_kind enum to here from io.c.
259 * io.c (gfc_free_dt): Free extra_comma.
260 (gfc_resolve_dt): If an extra comma was encountered and io_unit is type
261 BT_CHARACTER, resolve to format_expr and set default unit. Error if
262 io_kind is M_WRITE. (match_io): Match the extra comma and set new
263 pointer, extra_comma.
265 2008-05-01 Bud Davis <bdavis9659@sbcglobal.net>
268 * simplify.c (gfc_simplify_index): Check for direction argument
271 2008-05-01 Janus Weil <jaydub66@gmail.com>
273 * gfortran.h (struct gfc_symbol): Moving "interface" member to
274 gfc_typespec (plus fixing a small docu error).
275 * interface.c (gfc_procedure_use): Ditto.
276 * decl.c (match_procedure_decl): Ditto.
277 * resolve.c (resolve_specific_f0,
278 resolve_specific_f0, resolve_symbol): Ditto.
280 2008-04-30 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
282 * intrinsic.c (add_functions): Add SELECTED_CHAR_KIND intrinsic.
283 * intrinsic.h (gfc_check_selected_char_kind,
284 gfc_simplify_selected_char_kind): New prototypes.
285 * gfortran.h (gfc_isym_id): Add GFC_ISYM_SC_KIND.
286 * trans.h (gfor_fndecl_sc_kind): New function decl.
287 * trans-decl.c (gfor_fndecl_sc_kind): Build new decl.
288 * arith.c (gfc_compare_with_Cstring): New function.
289 * arith.h (gfc_compare_with_Cstring): New prototype.
290 * check.c (gfc_check_selected_char_kind): New function.
291 * primary.c (match_string_constant, match_kind_param): Mark
292 symbols used as literal constant kind param as referenced.
293 * trans-intrinsic.c (gfc_conv_intrinsic_sc_kind): New function.
294 (gfc_conv_intrinsic_function): Call gfc_conv_intrinsic_sc_kind.
295 * intrinsic.texi (SELECTED_CHAR_KIND): Document new intrinsic.
296 * simplify.c (gfc_simplify_selected_char_kind): New function.
298 2008-04-28 Paul Thomas <pault@gcc.gnu.org>
301 * module.c (find_symbol): Do not return a result for a symbol
302 that has been renamed in another module.
304 2008-04-26 George Helffrich <george@gcc.gnu.org>
308 * trans-common.c (create_common): Add decl to function
309 chain (if inside one) to preserve identifier scope in debug output.
311 2008-04-25 Jan Hubicka <jh@suse.cz>
313 * trans-decl.c (trans_function_start): Update.
315 2008-04-25 Tobias Burnus <burnus@net-b.de>
316 Daniel Franke <franke.daniel@gmail.com>
319 * gfortranspec.c (lang_specific_driver): Deprecate
320 -M option; fix ICE when "-M" is last argument and
322 * options.c (gfc_handle_module_path_options):
323 Use -J instead of -M in error messages.
324 * invoke.texi: Mark -M as depecated.
326 2008-04-23 Jerry DeLisle <jvdelisle@gcc.gnu.org>
327 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
330 * trans-instrinsic.c (gfc_conv_intrinsic_minmaxloc): Correctly adjust
333 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
335 * trans-expr.c (gfc_conv_structure): Don't set TREE_INVARIANT.
336 * trans-array.c (gfc_build_null_descriptor): Don't set TREE_INVARIANT.
337 (gfc_trans_array_constructor_value): Don't set TREE_INVARIANT.
338 (gfc_build_constant_array_constructor): Don't set TREE_INVARIANT.
339 (gfc_conv_array_initializer): Don't set TREE_INVARIANT.
340 * trans-common.c (get_init_field): Don't set TREE_INVARIANT.
341 (create_common): Don't set TREE_INVARIANT.
342 * trans-stmt.c (gfc_trans_character_select): Don't set TREE_INVARIANT.
343 * trans-decl.c (gfc_generate_function_code): Don't set TREE_INVARIANT.
345 2008-04-21 Steve Ellcey <sje@cup.hp.com>
347 * f95-lang.c (gfc_init_decl_processing): use ptr_mode instead of Pmode.
349 2008-04-21 Daniel Franke <franke.daniel@gmail.com>
352 * gfortranspec.c (lookup_option): Properly handle separated arguments
353 in -J option, print missing argument message when necessary.
355 2008-04-20 Jerry DeLisle <jvdelisle@gcc.gnu.org>
358 * scanner.c (skip_fixed_comments): Update continue_line when comment is
359 detected. (gfc_next_char_literal): Likewise.
361 2008-04-19 Paul Thomas <pault@gcc.gnu.org>
366 * trans_array.c (gfc_trans_array_constructor): Temporarily
367 realign loop, if loop->from is not zero, before creating
368 the temporary array and provide an offset.
371 * trans-decl.c (gfc_init_default_dt): Add gfc_ prefix to name
372 and allow for NULL body. Change all references from
373 init_default_dt to gfc_init_default_dt.
374 * trans.h : Add prototype for gfc_init_default_dt.
375 * trans-array.c (gfc_trans_deferred_vars): After nullification
376 call gfc_init_default_dt for derived types with allocatable
379 2008-04-18 Jerry DeLisle <jvdelisle@gcc.gnu.org>
382 * trans-common.c (create_common): Revert patch causing regression.
384 2008-04-16 Jerry DeLisle <jvdelisle@gcc.gnu.org>
387 * iresolve.c (gfc_resolve_eoshift): Check for NULL symtree in test for
388 optional argument attribute.
390 2008-04-16 Paul Thomas <pault@gcc.gnu.org>
393 * trans-intrinsic.c (gfc_conv_intrinsic_char): Even though KIND
394 is not used, the argument must be converted.
396 2008-04-16 Jakub Jelinek <jakub@redhat.com>
399 * f95-lang.c (gfc_init_builtin_functions): Make sure
400 BUILT_IN_SINCOS{,F,L} types aren't varargs.
402 2008-04-15 Paul Thomas <pault@gcc.gnu.org>
405 * expr.c (scalarize_intrinsic_call): Reorder identification of
406 array argument so that if one is not found a segfault does not
407 occur. Return FAILURE if all scalar arguments.
409 2008-04-13 Jerry DeLisle <jvdelisle@gcc.gnu.org>
410 Tobias Burnus <burnus@net-b.de>
413 * options.c (gfc_init_options): Set the default maximum continuation
414 lines to 255 for both free and fixed form source for warnings.
415 (gfc_handle_option): Set -std=f95 fixed form max continuations to 19 and
416 the -std=f95 free form max continuations to 39 for warnings.
417 * scanner.c (gfc_next_char_literal): Adjust the current_line number only
418 if it is less than the current locus.
420 2008-04-07 Jerry DeLisle <jvdelisle@gcc.gnu.org>
422 PR fortran/25829 28655
423 * io.c (io_tag): Add new tags for decimal, encoding, asynchronous,
424 round, sign, and id. (match_open_element): Match new tags.
425 (gfc_resolve_open): Resolve new tags. (gfc_match_open): Enable encoding
426 for DEFAULT only. Update error messages. (match_dt_element): Fix match
427 tag for asynchronous. Update error messages. (gfc_free_inquire): Free
428 new expressions. (match_inquire_element): Match new tags.
429 (gfc_match_inquire): Add constraint for ID and PENDING.
430 (gfc_resolve_inquire): Resolve new tags.
431 * trans-io.c (gfc_trans_inquire): Clean up whitespace and fix setting of
432 mask for ID parameter.
433 * ioparm.def: Fix order of parameters for pending, round, and sign.
434 NOTE: These must line up with the definitions in libgfortran/io/io.h. or
437 2008-04-06 Paul Thomas <pault@gcc.gnu.org>
440 * expr.c (scalarize_intrinsic_call): Identify which argument is
441 an array and use that as the template.
442 (check_init_expr): Remove tests that first argument is an array
443 in the call to scalarize_intrinsic_call.
445 2008-04-06 Tobias Schlüter <tobi@gcc.gnu.org>
448 * io.c (io_tag): Add field 'value'. Split 'spec' field in
450 (match_etag, match_vtag, match_ltag): Split parsing in two steps
451 to give better error messages.
453 2008-04-06 Tobias Burnus <burnus@net-b.de>
455 * io.c (check_io_constraints): Add constrains. ID= requires
456 asynchronous= and asynchronous= must be init expression.
458 2008-04-06 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
460 * f95-lang.c: Set LANG_HOOKS_NAME to "GNU Fortran".
462 2008-04-06 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
464 * dump-parse-tree.c: Use fprintf, fputs and fputc instead of
465 gfc_status and gfc_status_char. Remove gfc_ prefix of the gfc_show_*
466 functions and make them static. Add new gfc_dump_parse_tree
468 * gfortran.h (gfc_option_t): Rename verbose into dump_parse_tree.
469 (gfc_status, gfc_status_char): Delete prototypes.
470 * error.c (gfc_status, gfc_status_char): Remove functions.
471 * scanner.c (gfc_new_file): Use printf instead of gfc_status.
472 * options.c (gfc_init_options): Rename verbose into dump_parse_tree.
473 (gfc_handle_module_path_options): Use gfc_fatal_error instead of
475 (gfc_handle_option): Rename verbose into dump_parse_tree.
476 * parse.c (gfc_parse_file): Use gfc_dump_parse_tree.
478 2008-04-05 Jerry DeLisle <jvdelisle@gcc.gnu.org>
479 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
481 PR fortran/25829 28655
482 * dump-parse-tree.c (gfc_show_code_node): Show new I/O parameters.
483 * gfortran.h (gfc_statement): Add ST_WAIT enumerator.
484 (gfc_open): Add pointers for decimal, encoding, round, sign,
485 asynchronous. (gfc_inquire): Add pointers for asynchronous, decimal,
486 encoding, pending, round, sign, size, id.
487 (gfc_wait): New typedef struct. (gfc_dt): Add pointers for id, pos,
488 asynchronous, blank, decimal, delim, pad, round, sign.
489 (gfc_exec_op): Add EXEC_WAIT enumerator. (gfc_code): Add pointer for
490 wait. (gfc_free_wait), (gfc_resolve_wait): New function prototypes.
491 * trans-stmt.h (gfc_trans_wait): New function prototype.
492 * trans.c (gfc_trans_code): Add case for EXEC_WAIT.
493 * io.c (io_tag): Add new tags for DECIMAL, ENCODING, ROUND, SIGN,
494 ASYCHRONOUS, ID. (match_open_element): Add matchers for new tags.
495 (gfc_free_open): Free new pointers. (gfc_resolve_open): Resolve new
496 tags. (gfc_resolve_open): Remove comment around check for allowed
497 values and ASYNCHRONOUS, update it. Likewise for DECIMAL, ENCODING,
498 ROUND, and SIGN. (match_dt_element): Add matching for new tags.
499 (gfc_free_wait): New function. (gfc_resolve_wait): New function.
500 (match_wait_element): New function. (gfc_match_wait): New function.
501 * resolve.c (gfc_resolve_blocks): Add case for EXEC_WAIT.
502 (resolve_code): Add case for EXEC_WAIT.
503 * st.c (gfc_free_statement): Add case for EXEC_WAIT.
504 * trans-io.c (ioparam_type): Add IOPARM_ptype_wait. (gfc_st_parameter):
505 Add "wait" entry. (iocall): Add IOCALL_WAIT enumerator.
506 (gfc_build_io_library_fndecls): Add function declaration for st_wait.
507 (gfc_trans_open): Add mask bits for new I/O tags.
508 (gfc_trans_inquire): Add mask bits for new I/O tags.
509 (gfc_trans_wait): New translation function.
510 (build_dt): Add mask bits for new I/O tags.
511 * match.c (gfc_match_if) Add matcher for "wait".
512 * match.h (gfc_match_wait): Prototype for new function.
513 * ioparm.def: Add new I/O parameter definitions.
514 * parse.c (decode_statement): Add match for "wait" statement.
515 (next_statement): Add case for ST_WAIT. (gfc_ascii_statement): Same.
517 2008-04-03 Jakub Jelinek <jakub@redhat.com>
520 * openmp.c (resolve_omp_clauses): Diagnose if a clause symbol
523 2008-04-03 Tom Tromey <tromey@redhat.com>
525 * Make-lang.in (fortran_OBJS): New variable.
527 2008-04-03 Paolo Bonzini <bonzini@gnu.org>
529 * f95-lang.c (insert_block): Kill.
531 2008-04-01 George Helffrich <george@gcc.gnu.org>
533 PR fortran/35154, fortran/23057
534 * trans-common.c (create_common): Add decl to function
535 chain to preserve identifier scope in debug output.
537 2008-04-01 Joseph Myers <joseph@codesourcery.com>
539 * gfortran.texi: Include gpl_v3.texi instead of gpl.texi
540 * Make-lang.in (GFORTRAN_TEXI): Include gpl_v3.texi instead of
543 2008-03-30 Paul Thomas <pault@gcc.gnu.org>
546 * resolve.c (resolve_function, resolve_call): If the procedure
547 is elemental do not look for noncopying intrinsics.
549 2008-03-29 Paul Thomas <pault@gcc.gnu.org>
552 * trans-array.c (gfc_array_init_size): Set 'size' zero if
553 negative in one dimension.
556 * trans-expr.c (gfc_trans_string_copy): Only assign a char
557 directly if the lhs and rhs types are the same.
559 2008-03-28 Daniel Franke <franke.daniel@gmail.com>
560 Paul Richard Thomas <paul.richard.thomas@gmail.com>
563 * primary.c (match_variable): Improved matching of function
565 * resolve.c (resolve_allocate_deallocate): Removed checks if
566 the actual argument for STAT is a variable.
568 2008-03-28 Tobias Burnus <burnus@net-b.de>
570 * symbol.c (gfc_get_default_type): Fix error message; option
571 -fallow_leading_underscore should be -fallow-leading-underscore
573 2008-03-27 Jerry DeLisle <jvdelisle@gcc.gnu.org>
576 * iresolve.c (gfc_resolve_cshift): Check for NULL symtree in test for
577 optional argument attribute.
579 2008-03-27 Tom Tromey <tromey@redhat.com>
581 * Make-lang.in: Revert automatic dependency patch.
583 2008-03-25 Tom Tromey <tromey@redhat.com>
585 * Make-lang.in: Remove .o targets.
586 (fortran_OBJS): New variable.
587 (fortran/gfortranspec.o): Move to fortran/. Reduce to variable
589 (GFORTRAN_D_OBJS): Update.
590 (GFORTRAN_TRANS_DEPS): Remove.
592 2008-03-24 Paul Thomas <pault@gcc.gnu.org>
595 * resolve.c (resolve_structure_cons): It is an error to assign
596 NULL to anything other than a pointer or allocatable component.
599 * resolve.c (resolve_symbol): If the symbol is a derived type,
600 resolve the derived type. If the symbol is a derived type
601 function, ensure that the derived type is visible in the same
602 namespace as the function.
604 2008-03-23 Tobias Schlüter <tobi@gcc.gnu.org>
606 * trans.h: Use fold_build in build1_v, build2_v and build3_v
608 * trans-openmp.c (gfc_trans_omp_critical, gfc_trans_omp_single):
609 Don't use build2_v macro.
611 2008-03-19 Daniel Franke <franke.daniel@gmail.com>
614 * interface.c (gfc_procedure_use): Check for keyworded arguments in
615 procedures without explicit interfaces.
617 2008-03-16 Paul Thomas <pault@gcc.gnu.org>
620 * resolve.c (check_assumed_size_reference): Only visit the
621 first reference and look directly at the highest dimension.
623 2008-03-15 Jerry DeLisle <jvdelisle@gcc.gnu.org>
626 * trans-array.c (gfc_conv_array_index_offset): Remove unnecessary
629 2008-03-15 Daniel Franke <franke.daniel@gmail.com>
632 * resolve.c (resolve_branch): Less strict and pessimistic warning
635 2008-03-11 Paolo Bonzini <bonzini@gnu.org>
637 * f95-lang.c (LANG_HOOKS_CLEAR_BINDING_STACK): Delete.
638 (gfc_be_parse_file): Call clear_binding_stack from here.
639 (gfc_clear_binding_stack): Rename to clear_binding_stack.
641 2008-03-09 Paul Thomas <pault@gcc.gnu.org>
644 * module.c (mio_symtree_ref): After providing a symbol for a
645 missing equivalence member, resolve and NULL the fixups.
647 2008-03-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
649 * invoke.texi (Error and Warning Options): Document
652 2008-03-08 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
655 * trans-array.c (gfc_conv_ss_startstride): Fix the logic to avoid
656 checking bounds of absent optional arguments.
658 2008-03-06 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
661 * intrinsic.c (add_functions): Add simplification routines for
662 ERF, DERF, ERFC and DERFC.
663 * decl.c (gfc_match_suffix, gfc_match_subroutine): Change GNU
664 extensions into Fortran 2008 features.
665 * intrinsic.h (gfc_simplify_erf, gfc_simplify_erfc): New
667 * simplify.c (gfc_simplify_erf, gfc_simplify_erfc): New functions.
669 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
672 * intrinsic.c (add_functions): Modify intrinsics ACOSH, ASINH,
673 ATANH, ERF, ERFC and GAMMA. Add intrinsics BESSEL_{J,Y}{0,1,N},
674 ERFC_SCALED, LOG_GAMMA and HYPOT.
675 * intrinsic.h (gfc_check_hypot, gfc_simplify_hypot,
676 gfc_resolve_hypot): New prototypes.
677 * mathbuiltins.def: Add HYPOT builtin. Make complex versions of
678 ACOSH, ASINH and ATANH available.
679 * gfortran.h (GFC_ISYM_ERFC_SCALED, GFC_ISYM_HYPOT): New values.
680 * lang.opt: Add -std=f2008 option.
681 * libgfortran.h: Define GFC_STD_F2008.
682 * lang-specs.h: Add .f08 and .F08 file suffixes.
683 * iresolve.c (gfc_resolve_hypot): New function.
684 * parse.c (parse_contained): Allow empty CONTAINS for Fortran 2008.
685 * check.c (gfc_check_hypot): New function.
686 * trans-intrinsic.c (gfc_intrinsic_map): Define ERFC_SCALE builtin.
687 * options.c (set_default_std_flags): Allow Fortran 2008 by default.
688 (form_from_filename): Add .f08 suffix.
689 (gfc_handle_option): Handle -std=f2008 option.
690 * simplify.c (gfc_simplify_hypot): New function.
691 * gfortran.texi: Document Fortran 2008 status and file extensions.
692 * intrinsic.texi: Document new BESSEL_{J,Y}{0,1,N} intrinsics,
693 as well as HYPOT and ERFC_SCALED. Update documentation of ERF,
694 ERFC, GAMMA, LGAMMA, ASINH, ACOSH and ATANH.
695 * invoke.texi: Document the new -std=f2008 option.
697 2008-03-02 Jakub Jelinek <jakub@redhat.com>
699 * gfortranspec.c (lang_specific_driver): Update copyright notice
702 2008-02-29 Jerry DeLisle <jvdelisle@gcc.gnu.org>
705 * expr.c (find_array_element): Modify traversing the constructor to
706 avoid trying to access NULL memory pointed to by next for the
707 last element. (find_array_section): Exit while loop if cons->next is
709 * trans-expr.c (gfc_conv_scalar_char_value): Initialize gfc_typespec.
710 (gfc_conv_function_call): Same.
711 * decl.c (gfc_match_implicit): Same.
712 * trans-intrinsic.c (gfc_conv_intrinsic_sr_kind): Same.
714 2008-02-28 Daniel Franke <franke.daniel@gmail.com>
719 * lang.opt: Added -Wreturn-type.
720 * options.c (gfc_handle_option): Recognize -Wreturn-type.
721 * trans-decl.c (gfc_trans_deferred_vars): Emit warnings for funtions
722 where the result value is not set.
723 (gfc_generate_function_code): Likewise.
724 (generate_local_decl): Emit warnings for funtions whose RESULT
727 2008-02-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
730 * trans-expr.c (gfc_conv_variable): Don't build indirect
731 references when explicit interface is mandated.
732 * resolve.c (resolve_formal_arglist): Set attr.always_explicit
733 on the result symbol as well as the procedure symbol.
735 2008-02-27 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
738 * trans.h: Remove prototypes for gfor_fndecl_math_exponent4,
739 gfor_fndecl_math_exponent8, gfor_fndecl_math_exponent10 and
740 gfor_fndecl_math_exponent16.
741 * f95-lang.c (build_builtin_fntypes): Add new function types.
742 (gfc_init_builtin_functions): Add new builtins for nextafter,
743 frexp, ldexp, fabs, scalbn and inf.
744 * iresolve.c (gfc_resolve_rrspacing): Don't add hidden arguments.
745 (gfc_resolve_scale): Don't convert type of second argument.
746 (gfc_resolve_set_exponent): Likewise.
747 (gfc_resolve_size): Don't add hidden arguments.
748 * trans-decl.c: Remove gfor_fndecl_math_exponent4,
749 gfor_fndecl_math_exponent8, gfor_fndecl_math_exponent10 and
750 gfor_fndecl_math_exponent16.
751 * trans-intrinsic.c (gfc_intrinsic_map): Remove intrinsics
752 for scalbn, fraction, nearest, rrspacing, set_exponent and
754 (gfc_conv_intrinsic_exponent): Directly call frexp.
755 (gfc_conv_intrinsic_fraction, gfc_conv_intrinsic_nearest,
756 gfc_conv_intrinsic_spacing, gfc_conv_intrinsic_rrspacing,
757 gfc_conv_intrinsic_scale, gfc_conv_intrinsic_set_exponent): New
759 (gfc_conv_intrinsic_function): Use the new functions above.
761 2008-02-26 Tobias Burnus <burnus@net-b.de>
764 * interface.c (check_operator_interface): Show better line for error
765 messages; fix constrains for user-defined assignment operators.
766 (gfc_extend_assign): Fix constrains for user-defined assignment
769 2008-02-26 Tom Tromey <tromey@redhat.com>
771 * trans-io.c (set_error_locus): Remove old location code.
772 * trans-decl.c (gfc_set_decl_location): Remove old location code.
773 * f95-lang.c (gfc_init): Remove test of USE_MAPPED_LOCATION.
774 * scanner.c (gfc_gobble_whitespace): Remove old location code.
775 (get_file): Likewise.
776 (preprocessor_line): Likewise.
777 (load_file): Likewise.
778 (gfc_new_file): Likewise.
779 * trans.c (gfc_trans_runtime_check): Remove old location code.
780 (gfc_get_backend_locus): Likewise.
781 (gfc_set_backend_locus): Likewise.
782 * data.c (gfc_assign_data_value): Remove old location code.
783 * error.c (show_locus): Remove old location code.
784 * gfortran.h (gfc_linebuf): Remove old location code.
785 (gfc_linebuf_linenum): Remove old-location variant.
787 2008-02-25 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
790 * trans-const.c (gfc_build_string_const): Don't call gettext.
791 (gfc_build_localized_string_const): New function.
792 * trans-const.h (gfc_build_localized_string_const): New prototype.
793 * trans.c (gfc_trans_runtime_check): Use
794 gfc_build_localized_string_const instead of gfc_build_string_const.
795 (gfc_call_malloc): Likewise.
796 (gfc_allocate_with_status): Likewise.
797 (gfc_allocate_array_with_status): Likewise.
798 (gfc_deallocate_with_status): Likewise.
799 (gfc_call_realloc): Likewise.
800 * trans-io.c (gfc_trans_io_runtime_check): Likewise.
802 2008-02-24 Tobias Schlüter <tobi@gcc.gnu.org>
804 * arith.c: Update copyright years.
812 * dependency.c: Likewise.
813 * dependency.h: Likewise.
814 * dump-parse-tree.c: Likewise.
817 * gfc-internals.texi: Likewise.
818 * gfortran.h: Likewise.
819 * gfortran.texi: Likewise.
820 * gfortranspec.c: Likewise.
821 * interface.c: Likewise.
822 * intrinsic.c: Likewise.
823 * intrinsic.h: Likewise.
824 * intrinsic.texi: Likewise.
825 * invoke.texi: Likewise.
827 * iresolve.c: Likewise.
828 * iso-c-binding.def: Likewise.
829 * iso-fortran-env.def: Likewise.
830 * lang-specs.h: Likewise.
831 * lang.opt: Likewise.
832 * libgfortran.h: Likewise.
835 * matchexp.c: Likewise.
837 * module.c: Likewise.
838 * openmp.c: Likewise.
839 * options.c: Likewise.
842 * primary.c: Likewise.
843 * resolve.c: Likewise.
844 * scanner.c: Likewise.
845 * simplify.c: Likewise.
847 * symbol.c: Likewise.
848 * target-memory.c: Likewise.
849 * target-memory.h: Likewise.
850 * trans-array.h: Likewise.
851 * trans-const.h: Likewise.
852 * trans-stmt.h: Likewise.
853 * trans-types.c: Likewise.
854 * trans-types.h: Likewise.
855 * types.def: Likewise.
857 2008-02-24 Jerry DeLisle <jvdelisle@gcc.gnu.org>
860 * simplify.c (gfc_simplify_ibclr), (gfc_simplify_ibits),
861 (gfc_simplify_ibset): Remove call to range_check.
862 (simplify_cmplx), (gfc_simplify_dble), (gfc_simplify_float)
863 (gfc_simplify_real): Add call gfc_clear_ts to initialize the
864 temporary gfc_typspec variable.
866 2008-02-24 Tobias Schlüter <tobi@gcc.gnu.org>
868 * trans-array.c (gfc_conv_descriptor_data_get,
869 gfc_conv_descriptor_data_set_internal,
870 gfc_conv_descriptor_data_addr, gfc_conv_descriptor_offset,
871 gfc_conv_descriptor_dtype, gfc_conv_descriptor_dimension,
872 gfc_conv_descriptor_stride, gfc_conv_descriptor_lbound,
873 gfc_conv_descriptor_ubound, gfc_trans_create_temp_array,
874 gfc_conv_array_transpose, gfc_grow_array,
875 gfc_trans_array_constructor_subarray,
876 gfc_trans_array_constructor_value, gfc_trans_scalarized_loop_end,
877 gfc_array_init_size, gfc_array_allocate, gfc_array_deallocate,
878 gfc_conv_array_initializer, gfc_trans_array_bounds,
879 gfc_trans_auto_array_allocation, gfc_trans_dummy_array_bias,
880 gfc_get_dataptr_offset, gfc_conv_array_parameter,
881 gfc_trans_dealloc_allocated, get_full_array_size,
882 gfc_duplicate_allocatable, structure_alloc_comps): Use fold_buildN
884 * trans-expr.c (gfc_conv_expr_present, gfc_conv_missing_dummy,
885 gfc_conv_component_ref, gfc_conv_cst_int_power,
886 gfc_conv_function_call, gfc_trans_structur_assign): Likewise.
887 * trans-common.c (create_common): Likewise.
888 * trans-openmp.c (gfc_trans_omp_atomic, gfc_trans_omp_do):
890 * trans-const.c (gfc_conv_constant_to_tree): Likewise.
891 * trans-stmt.c (gfc_trans_goto, gfc_trans_return, gfc_trans_do,
892 gfc_trans_integer_select, gfc_trans_character_select,
893 gfc_trans_forall_loop, compute_overall_iter_number,
894 gfc_trans_forall_1, gfc_evaluate_where_mask, gfc_trans_allocate,
895 gfc_trans_deallocate): Likewise.
896 * trans.c (gfc_build_addr_expr, gfc_trans_runtime_check,
897 gfc_allocate_with_status, gfc_allocate_array_with_status,
898 gfc_deallocate_with_status): Likewise.
899 * f95-lang.c (gfc_truthvalue_conversion): Likewise.
900 * trans-io.c (set_parameter_const, set_parameter_value,
901 set_parameter_ref, set_string, set_internal_unit, io_result,
902 set_error_locus, nml_get_addr_expr, transfer_expr): Likewise.
903 * trans-decl.c (gfc_build_qualified_array, build_entry_thunks,
904 gfc_get_fake_result_decl, gfc_trans_auto_character_variable,
905 gfc_generate_function_code): Likewise.
906 * convert.c (convert): Likewise.
907 * trans-intrinsic.c (gfc_conv_intrinsic_conversion,
908 build_fixbound_expr, build_fix_expr, gfc_conv_intrinsic_aint,
909 gfc_conv_intrinsic_int, gfc_conv_intrinsic_imagpart,
910 gfc_conv_intrinsic_conjg, gfc_conv_intrinsic_abs,
911 gfc_conv_intrinsic_cmplx, gfc_conv_intrinsic_mod,
912 gfc_conv_intrinsic_dim, gfc_conv_intrinsic_dprod,
913 gfc_conv_intrinsic_ctime, gfc_conv_intrinsic_fdate,
914 gfc_conv_intrinsic_ttynam, gfc_conv_intrinsic_minmax,
915 gfc_conv_intrinsic_minmax_char, gfc_conv_intrinsic_count,
916 gfc_conv_intrinsic_arith, gfc_conv_intrinsic_dot_product,
917 gfc_conv_intrinsic_minmaxloc, gfc_conv_intrinsic_minmaxval,
918 gfc_conv_intrinsic_btest, gfc_conv_intrinsic_not,
919 gfc_conv_intrinsic_ibits, gfc_conv_intrinsic_ishft,
920 gfc_conv_intrinsic_ichar, gfc_conv_intrinsic_size,
921 gfc_conv_intrinsic_array_transfer, gfc_conv_intrinsic_transfer,
922 gfc_conv_allocated, gfc_conv_associated, gfc_conv_intrinsic_trim,
923 gfc_conv_intrinsic_repeat): Likewise.
925 2008-02-23 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
928 * trans-expr.c (gfc_conv_power_op): Use BUILT_IN_CPOW{F,,L}.
929 * f95-lang.c (gfc_init_builtin_functions): Define BUILT_IN_CPOW{F,,L}.
930 * trans.h (gfor_fndecl_math_cpow, gfor_fndecl_math_cpowf,
931 gfor_fndecl_math_cpowl10, gfor_fndecl_math_cpowl16): Remove.
932 * trans-decl.c: Likewise.
934 2008-02-22 Jerry DeLisle <jvdelisle@gcc.gnu.org>
937 * expr.c (find_array_element): Modify traversing the constructor to
938 avoid trying to access NULL memory pointed to by next for the
939 last element. (find_array_section): Exit while loop if cons->next is
942 2008-02-22 Jerry DeLisle <jvdelisle@gcc.gnu.org>
945 * iresolve.c (resolve_mask_arg): Add gfc_clear_ts to initialize
947 (gfc_resolve_aint): Likewise.
948 (gfc_resolve_anint): Likewise.
949 (gfc_resolve_besn): Likewise.
950 (gfc_resolve_cshift): Likewise.
951 (gfc_resolve_ctime): Likewise.
952 (gfc_resolve_eoshift): Likewise.
953 (gfc_resolve_index_func): Likewise.
954 (gfc_resolve_isatty): Likewise.
955 (gfc_resolve_malloc): Likewise.
956 (gfc_resolve_rrspacing): Likewise.
957 (gfc_resolve_scale): Likewise.
958 (gfc_resolve_set_exponent): Likewise.
959 (gfc_resolve_spacing): Likewise.
960 (gfc_resolve_spacing): Likewise.
961 (gfc_resolve_fgetc): Likewise.
962 (gfc_resolve_fputc): Likewise.
963 (gfc_resolve_ftell): Likewise.
964 (gfc_resolve_ttynam): Likewise.
965 (gfc_resolve_alarm_sub): Likewise.
966 (gfc_resolve_mvbits): Likewise.
967 (gfc_resolve_getarg): Likewise.
968 (gfc_resolve_signal_sub): Likewise.
969 (gfc_resolve_exit): Likewise.
970 (gfc_resolve_flush): Likewise.
971 (gfc_resolve_free): Likewise.
972 (gfc_resolve_ctime_sub): Likewise.
973 (gfc_resolve_fgetc_sub): Likewise.
974 (gfc_resolve_fputc_sub): Likewise.
975 (gfc_resolve_fseek_sub): Likewise.
976 (gfc_resolve_ftell_sub): Likewise.
977 (gfc_resolve_ttynam_sub): Likewise.
979 2008-02-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
981 * gfc-internals.texi: Fix typos and markup nits.
982 * gfortran.texi: Likewise.
983 * intrinsic.texi: Likewise.
985 2008-02-21 Richard Guenther <rguenther@suse.de>
987 * trans-expr.c (gfc_conv_expr_op): Expand INTRINSIC_PARENTHESES
988 as unary PAREN_EXPR for real and complex typed expressions.
989 (gfc_conv_unary_op): Fold the built tree.
991 2008-02-20 Tobias Burnus <burnus@net-b.de>
994 * match.c (gfc_match_name): Improve error message for '$'.
996 2008-02-19 Daniel Franke <franke.daniel@gmail.com>
999 * expr.c (gfc_check_pointer_assign): Add type and kind information
1000 to type-mismatch message.
1001 (gfc_check_assign): Unify error messages.
1003 2008-02-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1006 * gfortran.texi: Create new section for unimplemented extensions.
1007 Add "STRUCTURE and RECORD" and "ENCODE and DECODE statements".
1008 Remove "smaller projects" list. Fix a few typos.
1010 2008-02-15 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1012 * intrinsic.texi: Rename INDEX node to avoid clashing with
1013 index.html on case-insensitive systems.
1015 2008-02-15 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1018 * trans-expr.c (gfc_conv_function_call): Force evaluation of
1021 2008-02-10 Daniel Franke <franke.daniel@gmail.com>
1024 * lang.opt: Allow '-J<dir>' next to '-J <dir>',
1025 likewise '-I <dir>' and '-I<dir>'.
1027 2008-02-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1030 * Make-lang.in (f951): Add $(GMPLIBS).
1032 2008-02-05 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1035 * trans-common.c (build_field): Mark fields as volatile when needed.
1037 2008-02-05 Tobias Burnus <burnus@net-b.de>
1040 * data.c (gfc_assign_data_value): Only free "size" if
1041 it has not already been freed.
1043 2008-02-05 Paul Thomas <pault@gcc.gnu.org>
1046 * array.c (match_array_element_spec): Remove check for negative
1048 (gfc_resolve_array_spec): Add check for negative size.
1050 2008-02-05 Paul Thomas <pault@gcc.gnu.org>
1053 * data.c (gfc_assign_data_value): Add bounds check for array
1056 2008-02-04 Daniel Franke <franke.daniel@gmail.com>
1058 * resolve.c (resolve_where): Fix typo.
1059 (gfc_resolve_where_code_in_forall): Likewise.
1061 2008-02-03 Paul Thomas <pault@gcc.gnu.org>
1064 * resolve.c (resolve_allocate_deallocate): New function.
1065 (resolve_code): Call it for allocate and deallocate.
1066 * match.c (gfc_match_allocate, gfc_match_deallocate) : Remove
1067 the checking of the STAT tag and put in above new function.
1068 * primary,c (match_variable): Do not fix flavor of host
1069 associated symbols yet if the type is not known.
1071 2008-01-31 Paul Thomas <pault@gcc.gnu.org>
1074 * expr.c (gfc_check_assign): It is an error to assign
1075 to a sibling procedure.
1077 2008-01-30 Paul Thomas <pault@gcc.gnu.org>
1080 * symbol.c (gfc_delete_symtree, gfc_undo_symbols): Rename
1081 delete_symtree to gfc_delete_symtree.
1082 * gfortran.h : Add prototype for gfc_delete_symtree.
1083 * module.c (load_generic_interfaces): Transfer symbol to a
1084 unique symtree and delete old symtree, instead of renaming.
1085 (read_module): The rsym and the found symbol are the same, so
1086 the found symtree can be deleted.
1089 * decl.c (match_char_spec): Remove the constraint on deferred
1090 matching of functions and free the length expression.
1091 delete_symtree to gfc_delete_symtree.
1092 (gfc_match_type_spec): Whitespace.
1093 (gfc_match_function_decl): Defer characteristic association for
1094 all types except BT_UNKNOWN.
1095 * parse.c (decode_specification_statement): Only derived type
1096 function matching is delayed to the end of specification.
1098 2008-01-28 Tobias Burnus <burnus@net-b.de>
1101 * simplify.c (gfc_simplify_shape): Simplify rank zero arrays.
1103 2008-01-27 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1106 * array.c (gfc_check_constructor_type): Revert clearing the expression.
1108 2008-01-26 Tobias Burnus <burnus@net-b.de>
1111 * trans-expr.c (gfc_conv_function_call): Don't call
1112 gfc_add_interface_mapping if the expression is NULL.
1114 2008-01-26 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1117 * trans-array.c (gfc_trans_create_temp_array): Remove call to
1118 gcc_assert (integer_zerop (loop->from[n])).
1120 2008-01-25 Daniel Franke <franke.daniel@gmail.com>
1123 * resolve.c (resolve_where): Added check if user-defined assignment
1124 operator is an elemental subroutine.
1125 (gfc_resolve_where_code_in_forall): Likewise.
1127 2008-01-24 Daniel Franke <franke.daniel@gmail.com>
1131 * gfortran.h: Revert changes from 2008-01-17.
1132 * match.c: Likewise.
1133 * symbol.c: Likewise.
1134 (gfc_undo_symbols): Undo namespace changes related to common blocks.
1136 2008-01-24 Daniel Franke <franke.daniel@gmail.com>
1139 * data.c (formalize_structure_cons): Skip formalization on
1142 2008-01-24 Daniel Franke <franke.daniel@gmail.com>
1144 * gfortran.texi (OpenMP): Extended existing documentation.
1145 (contributors): Added major contributors of 2008 that were
1147 (proposed extensions): Removed implemented items.
1149 2008-01-24 Paul Thomas <pault@gcc.gnu.org>
1152 * parse.c (next_statement) : If ST_GET_FCN_CHARACTERISTICS is
1153 seen, check for a statement label and, if present, delete it
1154 and set the locus to the start of the statement.
1156 2008-01-22 Paul Thomas <pault@gcc.gnu.org>
1159 * trans-io.c (gfc_trans_transfer): If the array reference in a
1160 read has a vector subscript, use gfc_conv_subref_array_arg to
1161 copy back the temporary.
1163 2008-01-22 Tobias Burnus <burnus@net-b.de>
1166 * interface.c (compare_actual_formal): Fix adding type
1167 to missing_arg_type for absent optional arguments.
1169 2008-01-22 Tobias Burnus <burnus@net-b.de>
1172 * parse.c (parse_spec): Change = into ==.
1174 2008-01-22 Daniel Franke <franke.daniel@gmail.com>
1177 * expr.c (check_elemental): Fix check for valid data types.
1179 2008-01-22 Tobias Burnus <burnus@net-b.de>
1182 * scanner.c (load_line): Support <tab><digit> continuation lines.
1183 * invoke.texi (-Wtabs): Document this.
1185 2008-01-22 Paul Thomas <pault@gcc.gnu.org>
1188 * module.c (read_module): Set use_rename attribute.
1190 2007-01-21 Tobias Burnus <burnus@net-b.de>
1193 * interface.c (compare_parameter): Improved error message
1194 for arguments of same type and mismatched kinds.
1196 2008-01-20 Paul Thomas <pault@gcc.gnu.org>
1199 * resolve.c (resolve_entries): Do not do an array bounds check
1200 if the result symbols are the same.
1203 * module.c (read_module) : Hide the symtree of the previous
1204 version of the symbol if this symbol is renamed.
1206 2008-01-20 Paul Thomas <pault@gcc.gnu.org>
1209 * array.c (gfc_check_constructor_type): Clear the expression ts
1210 so that the checking starts from the deepest level of array
1212 * primary.c (match_varspec): If an unknown type is changed to
1213 default character and the attempt to match a substring fails,
1214 change it back to unknown.
1217 * trans-array.c (gfc_add_loop_ss_code) : If ss->string_length is
1218 NULL for an array constructor, use the cl.length expression to
1220 (gfc_conv_array_parameter): Change call to gfc_evaluate_now to
1223 2008-01-19 Thomas Koenig <tkoenig@gcc.gnu.org>
1227 * iresolve.c (gfc_resolve_all): Remove conversion of mask
1228 argument to kind=1 by removing call to resolve_mask_arg().
1229 (gfc_resolve_any): Likewise.
1231 2008-01-19 Tobias Burnus <burnus@net-b.de>
1234 * primary.c (match_variable): Handle FL_UNKNOWN without
1235 uneducated guessing.
1236 (match_variable): Improve error message.
1238 2008-01-18 Tobias Burnus <burnus@net-b.de>
1241 * interface.c (get_expr_storage_size): Return storage size
1242 for array element designators.
1243 (compare_actual_formal): Reject unequal string sizes for
1244 assumed-shape dummy arguments. And fix error message for
1245 array-sections with vector subscripts.
1247 2008-01-17 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1250 * simplify.c (is_constant_array_expr): New static function that returns
1251 true if the given expression is an array and is constant.
1252 (gfc_simplify_reshape): Use new function.
1254 2008-01-17 H.J. Lu <hongjiu.lu@intel.com>
1257 * symbol.c (free_common_tree): Renamed to ...
1258 (gfc_free_common_tree): This. Remove static.
1259 (gfc_free_namespace): Updated.
1261 * gfortran.h (gfc_free_common_tree): New.
1263 * match.c (gfc_match_common): Call gfc_free_common_tree () with
1264 gfc_current_ns->common_root and set gfc_current_ns->common_root
1265 to NULL on syntax error.
1267 2008-01-18 Richard Sandiford <rsandifo@nildram.co.uk>
1270 * trans-expr.c (gfc_conv_function_call): Use proper
1271 type for returned character pointers.
1273 2008-01-17 Paul Thomas <pault@gcc.gnu.org>
1278 * decl.c : Remove gfc_function_kind_locus and
1279 gfc_function_type_locus. Add gfc_matching_function.
1280 (match_char_length): If matching a function and the length
1281 does not match, return MATCH_YES and try again later.
1282 (gfc_match_kind_spec): The same.
1283 (match_char_kind): The same.
1284 (gfc_match_type_spec): The same for numeric and derived types.
1285 (match_prefix): Rename as gfc_match_prefix.
1286 (gfc_match_function_decl): Except for function valued character
1287 lengths, defer applying kind, type and charlen info until the
1288 end of specification block.
1289 gfortran.h (gfc_statement): Add ST_GET_FCN_CHARACTERISTICS.
1290 parse.c (decode_specification_statement): New function.
1291 (decode_statement): Call it when a function has kind = -1. Set
1292 and reset gfc_matching function, as function statement is being
1294 (match_deferred_characteristics): Simplify with a single call
1295 to gfc_match_prefix. Do appropriate error handling. In any
1296 case, make sure that kind = -1 is reset or corrected.
1297 (parse_spec): Call above on seeing ST_GET_FCN_CHARACTERISTICS.
1298 Throw an error if kind = -1 after last specification statement.
1299 parse.h : Prototype for gfc_match_prefix.
1301 2008-01-16 Tobias Burnus <burnus@net-b.de>
1304 * interface.c (compare_parameter): Allow AS_DEFERRED array
1305 elements and reject attr.pointer array elemenents.
1306 (get_expr_storage_size): Return storage size of elements of
1307 assumed-shape and pointer arrays.
1309 2008-01-15 Sebastian Pop <sebastian.pop@amd.com>
1311 * f95-lang.c (gfc_init_builtin_functions): Initialize GOMP builtins
1312 for flag_tree_parallelize_loops.
1314 2008-01-15 Thomas Koenig <tkoenig@gcc.gnu.org>
1317 * iresolve.c (gfc_resolve_all): Call resolve_mask_arg.
1318 (gfc_resolve_any): Likewise.
1319 (gfc_resolve_count): Likewise. Don't append kind of
1320 argument to function name.
1322 2008-01-13 Tobias Burnus <burnus@net-b.de>
1325 * resolve.c (resolve_actual_arglist): For expressions,
1326 also check for assume-sized arrays.
1327 * interface.c (compare_parameter): Move F2003 character checks
1328 here, print error messages here, reject elements of
1329 assumed-shape array as argument to dummy arrays.
1330 (compare_actual_formal): Update for the changes above.
1332 2008-01-13 Tobias Burnus <burnus@net-b.de>
1335 * decl.c (contained_procedure): Only check directly preceeding state.
1337 2008-01-13 Tobias Burnus <burnus@net-b.de>
1340 * check.c (gfc_check_shape): Accept array ranges of
1341 assumed-size arrays.
1343 2008-01-12 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1346 * match.c (gfc_match_name): Don't error if leading character is a '(',
1347 just return MATCH_NO.
1349 2008-01-11 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1352 * trans-io.c (create_dummy_iostat): Commit the symbol.
1354 2008-01-11 Paul Thomas <pault@gcc.gnu.org>
1357 * simplify.c (gfc_simplify_transfer): Return NULL if the size
1358 of the element is unavailable and only assign character length
1359 to the result, if 'mold' is constant.
1361 2008-01-10 Paul Thomas <pault@gcc.gnu.org>
1364 * trans-array.c (gfc_trans_array_ctor_element): Use gfc_trans_string_copy
1365 to assign strings and perform bounds checks on the string length.
1366 (get_array_ctor_strlen): Remove bounds checking.
1367 (gfc_trans_array_constructor): Initialize string length checking.
1368 * trans-array.h : Add prototype for gfc_trans_string_copy.
1370 2008-01-08 Richard Guenther <rguenther@suse.de>
1373 PR tree-optimization/34683
1374 * trans-types.c (gfc_get_array_type_bounds): Use an array type
1375 with known size for accesses if that is known.
1377 2008-01-08 Paul Thomas <pault@gcc.gnu.org>
1380 * expr.c (find_array_element): Check that the array bounds are
1381 constant before using them. Use lower, as well as upper bound.
1382 (check_restricted): Allow implied index variable.
1384 2008-01-08 Paul Thomas <pault@gcc.gnu.org>
1387 * trans_array.c (gfc_trans_deferred_array): Do not null the
1388 data pointer on entering scope, nor deallocate it on leaving
1389 scope, if the symbol has the 'save' attribute.
1392 * trans_decl.c (gfc_finish_var_decl): Derived types with
1393 allocatable components and an initializer must be TREE_STATIC.
1395 2008-01-07 Paul Thomas <pault@gcc.gnu.org>
1398 * module.c (write_generic): Rewrite completely.
1399 (write_module): Change call to write_generic.
1401 2008-01-06 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1404 * scanner.c (load_line): Do not count ' ' as printable when checking for
1407 2008-01-06 Paul Thomas <pault@gcc.gnu.org>
1410 * module.c (load_needed): If the namespace has no proc_name
1411 give it the module symbol.
1413 2008-01-06 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1416 * trans-expr.c (gfc_conv_missing_dummy): Use a temporary to type convert
1417 the dummy variable expression, test for NULL, and pass the variable
1418 address to the called function.
1420 2007-01-06 Tobias Burnus <burnus@net-b.de>
1423 * match.c (gfc_match_common): Remove blank common in
1425 * resolve.c (resolve_common_vars): New function.
1426 (resolve_common_blocks): Move checks to resolve_common_vars
1427 and invoke that function.
1428 (resolve_types): Call resolve_common_vars for blank commons.
1430 2008-01-06 Tobias Burnus <burnus@net-b.de>
1433 * resolve.c (resolve_equivalence_derived): Reject derived types with
1434 default initialization if equivalenced with COMMON variable.
1436 2008-01-06 Tobias Burnus <burnus@net-b.de>
1439 * io.c (check_io_constraints): Disallow unformatted I/O for
1442 2008-01-06 Tobias Burnus <burnus@net-b.de>
1445 * resolve.c (resolve_formal_arglist): Reject dummy procedure in
1446 ELEMENTAL functions.
1448 2008-01-06 Tobias Burnus <burnus@net-b.de>
1451 * interface.c (compare_actual_formal): Reject parameter
1452 actual to intent(out) dummy.
1454 2008-01-04 Tobias Burnus <burnus@net-b.de>
1457 * primary.c (match_varspec): Gobble whitespace before