1 2008-05-19 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
4 * trans-expr.c (gfc_conv_string_tmp): Pick the correct type for
5 the temporary variable.
7 2008-05-19 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
9 * simplify.c (gfc_simplify_dble, gfc_simplify_real): Initialize
10 result variable to avoid warnings.
12 2008-05-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
14 * intrinsic.c (char_conversions, ncharconv): New static variables.
15 (find_char_conv): New function.
16 (add_functions): Add simplification functions for ADJUSTL and
17 ADJUSTR. Don't check the kind of their argument. Add checking for
18 LGE, LLE, LGT and LLT.
19 (add_subroutines): Fix argument type for SLEEP. Fix argument name
21 (add_char_conversions): New function.
22 (gfc_intrinsic_init_1): Call add_char_conversions.
23 (gfc_intrinsic_done_1): Free char_conversions.
24 (check_arglist): Use kind == 0 as a signal that we don't want
25 the kind value to be checked.
26 (do_simplify): Also simplify character functions.
27 (gfc_convert_chartype): New function
28 * trans-array.c (gfc_trans_array_ctor_element): Don't force the
29 use of default character type.
30 (gfc_trans_array_constructor_value): Likewise.
31 (get_array_ctor_var_strlen): Use integer kind to build an integer
32 instead of a character kind!
33 (gfc_build_constant_array_constructor): Don't force the use of
34 default character type.
35 (gfc_conv_loop_setup): Likewise.
36 * trans-expr.c (gfc_conv_string_tmp): Don't force the use of
37 default character type. Allocate enough memory for wide strings.
38 (gfc_conv_concat_op): Make sure operand kind are the same.
39 (string_to_single_character): Remove gfc_ prefix. Reindent.
40 Don't force the use of default character type.
41 (gfc_conv_scalar_char_value): Likewise.
42 (gfc_build_compare_string): Call string_to_single_character.
43 (fill_with_spaces): New function
44 (gfc_trans_string_copy): Add kind arguments. Use them to deal
45 with wide character kinds.
46 (gfc_conv_statement_function): Whitespace fix. Call
47 gfc_trans_string_copy with new kind arguments.
48 (gfc_conv_substring_expr): Call gfc_build_wide_string_const
49 instead of using gfc_widechar_to_char.
50 (gfc_conv_string_parameter): Don't force the use of default
52 (gfc_trans_scalar_assign): Pass kind args to gfc_trans_string_copy.
53 * intrinsic.h (gfc_check_lge_lgt_lle_llt, gfc_convert_char_constant,
54 gfc_resolve_adjustl, gfc_resolve_adjustr): New prototypes.
55 * decl.c (gfc_set_constant_character_len): Don't assert the
56 existence of a single character kind.
57 * trans-array.h (gfc_trans_string_copy): New prototype.
58 * gfortran.h (gfc_check_character_range, gfc_convert_chartype):
60 * error.c (print_wide_char_into_buffer): New function lifting
61 code from gfc_print_wide_char. Fix order to output '\x??' instead
63 (gfc_print_wide_char): Call print_wide_char_into_buffer.
64 (show_locus): Call print_wide_char_into_buffer with buffer local
66 * trans-const.c (gfc_build_wide_string_const): New function.
67 (gfc_conv_string_init): Deal with wide characters strings
69 (gfc_conv_constant_to_tree): Call gfc_build_wide_string_const.
70 * trans-stmt.c (gfc_trans_label_assign): Likewise.
71 (gfc_trans_character_select): Deal with wide strings.
72 * expr.c (gfc_check_assign): Allow conversion between character
74 * trans-const.h (gfc_build_wide_string_const): New prototype.
75 * trans-types.c (gfc_get_character_type_len_for_eltype,
76 gfc_get_character_type_len): Create too variants of the old
77 gfc_get_character_type_len, one getting kind argument and the
78 other one directly taking a type tree.
79 * trans.h (gfor_fndecl_select_string_char4,
80 gfor_fndecl_convert_char1_to_char4,
81 gfor_fndecl_convert_char4_to_char1): New prototypes.
82 * trans-types.h (gfc_get_character_type_len_for_eltype): New
84 * resolve.c (resolve_operator): Exit early when kind mismatches
85 are detected, because that makes us issue an error message later.
86 (validate_case_label_expr): Fix wording of error message.
87 * iresolve.c (gfc_resolve_adjustl, gfc_resolve_adjustr): New
89 (gfc_resolve_pack): Call _char4 variants of library function
90 when dealing with wide characters.
91 (gfc_resolve_reshape): Likewise.
92 (gfc_resolve_spread): Likewise.
93 (gfc_resolve_transpose): Likewise.
94 (gfc_resolve_unpack): Likewise.
95 * target-memory.c (size_character): Take character kind bit size
96 correctly into account (not that it changes anything for now, but
98 (gfc_encode_character): Added gfc_ prefix. Encoding each
99 character of a string by calling native_encode_expr for the
100 corresponding unsigned integer.
101 (gfc_target_encode_expr): Add gfc_ prefix to encode_character.
102 * trans-decl.c (gfc_build_intrinsic_function_decls): Build
103 gfor_fndecl_select_string_char4, gfor_fndecl_convert_char1_to_char4
104 and gfor_fndecl_convert_char4_to_char1.
105 * target-memory.h (gfc_encode_character): New prototype.
106 * arith.c (gfc_check_character_range): New function.
107 (eval_intrinsic): Allow non-default character kinds.
108 * check.c (gfc_check_access_func): Only allow default
109 character kind arguments.
110 (gfc_check_chdir): Likewise.
111 (gfc_check_chdir_sub): Likewise.
112 (gfc_check_chmod): Likewise.
113 (gfc_check_chmod_sub): Likewise.
114 (gfc_check_lge_lgt_lle_llt): New function.
115 (gfc_check_link): Likewise.
116 (gfc_check_link_sub): Likewise.
117 (gfc_check_symlnk): Likewise.
118 (gfc_check_symlnk_sub): Likewise.
119 (gfc_check_rename): Likewise.
120 (gfc_check_rename_sub): Likewise.
121 (gfc_check_fgetputc_sub): Likewise.
122 (gfc_check_fgetput_sub): Likewise.
123 (gfc_check_stat): Likewise.
124 (gfc_check_stat_sub): Likewise.
125 (gfc_check_date_and_time): Likewise.
126 (gfc_check_ctime_sub): Likewise.
127 (gfc_check_fdate_sub): Likewise.
128 (gfc_check_gerror): Likewise.
129 (gfc_check_getcwd_sub): Likewise.
130 (gfc_check_getarg): Likewise.
131 (gfc_check_getlog): Likewise.
132 (gfc_check_hostnm): Likewise.
133 (gfc_check_hostnm_sub): Likewise.
134 (gfc_check_ttynam_sub): Likewise.
135 (gfc_check_perror): Likewise.
136 (gfc_check_unlink): Likewise.
137 (gfc_check_unlink_sub): Likewise.
138 (gfc_check_system_sub): Likewise.
139 * primary.c (got_delim): Perform correct character range checking
141 * trans-intrinsic.c (gfc_conv_intrinsic_conversion): Generate
142 calls to library functions convert_char4_to_char1 and
143 convert_char1_to_char4 for character conversions.
144 (gfc_conv_intrinsic_char): Allow all character kings.
145 (gfc_conv_intrinsic_strcmp): Fix whitespace.
146 (gfc_conv_intrinsic_repeat): Take care of all character kinds.
147 * intrinsic.texi: For all GNU intrinsics accepting character
148 arguments, mention that they're restricted to the default kind.
149 * simplify.c (simplify_achar_char): New function.
150 (gfc_simplify_achar, gfc_simplify_char): Call simplify_achar_char.
151 gfc_simplify_ichar): Don't error out for wide characters.
152 (gfc_convert_char_constant): New function.
154 2008-05-18 Steven G. Kargl <kargls@comcast.net>
157 * symbol.c (check_conflict): Issue errors for abuse of PUBLIC, PRIVATE,
159 * resolve.c (gfc_verify_binding_labels): Fix NULL pointer dereference.
161 2008-05-17 Tobias Burnus <burnus@net-b.de>
163 * intrinsic.texi: Correct description of GET_COMMAND_ARGUMENT
164 and GET_ENVIRONMENT_VARIABLE; fix keyword= name for GETENV,
165 GETLOG, GMTIME, HOSTNM, IRAND, ITIME, KILL.
166 Move LOG_GAMMA after LOG10.
168 2008-05-17 Tobias Burnus <burnus@net-b.de>
170 * intrinsic.c (add_functions): Change FLUSH(C) to FLUSH(UNIT).
171 * intrinsic.texi: Change INTEGER(*) to INTEGER; fix keyword= name for
172 ABS, ADJUSTL, AINT, ALLOCATED, ANINT, ASSOCIATED, C_ASSOCIATED,
173 CEILING, DBLE, DFLOAT, DOT_PRODUCT, DREAL, FLOAT, FLOOR, GET_COMMAND.
175 2008-05-16 Paul Thomas <pault@gcc.gnu.org>
179 * trans-stmt.c (gfc_trans_where): Tighten up the dependency
180 check for calling gfc_trans_where_3.
183 * trans-stmt.c (gfc_trans_where_2): Set the mask size to zero
184 if it is calculated to be negative.
187 * trans-stmt.c (gfc_trans_where_3, gfc_trans_where_assign): Set
188 ss->where for scalar right hand sides.
189 * trans-array.c (gfc_add_loop_ss_code): If ss->where is set do
190 not evaluate scalars outside the loop. Clean up whitespace.
191 * trans.h : Add a bitfield 'where' to gfc_ss.
193 2008-05-16 Tobias Burnus <burnus@net-b.de>
195 * libgfortran.h: Increase GFC_MAX_DIMENSIONS to 15.
196 * array.c (gfc_match_array_spec): Error with -std=f2003 if rank > 7.
198 2008-04-16 Daniel Kraft <d@domob.eu>
201 * gfortran.h: Added field "length_from_typespec" to gfc_charlength.
202 * aray.c (gfc_match_array_constructor): Added code to parse typespec.
203 (check_element_type, check_constructor_type, gfc_check_constructor_type):
204 Extended to support explicit typespec on constructor.
205 (gfc_resolve_character_array_constructor): Pad strings correctly for
206 explicit, constant character length.
207 * trans-array.c: New static global variable "typespec_chararray_ctor"
208 (gfc_trans_array_constructor): New code to support explicit but dynamic
211 2008-05-16 Jerry DeLisle <jvdelisle@gcc.gnu.org>
214 * decl.c (match_attr_spec): Check for matching pairs of parenthesis.
215 * expr.c (gfc_specification_expr): Supplement the error message with the
217 * resolve.c (gfc_resolve_index): Likewise.
218 * match.c (gfc_match_parens): Clarify error message with "at or before".
219 (gfc_match_do): Check for matching pairs of parenthesis.
221 2008-05-16 Tobias Burnus <burnus@net-b.de
223 * intrinsic.texi: Write Fortran 77/90/95 instead of F77/90/95;
224 add missing KIND argument to ACHAR and NINT; and state that
225 the KIND argument is a F2003 extension for ACHAR, COUNT, IACHAR,
226 ICHAR, INDEX, LBOUND, LEN, LEN_TRIM, SCAN, SIZE, UBOUND, VERIFY.
228 2008-05-16 Daniel Kraft <d@domob.eu>
230 * primary.c: New private structure "gfc_structure_ctor_component".
231 (gfc_free_structure_ctor_component): New helper function.
232 (gfc_match_structure_constructor): Extended largely to support named
233 arguments and default initialization for structure constructors.
235 2008-05-15 Steven G. Kargl <kargls@comcast.net>
237 * simplify.c (gfc_simplify_dble, gfc_simplify_float,
238 simplify_bound, gfc_simplify_nearest, gfc_simplify_real): Plug
239 possible memory leaks.
240 (gfc_simplify_reshape): Plug possible memory leaks and dereferencing
243 2008-05-15 Steven G. Kargl <kargls@comcast.net>
246 * simplify.c (gfc_simplify_int, gfc_simplify_intconv): Replaced hand
247 rolled integer conversion with gfc_int2int, gfc_real2int, and
249 (gfc_simplify_intconv): Renamed to simplify_intconv.
251 2008-05-15 Steven G. Kargl, <kargl@comcast.net>
252 * gfortran.dg/and_or_xor.f90: New test
254 * fortran/simplify.c (gfc_simplify_and, gfc_simplify_or,
255 gfc_simplify_xor): Don't range check logical results.
257 2008-05-15 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
259 * trans-expr.c (gfc_conv_concat_op): Take care of nondefault
261 (gfc_build_compare_string): Add kind argument and use it.
262 (gfc_conv_statement_function): Fix indentation.
263 * gfortran.h (gfc_character_info): New structure.
264 (gfc_character_kinds): New array.
265 * trans-types.c (gfc_character_kinds, gfc_character_types,
266 gfc_pcharacter_types): New array.
267 (gfc_init_kinds): Fill character kinds array.
268 (validate_character): Take care of nondefault character kinds.
269 (gfc_build_uint_type): New function.
270 (gfc_init_types): Take care of nondefault character kinds.
271 (gfc_get_char_type, gfc_get_pchar_type): New functions.
272 (gfc_get_character_type_len): Use gfc_get_char_type.
273 * trans.h (gfc_build_compare_string): Adjust prototype.
274 (gfor_fndecl_compare_string_char4, gfor_fndecl_concat_string_char4,
275 gfor_fndecl_string_len_trim_char4, gfor_fndecl_string_index_char4,
276 gfor_fndecl_string_scan_char4, gfor_fndecl_string_verify_char4,
277 gfor_fndecl_string_trim_char4, gfor_fndecl_string_minmax_char4,
278 gfor_fndecl_adjustl_char4, gfor_fndecl_adjustr_char4): New
280 * trans-types.h (gfc_get_char_type, gfc_get_pchar_type): New
282 * trans-decl.c (gfor_fndecl_compare_string_char4,
283 gfor_fndecl_string_len_trim_char4, gfor_fndecl_string_index_char4,
284 gfor_fndecl_string_scan_char4, gfor_fndecl_string_verify_char4,
285 gfor_fndecl_string_trim_char4, gfor_fndecl_string_minmax_char4,
286 gfor_fndecl_adjustl_char4, gfor_fndecl_adjustr_char4,
287 gfor_fndecl_concat_string_char4): New function decls.
288 (gfc_build_intrinsic_function_decls): Define new *_char4 function
290 * trans-intrinsic.c (gfc_conv_intrinsic_minmax_char,
291 gfc_conv_intrinsic_len_trim, gfc_conv_intrinsic_ichar,
292 gfc_conv_intrinsic_strcmp, gfc_conv_intrinsic_trim,
293 gfc_conv_intrinsic_function): Deal with nondefault character kinds.
295 2008-05-15 Sa Liu <saliu@de.ibm.com>
297 * iso-c-binding.def: Add standard parameter to macro NAMED_INTCST.
298 All existing NAMED_INTCST definitions has standard GFC_STD_F2003,
299 c_int128_t, c_int_least128_t and c_int_fast128_t are added as
301 * iso-fortran-evn.def: Add standard parameter GFC_STD_F2003
302 to macro NAMED_INTCST.
303 * symbol.c (std_for_isocbinding_symbol): New helper function to
304 return the standard that supports this isocbinding symbol.
305 (generate_isocbinding_symbol): Do not generate GNU extension symbols
306 if std=f2003. Add new parameter to NAMED_INTCST.
307 * module.c (use_iso_fortran_env_module): Add new parameter to
308 NAMED_INTCST and new field standard to struct intmod_sym.
309 * gfortran.h: Add new parameter to NAMED_INTCST.
310 * trans-types.c (init_c_interop_kinds): Add new parameter to
312 * intrinsic.texi: Documented new types C_INT128_T, C_INT_LEASE128_T
315 2008-05-14 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
318 * trans-decl.c (gfc_build_dummy_array_decl): Don't repack
319 arrays that have the TARGET attribute.
321 2008-05-14 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
324 * simplify.c (only_convert_cmplx_boz): New function.
325 (gfc_simplify_cmplx, gfc_simplify_complex, gfc_simplify_dcmplx):
326 Call only_convert_cmplx_boz.
328 2008-05-14 Paul Thomas <pault@gcc.gnu.org>
331 * interface.c (compare_actual_formal): Do not check sizes if the
332 actual is BT_PROCEDURE.
334 2008-05-14 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
337 * trans-array.c (gfc_conv_ss_startstride): Any negative size is
338 the same as zero size.
339 (gfc_conv_loop_setup): Fix size calculation.
341 2008-05-14 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
344 * trans-intrinsic.c (gfc_conv_intrinsic_bound): Correctly
345 handle zero-size sections.
347 2008-05-14 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
350 * scanner.c (preprocessor_line): Allocate enough memory for a
353 2008-05-12 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
356 * target-memory.c (gfc_target_expr_size): Correctly treat
358 (gfc_target_encode_expr): Likewise.
359 (gfc_interpret_complex): Whitespace change.
361 2008-05-11 Thomas Koenig <tkoenig@gcc.gnu.org>
364 * trans.c (gfc_call_malloc): If size equals zero, allocate one
365 byte; don't return a null pointer.
367 2008-05-10 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
370 * module.c (quote_string): Fix sprintf format.
372 2008-05-09 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
375 * module.c (quote_string, unquote_string,
376 mio_allocated_wide_string): New functions.
377 (mio_expr): Call mio_allocated_wide_string where needed.
379 2008-05-07 Kenneth Zadeck <zadeck@naturalbridge.com>
381 * trans-decl.c (gfc_get_extern_function_decl, build_function_decl):
382 Rename DECL_IS_PURE to DECL_PURE_P.
384 2008-05-06 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
386 * arith.c: (gfc_arith_concat, gfc_compare_string,
387 gfc_compare_with_Cstring, hollerith2representation,
388 gfc_hollerith2int, gfc_hollerith2real, gfc_hollerith2complex,
389 gfc_hollerith2character, gfc_hollerith2logical): Use wide
390 characters for character constants.
391 * data.c (create_character_intializer): Likewise.
392 * decl.c (gfc_set_constant_character_len): Likewise.
393 * dump-parse-tree.c (show_char_const): Correctly dump wide
395 error.c (print_wide_char): Rename into gfc_print_wide_char.
396 (show_locus): Adapt to new prototype of gfc_print_wide_char.
397 expr.c (free_expr0): Representation is now disjunct from
398 character string value, so we always free it.
399 (gfc_copy_expr, find_substring_ref, gfc_simplify_expr): Adapt
400 to wide character strings.
401 * gfortran.h (gfc_expr): Make value.character.string a wide string.
402 (gfc_wide_toupper, gfc_wide_strncasecmp, gfc_wide_memset,
403 gfc_widechar_to_char, gfc_char_to_widechar): New prototypes.
404 (gfc_get_wide_string): New macro.
405 (gfc_print_wide_char): New prototype.
406 * io.c (format_string): Make a wide string.
407 (next_char, gfc_match_format, compare_to_allowed_values,
408 gfc_match_open): Deal with wide strings.
409 * module.c (mio_expr): Convert between wide strings and ASCII ones.
410 * primary.c (match_hollerith_constant, match_charkind_name):
412 * resolve.c (build_default_init_expr): Likewise.
413 * scanner.c (gfc_wide_toupper, gfc_wide_memset,
414 gfc_char_to_widechar): New functions.
415 (wide_strchr, gfc_widechar_to_char, gfc_wide_strncasecmp):
416 Changes in prototypes.
417 (gfc_define_undef_line, load_line, preprocessor_line,
418 include_line, load_file, gfc_read_orig_filename): Handle wide
420 * simplify.c (gfc_simplify_achar, gfc_simplify_adjustl,
421 gfc_simplify_adjustr, gfc_simplify_char, gfc_simplify_iachar,
422 gfc_simplify_ichar, simplify_min_max, gfc_simplify_new_line,
423 gfc_simplify_repeat): Handle wide strings.
424 (wide_strspn, wide_strcspn): New helper functions.
425 (gfc_simplify_scan, gfc_simplify_trim, gfc_simplify_verify):
427 * symbol.c (generate_isocbinding_symbol): Likewise.
428 * target-memory.c (size_character, gfc_target_expr_size,
429 encode_character, gfc_target_encode_expr, gfc_interpret_character,
430 gfc_target_interpret_expr): Handle wide strings.
431 * trans-const.c (gfc_conv_string_init): Lower wide strings to
433 (gfc_conv_constant_to_tree): Likewise.
434 * trans-expr.c (gfc_conv_substring_expr): Handle wide strings.
435 * trans-io.c (gfc_new_nml_name_expr): Likewise.
436 * trans-stmt.c (gfc_trans_label_assign): Likewise.
438 2008-05-06 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
440 * simplify.c (gfc_simplify_bessel_j0,gfc_simplify_bessel_j1,
441 gfc_simplify_bessel_jn,gfc_simplify_bessel_y0,
442 gfc_simplify_bessel_y1,gfc_simplify_bessel_yn): Mark arguments
443 with ATTRIBUTE_UNUSED.
445 2008-05-06 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
447 * check.c (gfc_check_sizeof): Switch to ATTRIBUTE_UNUSED.
448 * simplify.c (gfc_simplify_lgamma): Likewise.
450 2008-05-06 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
452 * openmp.c (gfc_match_omp_eos): Use gfc_next_ascii_char and
454 * decl.c (gfc_match_kind_spec, gfc_match_type_spec,
455 gfc_match_implicit_none, match_implicit_range, gfc_match_implicit,
456 match_string_p, match_attr_spec, gfc_match_suffix,
457 match_procedure_decl, gfc_match_entry, gfc_match_subroutine):
459 * gfortran.h (gfc_char_t): New type.
460 (gfc_linebuf): Make line member a gfc_char_t.
461 (locus): Make nextc member a gfc_char_t.
462 (gfc_wide_is_printable, gfc_wide_is_digit, gfc_wide_fits_in_byte,
463 gfc_wide_tolower, gfc_wide_strlen, gfc_next_ascii_char,
464 gfc_peek_ascii_char, gfc_check_digit): New prototypes.
465 * error.c (print_wide_char): New function.
466 (show_locus): Use print_wide_char and gfc_wide_strlen.
467 * io.c (next_char): Use gfc_char_t type.
468 (match_io): Use gfc_peek_ascii_char and gfc_next_ascii_char.
469 * match.c (gfc_match_parens, gfc_match_eos,
470 gfc_match_small_literal_int, gfc_match_name, gfc_match_name_C,
471 gfc_match_intrinsic_op, gfc_match_char, gfc_match_return,
472 gfc_match_common): Likewise.
473 * match.h (gfc_match_special_char): Change prototype.
474 * parse.c (decode_specification_statement, decode_statement,
475 decode_omp_directive, next_free, next_fixed): Use
476 gfc_peek_ascii_char and gfc_next_ascii_char.
477 * primary.c (gfc_check_digit): Change name.
478 (match_digits, match_hollerith_constant, match_boz_constant,
479 match_real_constant, next_string_char, match_charkind_name,
480 match_string_constant, match_logical_constant_string,
481 match_complex_constant, match_actual_arg, match_varspec,
482 gfc_match_rvalue, match_variable): Use gfc_peek_ascii_char and
484 * scanner.c (gfc_wide_fits_in_byte, wide_is_ascii,
485 gfc_wide_is_printable, gfc_wide_tolower, gfc_wide_is_digit,
486 gfc_wide_is_digit, wide_atoi, gfc_wide_strlen, wide_strcpy,
487 wide_strchr, widechar_to_char, wide_strncmp, wide_strncasecmp,
488 gfc_next_ascii_char, gfc_peek_ascii_char):
490 (next_char, gfc_define_undef_line, skip_free_comments,
491 gfc_next_char_literal, gfc_next_char, gfc_peek_char,
492 gfc_error_recovery, load_line, preprocessor_line, include_line,
493 load_file, gfc_read_orig_filename): Use gfc_char_t for source
494 characters and the {gfc_,}wide_* functions to manipulate wide
497 2008-05-06 Tobias Burnus <burnus@net-b.de>
500 * intrinsic.c (add_functions): Call gfc_simplify_bessel_*.
501 * intrinsic.h: Add prototypes for gfc_simplify_bessel_*.
502 * simplify.c (gfc_simplify_bessel_j0,gfc_simplify_bessel_j1,
503 gfc_simplify_bessel_jn,gfc_simplify_bessel_y0,
504 gfc_simplify_bessel_y1,gfc_simplify_bessel_yn): New.
506 2008-05-03 Janus Weil <jaydub66@gmail.com>
508 * misc.c (gfc_clear_ts): Set interface to NULL.
510 2008-05-03 Jerry DeLisle <jvdelisle@gcc.gnu.org>
513 * gfortran.h: Add extra_comma pointer to gfc_dt structure. Add iokind to
514 gfc_expr value union. Add io_kind enum to here from io.c.
515 * io.c (gfc_free_dt): Free extra_comma.
516 (gfc_resolve_dt): If an extra comma was encountered and io_unit is type
517 BT_CHARACTER, resolve to format_expr and set default unit. Error if
518 io_kind is M_WRITE. (match_io): Match the extra comma and set new
519 pointer, extra_comma.
521 2008-05-01 Bud Davis <bdavis9659@sbcglobal.net>
524 * simplify.c (gfc_simplify_index): Check for direction argument
527 2008-05-01 Janus Weil <jaydub66@gmail.com>
529 * gfortran.h (struct gfc_symbol): Moving "interface" member to
530 gfc_typespec (plus fixing a small docu error).
531 * interface.c (gfc_procedure_use): Ditto.
532 * decl.c (match_procedure_decl): Ditto.
533 * resolve.c (resolve_specific_f0,
534 resolve_specific_f0, resolve_symbol): Ditto.
536 2008-04-30 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
538 * intrinsic.c (add_functions): Add SELECTED_CHAR_KIND intrinsic.
539 * intrinsic.h (gfc_check_selected_char_kind,
540 gfc_simplify_selected_char_kind): New prototypes.
541 * gfortran.h (gfc_isym_id): Add GFC_ISYM_SC_KIND.
542 * trans.h (gfor_fndecl_sc_kind): New function decl.
543 * trans-decl.c (gfor_fndecl_sc_kind): Build new decl.
544 * arith.c (gfc_compare_with_Cstring): New function.
545 * arith.h (gfc_compare_with_Cstring): New prototype.
546 * check.c (gfc_check_selected_char_kind): New function.
547 * primary.c (match_string_constant, match_kind_param): Mark
548 symbols used as literal constant kind param as referenced.
549 * trans-intrinsic.c (gfc_conv_intrinsic_sc_kind): New function.
550 (gfc_conv_intrinsic_function): Call gfc_conv_intrinsic_sc_kind.
551 * intrinsic.texi (SELECTED_CHAR_KIND): Document new intrinsic.
552 * simplify.c (gfc_simplify_selected_char_kind): New function.
554 2008-04-28 Paul Thomas <pault@gcc.gnu.org>
557 * module.c (find_symbol): Do not return a result for a symbol
558 that has been renamed in another module.
560 2008-04-26 George Helffrich <george@gcc.gnu.org>
564 * trans-common.c (create_common): Add decl to function
565 chain (if inside one) to preserve identifier scope in debug output.
567 2008-04-25 Jan Hubicka <jh@suse.cz>
569 * trans-decl.c (trans_function_start): Update.
571 2008-04-25 Tobias Burnus <burnus@net-b.de>
572 Daniel Franke <franke.daniel@gmail.com>
575 * gfortranspec.c (lang_specific_driver): Deprecate
576 -M option; fix ICE when "-M" is last argument and
578 * options.c (gfc_handle_module_path_options):
579 Use -J instead of -M in error messages.
580 * invoke.texi: Mark -M as depecated.
582 2008-04-23 Jerry DeLisle <jvdelisle@gcc.gnu.org>
583 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
586 * trans-instrinsic.c (gfc_conv_intrinsic_minmaxloc): Correctly adjust
589 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
591 * trans-expr.c (gfc_conv_structure): Don't set TREE_INVARIANT.
592 * trans-array.c (gfc_build_null_descriptor): Don't set TREE_INVARIANT.
593 (gfc_trans_array_constructor_value): Don't set TREE_INVARIANT.
594 (gfc_build_constant_array_constructor): Don't set TREE_INVARIANT.
595 (gfc_conv_array_initializer): Don't set TREE_INVARIANT.
596 * trans-common.c (get_init_field): Don't set TREE_INVARIANT.
597 (create_common): Don't set TREE_INVARIANT.
598 * trans-stmt.c (gfc_trans_character_select): Don't set TREE_INVARIANT.
599 * trans-decl.c (gfc_generate_function_code): Don't set TREE_INVARIANT.
601 2008-04-21 Steve Ellcey <sje@cup.hp.com>
603 * f95-lang.c (gfc_init_decl_processing): use ptr_mode instead of Pmode.
605 2008-04-21 Daniel Franke <franke.daniel@gmail.com>
608 * gfortranspec.c (lookup_option): Properly handle separated arguments
609 in -J option, print missing argument message when necessary.
611 2008-04-20 Jerry DeLisle <jvdelisle@gcc.gnu.org>
614 * scanner.c (skip_fixed_comments): Update continue_line when comment is
615 detected. (gfc_next_char_literal): Likewise.
617 2008-04-19 Paul Thomas <pault@gcc.gnu.org>
622 * trans_array.c (gfc_trans_array_constructor): Temporarily
623 realign loop, if loop->from is not zero, before creating
624 the temporary array and provide an offset.
627 * trans-decl.c (gfc_init_default_dt): Add gfc_ prefix to name
628 and allow for NULL body. Change all references from
629 init_default_dt to gfc_init_default_dt.
630 * trans.h : Add prototype for gfc_init_default_dt.
631 * trans-array.c (gfc_trans_deferred_vars): After nullification
632 call gfc_init_default_dt for derived types with allocatable
635 2008-04-18 Jerry DeLisle <jvdelisle@gcc.gnu.org>
638 * trans-common.c (create_common): Revert patch causing regression.
640 2008-04-16 Jerry DeLisle <jvdelisle@gcc.gnu.org>
643 * iresolve.c (gfc_resolve_eoshift): Check for NULL symtree in test for
644 optional argument attribute.
646 2008-04-16 Paul Thomas <pault@gcc.gnu.org>
649 * trans-intrinsic.c (gfc_conv_intrinsic_char): Even though KIND
650 is not used, the argument must be converted.
652 2008-04-16 Jakub Jelinek <jakub@redhat.com>
655 * f95-lang.c (gfc_init_builtin_functions): Make sure
656 BUILT_IN_SINCOS{,F,L} types aren't varargs.
658 2008-04-15 Paul Thomas <pault@gcc.gnu.org>
661 * expr.c (scalarize_intrinsic_call): Reorder identification of
662 array argument so that if one is not found a segfault does not
663 occur. Return FAILURE if all scalar arguments.
665 2008-04-13 Jerry DeLisle <jvdelisle@gcc.gnu.org>
666 Tobias Burnus <burnus@net-b.de>
669 * options.c (gfc_init_options): Set the default maximum continuation
670 lines to 255 for both free and fixed form source for warnings.
671 (gfc_handle_option): Set -std=f95 fixed form max continuations to 19 and
672 the -std=f95 free form max continuations to 39 for warnings.
673 * scanner.c (gfc_next_char_literal): Adjust the current_line number only
674 if it is less than the current locus.
676 2008-04-07 Jerry DeLisle <jvdelisle@gcc.gnu.org>
678 PR fortran/25829 28655
679 * io.c (io_tag): Add new tags for decimal, encoding, asynchronous,
680 round, sign, and id. (match_open_element): Match new tags.
681 (gfc_resolve_open): Resolve new tags. (gfc_match_open): Enable encoding
682 for DEFAULT only. Update error messages. (match_dt_element): Fix match
683 tag for asynchronous. Update error messages. (gfc_free_inquire): Free
684 new expressions. (match_inquire_element): Match new tags.
685 (gfc_match_inquire): Add constraint for ID and PENDING.
686 (gfc_resolve_inquire): Resolve new tags.
687 * trans-io.c (gfc_trans_inquire): Clean up whitespace and fix setting of
688 mask for ID parameter.
689 * ioparm.def: Fix order of parameters for pending, round, and sign.
690 NOTE: These must line up with the definitions in libgfortran/io/io.h. or
693 2008-04-06 Paul Thomas <pault@gcc.gnu.org>
696 * expr.c (scalarize_intrinsic_call): Identify which argument is
697 an array and use that as the template.
698 (check_init_expr): Remove tests that first argument is an array
699 in the call to scalarize_intrinsic_call.
701 2008-04-06 Tobias Schlüter <tobi@gcc.gnu.org>
704 * io.c (io_tag): Add field 'value'. Split 'spec' field in
706 (match_etag, match_vtag, match_ltag): Split parsing in two steps
707 to give better error messages.
709 2008-04-06 Tobias Burnus <burnus@net-b.de>
711 * io.c (check_io_constraints): Add constrains. ID= requires
712 asynchronous= and asynchronous= must be init expression.
714 2008-04-06 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
716 * f95-lang.c: Set LANG_HOOKS_NAME to "GNU Fortran".
718 2008-04-06 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
720 * dump-parse-tree.c: Use fprintf, fputs and fputc instead of
721 gfc_status and gfc_status_char. Remove gfc_ prefix of the gfc_show_*
722 functions and make them static. Add new gfc_dump_parse_tree
724 * gfortran.h (gfc_option_t): Rename verbose into dump_parse_tree.
725 (gfc_status, gfc_status_char): Delete prototypes.
726 * error.c (gfc_status, gfc_status_char): Remove functions.
727 * scanner.c (gfc_new_file): Use printf instead of gfc_status.
728 * options.c (gfc_init_options): Rename verbose into dump_parse_tree.
729 (gfc_handle_module_path_options): Use gfc_fatal_error instead of
731 (gfc_handle_option): Rename verbose into dump_parse_tree.
732 * parse.c (gfc_parse_file): Use gfc_dump_parse_tree.
734 2008-04-05 Jerry DeLisle <jvdelisle@gcc.gnu.org>
735 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
737 PR fortran/25829 28655
738 * dump-parse-tree.c (gfc_show_code_node): Show new I/O parameters.
739 * gfortran.h (gfc_statement): Add ST_WAIT enumerator.
740 (gfc_open): Add pointers for decimal, encoding, round, sign,
741 asynchronous. (gfc_inquire): Add pointers for asynchronous, decimal,
742 encoding, pending, round, sign, size, id.
743 (gfc_wait): New typedef struct. (gfc_dt): Add pointers for id, pos,
744 asynchronous, blank, decimal, delim, pad, round, sign.
745 (gfc_exec_op): Add EXEC_WAIT enumerator. (gfc_code): Add pointer for
746 wait. (gfc_free_wait), (gfc_resolve_wait): New function prototypes.
747 * trans-stmt.h (gfc_trans_wait): New function prototype.
748 * trans.c (gfc_trans_code): Add case for EXEC_WAIT.
749 * io.c (io_tag): Add new tags for DECIMAL, ENCODING, ROUND, SIGN,
750 ASYCHRONOUS, ID. (match_open_element): Add matchers for new tags.
751 (gfc_free_open): Free new pointers. (gfc_resolve_open): Resolve new
752 tags. (gfc_resolve_open): Remove comment around check for allowed
753 values and ASYNCHRONOUS, update it. Likewise for DECIMAL, ENCODING,
754 ROUND, and SIGN. (match_dt_element): Add matching for new tags.
755 (gfc_free_wait): New function. (gfc_resolve_wait): New function.
756 (match_wait_element): New function. (gfc_match_wait): New function.
757 * resolve.c (gfc_resolve_blocks): Add case for EXEC_WAIT.
758 (resolve_code): Add case for EXEC_WAIT.
759 * st.c (gfc_free_statement): Add case for EXEC_WAIT.
760 * trans-io.c (ioparam_type): Add IOPARM_ptype_wait. (gfc_st_parameter):
761 Add "wait" entry. (iocall): Add IOCALL_WAIT enumerator.
762 (gfc_build_io_library_fndecls): Add function declaration for st_wait.
763 (gfc_trans_open): Add mask bits for new I/O tags.
764 (gfc_trans_inquire): Add mask bits for new I/O tags.
765 (gfc_trans_wait): New translation function.
766 (build_dt): Add mask bits for new I/O tags.
767 * match.c (gfc_match_if) Add matcher for "wait".
768 * match.h (gfc_match_wait): Prototype for new function.
769 * ioparm.def: Add new I/O parameter definitions.
770 * parse.c (decode_statement): Add match for "wait" statement.
771 (next_statement): Add case for ST_WAIT. (gfc_ascii_statement): Same.
773 2008-04-03 Jakub Jelinek <jakub@redhat.com>
776 * openmp.c (resolve_omp_clauses): Diagnose if a clause symbol
779 2008-04-03 Tom Tromey <tromey@redhat.com>
781 * Make-lang.in (fortran_OBJS): New variable.
783 2008-04-03 Paolo Bonzini <bonzini@gnu.org>
785 * f95-lang.c (insert_block): Kill.
787 2008-04-01 George Helffrich <george@gcc.gnu.org>
789 PR fortran/35154, fortran/23057
790 * trans-common.c (create_common): Add decl to function
791 chain to preserve identifier scope in debug output.
793 2008-04-01 Joseph Myers <joseph@codesourcery.com>
795 * gfortran.texi: Include gpl_v3.texi instead of gpl.texi
796 * Make-lang.in (GFORTRAN_TEXI): Include gpl_v3.texi instead of
799 2008-03-30 Paul Thomas <pault@gcc.gnu.org>
802 * resolve.c (resolve_function, resolve_call): If the procedure
803 is elemental do not look for noncopying intrinsics.
805 2008-03-29 Paul Thomas <pault@gcc.gnu.org>
808 * trans-array.c (gfc_array_init_size): Set 'size' zero if
809 negative in one dimension.
812 * trans-expr.c (gfc_trans_string_copy): Only assign a char
813 directly if the lhs and rhs types are the same.
815 2008-03-28 Daniel Franke <franke.daniel@gmail.com>
816 Paul Richard Thomas <paul.richard.thomas@gmail.com>
819 * primary.c (match_variable): Improved matching of function
821 * resolve.c (resolve_allocate_deallocate): Removed checks if
822 the actual argument for STAT is a variable.
824 2008-03-28 Tobias Burnus <burnus@net-b.de>
826 * symbol.c (gfc_get_default_type): Fix error message; option
827 -fallow_leading_underscore should be -fallow-leading-underscore
829 2008-03-27 Jerry DeLisle <jvdelisle@gcc.gnu.org>
832 * iresolve.c (gfc_resolve_cshift): Check for NULL symtree in test for
833 optional argument attribute.
835 2008-03-27 Tom Tromey <tromey@redhat.com>
837 * Make-lang.in: Revert automatic dependency patch.
839 2008-03-25 Tom Tromey <tromey@redhat.com>
841 * Make-lang.in: Remove .o targets.
842 (fortran_OBJS): New variable.
843 (fortran/gfortranspec.o): Move to fortran/. Reduce to variable
845 (GFORTRAN_D_OBJS): Update.
846 (GFORTRAN_TRANS_DEPS): Remove.
848 2008-03-24 Paul Thomas <pault@gcc.gnu.org>
851 * resolve.c (resolve_structure_cons): It is an error to assign
852 NULL to anything other than a pointer or allocatable component.
855 * resolve.c (resolve_symbol): If the symbol is a derived type,
856 resolve the derived type. If the symbol is a derived type
857 function, ensure that the derived type is visible in the same
858 namespace as the function.
860 2008-03-23 Tobias Schlüter <tobi@gcc.gnu.org>
862 * trans.h: Use fold_build in build1_v, build2_v and build3_v
864 * trans-openmp.c (gfc_trans_omp_critical, gfc_trans_omp_single):
865 Don't use build2_v macro.
867 2008-03-19 Daniel Franke <franke.daniel@gmail.com>
870 * interface.c (gfc_procedure_use): Check for keyworded arguments in
871 procedures without explicit interfaces.
873 2008-03-16 Paul Thomas <pault@gcc.gnu.org>
876 * resolve.c (check_assumed_size_reference): Only visit the
877 first reference and look directly at the highest dimension.
879 2008-03-15 Jerry DeLisle <jvdelisle@gcc.gnu.org>
882 * trans-array.c (gfc_conv_array_index_offset): Remove unnecessary
885 2008-03-15 Daniel Franke <franke.daniel@gmail.com>
888 * resolve.c (resolve_branch): Less strict and pessimistic warning
891 2008-03-11 Paolo Bonzini <bonzini@gnu.org>
893 * f95-lang.c (LANG_HOOKS_CLEAR_BINDING_STACK): Delete.
894 (gfc_be_parse_file): Call clear_binding_stack from here.
895 (gfc_clear_binding_stack): Rename to clear_binding_stack.
897 2008-03-09 Paul Thomas <pault@gcc.gnu.org>
900 * module.c (mio_symtree_ref): After providing a symbol for a
901 missing equivalence member, resolve and NULL the fixups.
903 2008-03-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
905 * invoke.texi (Error and Warning Options): Document
908 2008-03-08 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
911 * trans-array.c (gfc_conv_ss_startstride): Fix the logic to avoid
912 checking bounds of absent optional arguments.
914 2008-03-06 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
917 * intrinsic.c (add_functions): Add simplification routines for
918 ERF, DERF, ERFC and DERFC.
919 * decl.c (gfc_match_suffix, gfc_match_subroutine): Change GNU
920 extensions into Fortran 2008 features.
921 * intrinsic.h (gfc_simplify_erf, gfc_simplify_erfc): New
923 * simplify.c (gfc_simplify_erf, gfc_simplify_erfc): New functions.
925 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
928 * intrinsic.c (add_functions): Modify intrinsics ACOSH, ASINH,
929 ATANH, ERF, ERFC and GAMMA. Add intrinsics BESSEL_{J,Y}{0,1,N},
930 ERFC_SCALED, LOG_GAMMA and HYPOT.
931 * intrinsic.h (gfc_check_hypot, gfc_simplify_hypot,
932 gfc_resolve_hypot): New prototypes.
933 * mathbuiltins.def: Add HYPOT builtin. Make complex versions of
934 ACOSH, ASINH and ATANH available.
935 * gfortran.h (GFC_ISYM_ERFC_SCALED, GFC_ISYM_HYPOT): New values.
936 * lang.opt: Add -std=f2008 option.
937 * libgfortran.h: Define GFC_STD_F2008.
938 * lang-specs.h: Add .f08 and .F08 file suffixes.
939 * iresolve.c (gfc_resolve_hypot): New function.
940 * parse.c (parse_contained): Allow empty CONTAINS for Fortran 2008.
941 * check.c (gfc_check_hypot): New function.
942 * trans-intrinsic.c (gfc_intrinsic_map): Define ERFC_SCALE builtin.
943 * options.c (set_default_std_flags): Allow Fortran 2008 by default.
944 (form_from_filename): Add .f08 suffix.
945 (gfc_handle_option): Handle -std=f2008 option.
946 * simplify.c (gfc_simplify_hypot): New function.
947 * gfortran.texi: Document Fortran 2008 status and file extensions.
948 * intrinsic.texi: Document new BESSEL_{J,Y}{0,1,N} intrinsics,
949 as well as HYPOT and ERFC_SCALED. Update documentation of ERF,
950 ERFC, GAMMA, LGAMMA, ASINH, ACOSH and ATANH.
951 * invoke.texi: Document the new -std=f2008 option.
953 2008-03-02 Jakub Jelinek <jakub@redhat.com>
955 * gfortranspec.c (lang_specific_driver): Update copyright notice
958 2008-02-29 Jerry DeLisle <jvdelisle@gcc.gnu.org>
961 * expr.c (find_array_element): Modify traversing the constructor to
962 avoid trying to access NULL memory pointed to by next for the
963 last element. (find_array_section): Exit while loop if cons->next is
965 * trans-expr.c (gfc_conv_scalar_char_value): Initialize gfc_typespec.
966 (gfc_conv_function_call): Same.
967 * decl.c (gfc_match_implicit): Same.
968 * trans-intrinsic.c (gfc_conv_intrinsic_sr_kind): Same.
970 2008-02-28 Daniel Franke <franke.daniel@gmail.com>
975 * lang.opt: Added -Wreturn-type.
976 * options.c (gfc_handle_option): Recognize -Wreturn-type.
977 * trans-decl.c (gfc_trans_deferred_vars): Emit warnings for funtions
978 where the result value is not set.
979 (gfc_generate_function_code): Likewise.
980 (generate_local_decl): Emit warnings for funtions whose RESULT
983 2008-02-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
986 * trans-expr.c (gfc_conv_variable): Don't build indirect
987 references when explicit interface is mandated.
988 * resolve.c (resolve_formal_arglist): Set attr.always_explicit
989 on the result symbol as well as the procedure symbol.
991 2008-02-27 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
994 * trans.h: Remove prototypes for gfor_fndecl_math_exponent4,
995 gfor_fndecl_math_exponent8, gfor_fndecl_math_exponent10 and
996 gfor_fndecl_math_exponent16.
997 * f95-lang.c (build_builtin_fntypes): Add new function types.
998 (gfc_init_builtin_functions): Add new builtins for nextafter,
999 frexp, ldexp, fabs, scalbn and inf.
1000 * iresolve.c (gfc_resolve_rrspacing): Don't add hidden arguments.
1001 (gfc_resolve_scale): Don't convert type of second argument.
1002 (gfc_resolve_set_exponent): Likewise.
1003 (gfc_resolve_size): Don't add hidden arguments.
1004 * trans-decl.c: Remove gfor_fndecl_math_exponent4,
1005 gfor_fndecl_math_exponent8, gfor_fndecl_math_exponent10 and
1006 gfor_fndecl_math_exponent16.
1007 * trans-intrinsic.c (gfc_intrinsic_map): Remove intrinsics
1008 for scalbn, fraction, nearest, rrspacing, set_exponent and
1010 (gfc_conv_intrinsic_exponent): Directly call frexp.
1011 (gfc_conv_intrinsic_fraction, gfc_conv_intrinsic_nearest,
1012 gfc_conv_intrinsic_spacing, gfc_conv_intrinsic_rrspacing,
1013 gfc_conv_intrinsic_scale, gfc_conv_intrinsic_set_exponent): New
1015 (gfc_conv_intrinsic_function): Use the new functions above.
1017 2008-02-26 Tobias Burnus <burnus@net-b.de>
1020 * interface.c (check_operator_interface): Show better line for error
1021 messages; fix constrains for user-defined assignment operators.
1022 (gfc_extend_assign): Fix constrains for user-defined assignment
1025 2008-02-26 Tom Tromey <tromey@redhat.com>
1027 * trans-io.c (set_error_locus): Remove old location code.
1028 * trans-decl.c (gfc_set_decl_location): Remove old location code.
1029 * f95-lang.c (gfc_init): Remove test of USE_MAPPED_LOCATION.
1030 * scanner.c (gfc_gobble_whitespace): Remove old location code.
1031 (get_file): Likewise.
1032 (preprocessor_line): Likewise.
1033 (load_file): Likewise.
1034 (gfc_new_file): Likewise.
1035 * trans.c (gfc_trans_runtime_check): Remove old location code.
1036 (gfc_get_backend_locus): Likewise.
1037 (gfc_set_backend_locus): Likewise.
1038 * data.c (gfc_assign_data_value): Remove old location code.
1039 * error.c (show_locus): Remove old location code.
1040 * gfortran.h (gfc_linebuf): Remove old location code.
1041 (gfc_linebuf_linenum): Remove old-location variant.
1043 2008-02-25 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1046 * trans-const.c (gfc_build_string_const): Don't call gettext.
1047 (gfc_build_localized_string_const): New function.
1048 * trans-const.h (gfc_build_localized_string_const): New prototype.
1049 * trans.c (gfc_trans_runtime_check): Use
1050 gfc_build_localized_string_const instead of gfc_build_string_const.
1051 (gfc_call_malloc): Likewise.
1052 (gfc_allocate_with_status): Likewise.
1053 (gfc_allocate_array_with_status): Likewise.
1054 (gfc_deallocate_with_status): Likewise.
1055 (gfc_call_realloc): Likewise.
1056 * trans-io.c (gfc_trans_io_runtime_check): Likewise.
1058 2008-02-24 Tobias Schlüter <tobi@gcc.gnu.org>
1060 * arith.c: Update copyright years.
1061 * arith.h: Likewise.
1062 * array.c: Likewise.
1064 * check.c: Likewise.
1068 * dependency.c: Likewise.
1069 * dependency.h: Likewise.
1070 * dump-parse-tree.c: Likewise.
1071 * error.c: Likewise.
1073 * gfc-internals.texi: Likewise.
1074 * gfortran.h: Likewise.
1075 * gfortran.texi: Likewise.
1076 * gfortranspec.c: Likewise.
1077 * interface.c: Likewise.
1078 * intrinsic.c: Likewise.
1079 * intrinsic.h: Likewise.
1080 * intrinsic.texi: Likewise.
1081 * invoke.texi: Likewise.
1083 * iresolve.c: Likewise.
1084 * iso-c-binding.def: Likewise.
1085 * iso-fortran-env.def: Likewise.
1086 * lang-specs.h: Likewise.
1087 * lang.opt: Likewise.
1088 * libgfortran.h: Likewise.
1089 * match.c: Likewise.
1090 * match.h: Likewise.
1091 * matchexp.c: Likewise.
1093 * module.c: Likewise.
1094 * openmp.c: Likewise.
1095 * options.c: Likewise.
1096 * parse.c: Likewise.
1097 * parse.h: Likewise.
1098 * primary.c: Likewise.
1099 * resolve.c: Likewise.
1100 * scanner.c: Likewise.
1101 * simplify.c: Likewise.
1103 * symbol.c: Likewise.
1104 * target-memory.c: Likewise.
1105 * target-memory.h: Likewise.
1106 * trans-array.h: Likewise.
1107 * trans-const.h: Likewise.
1108 * trans-stmt.h: Likewise.
1109 * trans-types.c: Likewise.
1110 * trans-types.h: Likewise.
1111 * types.def: Likewise.
1113 2008-02-24 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1116 * simplify.c (gfc_simplify_ibclr), (gfc_simplify_ibits),
1117 (gfc_simplify_ibset): Remove call to range_check.
1118 (simplify_cmplx), (gfc_simplify_dble), (gfc_simplify_float)
1119 (gfc_simplify_real): Add call gfc_clear_ts to initialize the
1120 temporary gfc_typspec variable.
1122 2008-02-24 Tobias Schlüter <tobi@gcc.gnu.org>
1124 * trans-array.c (gfc_conv_descriptor_data_get,
1125 gfc_conv_descriptor_data_set_internal,
1126 gfc_conv_descriptor_data_addr, gfc_conv_descriptor_offset,
1127 gfc_conv_descriptor_dtype, gfc_conv_descriptor_dimension,
1128 gfc_conv_descriptor_stride, gfc_conv_descriptor_lbound,
1129 gfc_conv_descriptor_ubound, gfc_trans_create_temp_array,
1130 gfc_conv_array_transpose, gfc_grow_array,
1131 gfc_trans_array_constructor_subarray,
1132 gfc_trans_array_constructor_value, gfc_trans_scalarized_loop_end,
1133 gfc_array_init_size, gfc_array_allocate, gfc_array_deallocate,
1134 gfc_conv_array_initializer, gfc_trans_array_bounds,
1135 gfc_trans_auto_array_allocation, gfc_trans_dummy_array_bias,
1136 gfc_get_dataptr_offset, gfc_conv_array_parameter,
1137 gfc_trans_dealloc_allocated, get_full_array_size,
1138 gfc_duplicate_allocatable, structure_alloc_comps): Use fold_buildN
1140 * trans-expr.c (gfc_conv_expr_present, gfc_conv_missing_dummy,
1141 gfc_conv_component_ref, gfc_conv_cst_int_power,
1142 gfc_conv_function_call, gfc_trans_structur_assign): Likewise.
1143 * trans-common.c (create_common): Likewise.
1144 * trans-openmp.c (gfc_trans_omp_atomic, gfc_trans_omp_do):
1146 * trans-const.c (gfc_conv_constant_to_tree): Likewise.
1147 * trans-stmt.c (gfc_trans_goto, gfc_trans_return, gfc_trans_do,
1148 gfc_trans_integer_select, gfc_trans_character_select,
1149 gfc_trans_forall_loop, compute_overall_iter_number,
1150 gfc_trans_forall_1, gfc_evaluate_where_mask, gfc_trans_allocate,
1151 gfc_trans_deallocate): Likewise.
1152 * trans.c (gfc_build_addr_expr, gfc_trans_runtime_check,
1153 gfc_allocate_with_status, gfc_allocate_array_with_status,
1154 gfc_deallocate_with_status): Likewise.
1155 * f95-lang.c (gfc_truthvalue_conversion): Likewise.
1156 * trans-io.c (set_parameter_const, set_parameter_value,
1157 set_parameter_ref, set_string, set_internal_unit, io_result,
1158 set_error_locus, nml_get_addr_expr, transfer_expr): Likewise.
1159 * trans-decl.c (gfc_build_qualified_array, build_entry_thunks,
1160 gfc_get_fake_result_decl, gfc_trans_auto_character_variable,
1161 gfc_generate_function_code): Likewise.
1162 * convert.c (convert): Likewise.
1163 * trans-intrinsic.c (gfc_conv_intrinsic_conversion,
1164 build_fixbound_expr, build_fix_expr, gfc_conv_intrinsic_aint,
1165 gfc_conv_intrinsic_int, gfc_conv_intrinsic_imagpart,
1166 gfc_conv_intrinsic_conjg, gfc_conv_intrinsic_abs,
1167 gfc_conv_intrinsic_cmplx, gfc_conv_intrinsic_mod,
1168 gfc_conv_intrinsic_dim, gfc_conv_intrinsic_dprod,
1169 gfc_conv_intrinsic_ctime, gfc_conv_intrinsic_fdate,
1170 gfc_conv_intrinsic_ttynam, gfc_conv_intrinsic_minmax,
1171 gfc_conv_intrinsic_minmax_char, gfc_conv_intrinsic_count,
1172 gfc_conv_intrinsic_arith, gfc_conv_intrinsic_dot_product,
1173 gfc_conv_intrinsic_minmaxloc, gfc_conv_intrinsic_minmaxval,
1174 gfc_conv_intrinsic_btest, gfc_conv_intrinsic_not,
1175 gfc_conv_intrinsic_ibits, gfc_conv_intrinsic_ishft,
1176 gfc_conv_intrinsic_ichar, gfc_conv_intrinsic_size,
1177 gfc_conv_intrinsic_array_transfer, gfc_conv_intrinsic_transfer,
1178 gfc_conv_allocated, gfc_conv_associated, gfc_conv_intrinsic_trim,
1179 gfc_conv_intrinsic_repeat): Likewise.
1181 2008-02-23 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1184 * trans-expr.c (gfc_conv_power_op): Use BUILT_IN_CPOW{F,,L}.
1185 * f95-lang.c (gfc_init_builtin_functions): Define BUILT_IN_CPOW{F,,L}.
1186 * trans.h (gfor_fndecl_math_cpow, gfor_fndecl_math_cpowf,
1187 gfor_fndecl_math_cpowl10, gfor_fndecl_math_cpowl16): Remove.
1188 * trans-decl.c: Likewise.
1190 2008-02-22 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1193 * expr.c (find_array_element): Modify traversing the constructor to
1194 avoid trying to access NULL memory pointed to by next for the
1195 last element. (find_array_section): Exit while loop if cons->next is
1198 2008-02-22 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1201 * iresolve.c (resolve_mask_arg): Add gfc_clear_ts to initialize
1203 (gfc_resolve_aint): Likewise.
1204 (gfc_resolve_anint): Likewise.
1205 (gfc_resolve_besn): Likewise.
1206 (gfc_resolve_cshift): Likewise.
1207 (gfc_resolve_ctime): Likewise.
1208 (gfc_resolve_eoshift): Likewise.
1209 (gfc_resolve_index_func): Likewise.
1210 (gfc_resolve_isatty): Likewise.
1211 (gfc_resolve_malloc): Likewise.
1212 (gfc_resolve_rrspacing): Likewise.
1213 (gfc_resolve_scale): Likewise.
1214 (gfc_resolve_set_exponent): Likewise.
1215 (gfc_resolve_spacing): Likewise.
1216 (gfc_resolve_spacing): Likewise.
1217 (gfc_resolve_fgetc): Likewise.
1218 (gfc_resolve_fputc): Likewise.
1219 (gfc_resolve_ftell): Likewise.
1220 (gfc_resolve_ttynam): Likewise.
1221 (gfc_resolve_alarm_sub): Likewise.
1222 (gfc_resolve_mvbits): Likewise.
1223 (gfc_resolve_getarg): Likewise.
1224 (gfc_resolve_signal_sub): Likewise.
1225 (gfc_resolve_exit): Likewise.
1226 (gfc_resolve_flush): Likewise.
1227 (gfc_resolve_free): Likewise.
1228 (gfc_resolve_ctime_sub): Likewise.
1229 (gfc_resolve_fgetc_sub): Likewise.
1230 (gfc_resolve_fputc_sub): Likewise.
1231 (gfc_resolve_fseek_sub): Likewise.
1232 (gfc_resolve_ftell_sub): Likewise.
1233 (gfc_resolve_ttynam_sub): Likewise.
1235 2008-02-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1237 * gfc-internals.texi: Fix typos and markup nits.
1238 * gfortran.texi: Likewise.
1239 * intrinsic.texi: Likewise.
1241 2008-02-21 Richard Guenther <rguenther@suse.de>
1243 * trans-expr.c (gfc_conv_expr_op): Expand INTRINSIC_PARENTHESES
1244 as unary PAREN_EXPR for real and complex typed expressions.
1245 (gfc_conv_unary_op): Fold the built tree.
1247 2008-02-20 Tobias Burnus <burnus@net-b.de>
1250 * match.c (gfc_match_name): Improve error message for '$'.
1252 2008-02-19 Daniel Franke <franke.daniel@gmail.com>
1255 * expr.c (gfc_check_pointer_assign): Add type and kind information
1256 to type-mismatch message.
1257 (gfc_check_assign): Unify error messages.
1259 2008-02-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1262 * gfortran.texi: Create new section for unimplemented extensions.
1263 Add "STRUCTURE and RECORD" and "ENCODE and DECODE statements".
1264 Remove "smaller projects" list. Fix a few typos.
1266 2008-02-15 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1268 * intrinsic.texi: Rename INDEX node to avoid clashing with
1269 index.html on case-insensitive systems.
1271 2008-02-15 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1274 * trans-expr.c (gfc_conv_function_call): Force evaluation of
1277 2008-02-10 Daniel Franke <franke.daniel@gmail.com>
1280 * lang.opt: Allow '-J<dir>' next to '-J <dir>',
1281 likewise '-I <dir>' and '-I<dir>'.
1283 2008-02-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1286 * Make-lang.in (f951): Add $(GMPLIBS).
1288 2008-02-05 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1291 * trans-common.c (build_field): Mark fields as volatile when needed.
1293 2008-02-05 Tobias Burnus <burnus@net-b.de>
1296 * data.c (gfc_assign_data_value): Only free "size" if
1297 it has not already been freed.
1299 2008-02-05 Paul Thomas <pault@gcc.gnu.org>
1302 * array.c (match_array_element_spec): Remove check for negative
1304 (gfc_resolve_array_spec): Add check for negative size.
1306 2008-02-05 Paul Thomas <pault@gcc.gnu.org>
1309 * data.c (gfc_assign_data_value): Add bounds check for array
1312 2008-02-04 Daniel Franke <franke.daniel@gmail.com>
1314 * resolve.c (resolve_where): Fix typo.
1315 (gfc_resolve_where_code_in_forall): Likewise.
1317 2008-02-03 Paul Thomas <pault@gcc.gnu.org>
1320 * resolve.c (resolve_allocate_deallocate): New function.
1321 (resolve_code): Call it for allocate and deallocate.
1322 * match.c (gfc_match_allocate, gfc_match_deallocate) : Remove
1323 the checking of the STAT tag and put in above new function.
1324 * primary,c (match_variable): Do not fix flavor of host
1325 associated symbols yet if the type is not known.
1327 2008-01-31 Paul Thomas <pault@gcc.gnu.org>
1330 * expr.c (gfc_check_assign): It is an error to assign
1331 to a sibling procedure.
1333 2008-01-30 Paul Thomas <pault@gcc.gnu.org>
1336 * symbol.c (gfc_delete_symtree, gfc_undo_symbols): Rename
1337 delete_symtree to gfc_delete_symtree.
1338 * gfortran.h : Add prototype for gfc_delete_symtree.
1339 * module.c (load_generic_interfaces): Transfer symbol to a
1340 unique symtree and delete old symtree, instead of renaming.
1341 (read_module): The rsym and the found symbol are the same, so
1342 the found symtree can be deleted.
1345 * decl.c (match_char_spec): Remove the constraint on deferred
1346 matching of functions and free the length expression.
1347 delete_symtree to gfc_delete_symtree.
1348 (gfc_match_type_spec): Whitespace.
1349 (gfc_match_function_decl): Defer characteristic association for
1350 all types except BT_UNKNOWN.
1351 * parse.c (decode_specification_statement): Only derived type
1352 function matching is delayed to the end of specification.
1354 2008-01-28 Tobias Burnus <burnus@net-b.de>
1357 * simplify.c (gfc_simplify_shape): Simplify rank zero arrays.
1359 2008-01-27 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1362 * array.c (gfc_check_constructor_type): Revert clearing the expression.
1364 2008-01-26 Tobias Burnus <burnus@net-b.de>
1367 * trans-expr.c (gfc_conv_function_call): Don't call
1368 gfc_add_interface_mapping if the expression is NULL.
1370 2008-01-26 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1373 * trans-array.c (gfc_trans_create_temp_array): Remove call to
1374 gcc_assert (integer_zerop (loop->from[n])).
1376 2008-01-25 Daniel Franke <franke.daniel@gmail.com>
1379 * resolve.c (resolve_where): Added check if user-defined assignment
1380 operator is an elemental subroutine.
1381 (gfc_resolve_where_code_in_forall): Likewise.
1383 2008-01-24 Daniel Franke <franke.daniel@gmail.com>
1387 * gfortran.h: Revert changes from 2008-01-17.
1388 * match.c: Likewise.
1389 * symbol.c: Likewise.
1390 (gfc_undo_symbols): Undo namespace changes related to common blocks.
1392 2008-01-24 Daniel Franke <franke.daniel@gmail.com>
1395 * data.c (formalize_structure_cons): Skip formalization on
1398 2008-01-24 Daniel Franke <franke.daniel@gmail.com>
1400 * gfortran.texi (OpenMP): Extended existing documentation.
1401 (contributors): Added major contributors of 2008 that were
1403 (proposed extensions): Removed implemented items.
1405 2008-01-24 Paul Thomas <pault@gcc.gnu.org>
1408 * parse.c (next_statement) : If ST_GET_FCN_CHARACTERISTICS is
1409 seen, check for a statement label and, if present, delete it
1410 and set the locus to the start of the statement.
1412 2008-01-22 Paul Thomas <pault@gcc.gnu.org>
1415 * trans-io.c (gfc_trans_transfer): If the array reference in a
1416 read has a vector subscript, use gfc_conv_subref_array_arg to
1417 copy back the temporary.
1419 2008-01-22 Tobias Burnus <burnus@net-b.de>
1422 * interface.c (compare_actual_formal): Fix adding type
1423 to missing_arg_type for absent optional arguments.
1425 2008-01-22 Tobias Burnus <burnus@net-b.de>
1428 * parse.c (parse_spec): Change = into ==.
1430 2008-01-22 Daniel Franke <franke.daniel@gmail.com>
1433 * expr.c (check_elemental): Fix check for valid data types.
1435 2008-01-22 Tobias Burnus <burnus@net-b.de>
1438 * scanner.c (load_line): Support <tab><digit> continuation lines.
1439 * invoke.texi (-Wtabs): Document this.
1441 2008-01-22 Paul Thomas <pault@gcc.gnu.org>
1444 * module.c (read_module): Set use_rename attribute.
1446 2007-01-21 Tobias Burnus <burnus@net-b.de>
1449 * interface.c (compare_parameter): Improved error message
1450 for arguments of same type and mismatched kinds.
1452 2008-01-20 Paul Thomas <pault@gcc.gnu.org>
1455 * resolve.c (resolve_entries): Do not do an array bounds check
1456 if the result symbols are the same.
1459 * module.c (read_module) : Hide the symtree of the previous
1460 version of the symbol if this symbol is renamed.
1462 2008-01-20 Paul Thomas <pault@gcc.gnu.org>
1465 * array.c (gfc_check_constructor_type): Clear the expression ts
1466 so that the checking starts from the deepest level of array
1468 * primary.c (match_varspec): If an unknown type is changed to
1469 default character and the attempt to match a substring fails,
1470 change it back to unknown.
1473 * trans-array.c (gfc_add_loop_ss_code) : If ss->string_length is
1474 NULL for an array constructor, use the cl.length expression to
1476 (gfc_conv_array_parameter): Change call to gfc_evaluate_now to
1479 2008-01-19 Thomas Koenig <tkoenig@gcc.gnu.org>
1483 * iresolve.c (gfc_resolve_all): Remove conversion of mask
1484 argument to kind=1 by removing call to resolve_mask_arg().
1485 (gfc_resolve_any): Likewise.
1487 2008-01-19 Tobias Burnus <burnus@net-b.de>
1490 * primary.c (match_variable): Handle FL_UNKNOWN without
1491 uneducated guessing.
1492 (match_variable): Improve error message.
1494 2008-01-18 Tobias Burnus <burnus@net-b.de>
1497 * interface.c (get_expr_storage_size): Return storage size
1498 for array element designators.
1499 (compare_actual_formal): Reject unequal string sizes for
1500 assumed-shape dummy arguments. And fix error message for
1501 array-sections with vector subscripts.
1503 2008-01-17 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1506 * simplify.c (is_constant_array_expr): New static function that returns
1507 true if the given expression is an array and is constant.
1508 (gfc_simplify_reshape): Use new function.
1510 2008-01-17 H.J. Lu <hongjiu.lu@intel.com>
1513 * symbol.c (free_common_tree): Renamed to ...
1514 (gfc_free_common_tree): This. Remove static.
1515 (gfc_free_namespace): Updated.
1517 * gfortran.h (gfc_free_common_tree): New.
1519 * match.c (gfc_match_common): Call gfc_free_common_tree () with
1520 gfc_current_ns->common_root and set gfc_current_ns->common_root
1521 to NULL on syntax error.
1523 2008-01-18 Richard Sandiford <rsandifo@nildram.co.uk>
1526 * trans-expr.c (gfc_conv_function_call): Use proper
1527 type for returned character pointers.
1529 2008-01-17 Paul Thomas <pault@gcc.gnu.org>
1534 * decl.c : Remove gfc_function_kind_locus and
1535 gfc_function_type_locus. Add gfc_matching_function.
1536 (match_char_length): If matching a function and the length
1537 does not match, return MATCH_YES and try again later.
1538 (gfc_match_kind_spec): The same.
1539 (match_char_kind): The same.
1540 (gfc_match_type_spec): The same for numeric and derived types.
1541 (match_prefix): Rename as gfc_match_prefix.
1542 (gfc_match_function_decl): Except for function valued character
1543 lengths, defer applying kind, type and charlen info until the
1544 end of specification block.
1545 gfortran.h (gfc_statement): Add ST_GET_FCN_CHARACTERISTICS.
1546 parse.c (decode_specification_statement): New function.
1547 (decode_statement): Call it when a function has kind = -1. Set
1548 and reset gfc_matching function, as function statement is being
1550 (match_deferred_characteristics): Simplify with a single call
1551 to gfc_match_prefix. Do appropriate error handling. In any
1552 case, make sure that kind = -1 is reset or corrected.
1553 (parse_spec): Call above on seeing ST_GET_FCN_CHARACTERISTICS.
1554 Throw an error if kind = -1 after last specification statement.
1555 parse.h : Prototype for gfc_match_prefix.
1557 2008-01-16 Tobias Burnus <burnus@net-b.de>
1560 * interface.c (compare_parameter): Allow AS_DEFERRED array
1561 elements and reject attr.pointer array elemenents.
1562 (get_expr_storage_size): Return storage size of elements of
1563 assumed-shape and pointer arrays.
1565 2008-01-15 Sebastian Pop <sebastian.pop@amd.com>
1567 * f95-lang.c (gfc_init_builtin_functions): Initialize GOMP builtins
1568 for flag_tree_parallelize_loops.
1570 2008-01-15 Thomas Koenig <tkoenig@gcc.gnu.org>
1573 * iresolve.c (gfc_resolve_all): Call resolve_mask_arg.
1574 (gfc_resolve_any): Likewise.
1575 (gfc_resolve_count): Likewise. Don't append kind of
1576 argument to function name.
1578 2008-01-13 Tobias Burnus <burnus@net-b.de>
1581 * resolve.c (resolve_actual_arglist): For expressions,
1582 also check for assume-sized arrays.
1583 * interface.c (compare_parameter): Move F2003 character checks
1584 here, print error messages here, reject elements of
1585 assumed-shape array as argument to dummy arrays.
1586 (compare_actual_formal): Update for the changes above.
1588 2008-01-13 Tobias Burnus <burnus@net-b.de>
1591 * decl.c (contained_procedure): Only check directly preceeding state.
1593 2008-01-13 Tobias Burnus <burnus@net-b.de>
1596 * check.c (gfc_check_shape): Accept array ranges of
1597 assumed-size arrays.
1599 2008-01-12 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1602 * match.c (gfc_match_name): Don't error if leading character is a '(',
1603 just return MATCH_NO.
1605 2008-01-11 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1608 * trans-io.c (create_dummy_iostat): Commit the symbol.
1610 2008-01-11 Paul Thomas <pault@gcc.gnu.org>
1613 * simplify.c (gfc_simplify_transfer): Return NULL if the size
1614 of the element is unavailable and only assign character length
1615 to the result, if 'mold' is constant.
1617 2008-01-10 Paul Thomas <pault@gcc.gnu.org>
1620 * trans-array.c (gfc_trans_array_ctor_element): Use gfc_trans_string_copy
1621 to assign strings and perform bounds checks on the string length.
1622 (get_array_ctor_strlen): Remove bounds checking.
1623 (gfc_trans_array_constructor): Initialize string length checking.
1624 * trans-array.h : Add prototype for gfc_trans_string_copy.
1626 2008-01-08 Richard Guenther <rguenther@suse.de>
1629 PR tree-optimization/34683
1630 * trans-types.c (gfc_get_array_type_bounds): Use an array type
1631 with known size for accesses if that is known.
1633 2008-01-08 Paul Thomas <pault@gcc.gnu.org>
1636 * expr.c (find_array_element): Check that the array bounds are
1637 constant before using them. Use lower, as well as upper bound.
1638 (check_restricted): Allow implied index variable.
1640 2008-01-08 Paul Thomas <pault@gcc.gnu.org>
1643 * trans_array.c (gfc_trans_deferred_array): Do not null the
1644 data pointer on entering scope, nor deallocate it on leaving
1645 scope, if the symbol has the 'save' attribute.
1648 * trans_decl.c (gfc_finish_var_decl): Derived types with
1649 allocatable components and an initializer must be TREE_STATIC.
1651 2008-01-07 Paul Thomas <pault@gcc.gnu.org>
1654 * module.c (write_generic): Rewrite completely.
1655 (write_module): Change call to write_generic.
1657 2008-01-06 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1660 * scanner.c (load_line): Do not count ' ' as printable when checking for
1663 2008-01-06 Paul Thomas <pault@gcc.gnu.org>
1666 * module.c (load_needed): If the namespace has no proc_name
1667 give it the module symbol.
1669 2008-01-06 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1672 * trans-expr.c (gfc_conv_missing_dummy): Use a temporary to type convert
1673 the dummy variable expression, test for NULL, and pass the variable
1674 address to the called function.
1676 2007-01-06 Tobias Burnus <burnus@net-b.de>
1679 * match.c (gfc_match_common): Remove blank common in
1681 * resolve.c (resolve_common_vars): New function.
1682 (resolve_common_blocks): Move checks to resolve_common_vars
1683 and invoke that function.
1684 (resolve_types): Call resolve_common_vars for blank commons.
1686 2008-01-06 Tobias Burnus <burnus@net-b.de>
1689 * resolve.c (resolve_equivalence_derived): Reject derived types with
1690 default initialization if equivalenced with COMMON variable.
1692 2008-01-06 Tobias Burnus <burnus@net-b.de>
1695 * io.c (check_io_constraints): Disallow unformatted I/O for
1698 2008-01-06 Tobias Burnus <burnus@net-b.de>
1701 * resolve.c (resolve_formal_arglist): Reject dummy procedure in
1702 ELEMENTAL functions.
1704 2008-01-06 Tobias Burnus <burnus@net-b.de>
1707 * interface.c (compare_actual_formal): Reject parameter
1708 actual to intent(out) dummy.
1710 2008-01-04 Tobias Burnus <burnus@net-b.de>
1713 * primary.c (match_varspec): Gobble whitespace before