* ChangeLog: Correct PR number.
[gcc.git] / gcc / fortran / ChangeLog
1 2007-08-06 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
2
3 PR fortran/30948
4 * intrinsic.c (add_functions): Fix name of argument to CHDIR.
5
6 2007-08-06 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
7
8 PR fortran/30933
9 * iresolve.c (gfc_resolve_exit): Convert argument to default
10 integer kind.
11
12 2007-08-06 Daniel Franke <franke.daniel@gmail.com>
13
14 * resolve.c (derived_pointer): Removed, replaced callers by access
15 to appropiate attribute bit.
16 (derived_inaccessable): Shortcut recursion depth.
17 (resolve_fl_namelist): Fixed checks for private components in namelists.
18
19 2007-08-06 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
20
21 PR fortran/29828
22 * trans.h (gfor_fndecl_string_minmax): New prototype.
23 * trans-decl.c (gfor_fndecl_string_minmax): New variable.
24 (gfc_build_intrinsic_function_decls): Create gfor_fndecl_string_minmax.
25 * check.c (gfc_check_min_max): Allow for character arguments.
26 * trans-intrinsic.c (gfc_conv_intrinsic_minmax_char): New function.
27 (gfc_conv_intrinsic_function): Add special case for MIN and MAX
28 intrinsics with character arguments.
29 * simplify.c (simplify_min_max): Add simplification for character
30 arguments.
31
32 2007-08-06 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
33
34 PR fortran/31612
35 * invoke.texi: Adjust documentation for option -fsyntax-only.
36
37 2007-08-05 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
38 Tobias Burnus <burnus@gcc.gnu.org>
39
40 PR fortran/32979
41 * intrinsic.h (gfc_check_isnan): Add prototype.
42 * gfortran.h (gfc_isym_id): Add GFC_ISYM_ISNAN.
43 * intrinsic.c (add_functions): Add ISNAN intrinsic.
44 * check.c (gfc_check_isnan): New function.
45 * trans-intrinsic.c (gfc_conv_intrinsic_isnan): New function.
46 (gfc_conv_intrinsic_function): Call gfc_conv_intrinsic_isnan
47 to translate ISNAN.
48 * intrinsic.texi: Document ISNAN.
49
50 2007-08-04 Paul Thomas <pault@gcc.gnu.org>
51
52 PR fortran/31214
53 * symbol.c (get_unique_symtree): Moved from module.c.
54 * module.c (get_unique_symtree): Moved to symbol.c.
55 * decl.c (get_proc_name): Transfer the typespec from the local
56 symbol to the module symbol, in the case that an entry is also
57 a module procedure. Ensure the local symbol is cleaned up by
58 pointing to it with a unique symtree.
59
60 * dump_parse_tree (gfc_show_code_node): Add EXEC_ASSIGN_CALL.
61
62 2008-08-04 Steven G. Kargl <kargl@gcc.gnu.org>
63
64 PR fortran/32969
65 * iresolve.c (gfc_resolve_rrspacing): Convert argument(s) to
66 expected KIND.
67 (gfc_resolve_scale): Ditto.
68 (gfc_resolve_set_exponent): Ditto.
69 (gfc_resolve_spacing): Ditto.
70
71 PR fortran/32968
72 * trans-intrinsic.c (gfc_conv_intrinsic_si_kind,
73 gfc_conv_intrinsic_sr_kind): Convert the argument(s) to the
74 expected KIND, and fold the result to the expected KIND.
75
76 2007-08-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
77
78 PR fortran/31202
79 * f95-lang.c (gfc_init_builtin_functions): Defin builtins for
80 lround{f,,l} and llround{f,,l}.
81 * trans-intrinsic.c (build_fix_expr): Generate calls to the
82 {l,}round{f,,l} functions.
83
84 2007-08-01 Thomas Koenig <tkoenig@gcc.gnu.org>
85
86 PR libfortran/32954
87 * intrinsic.c (resolve_mask_arg): New function.
88 (gfc_resolve_maxloc): Use resolve_mask_arg for mask resolution.
89 (gfc_resolve_maxval): Likewise.
90 (gfc_resolve_minloc): Likewise.
91 (gfc_resolve_minval): Likewise.
92 (gfc_resolve_pack): Likewise.
93 (gfc_resolve_product): Likewise.
94 (gfc_resolve_sum): Likewise.
95 (gfc_resolve_unpack): Likewise.
96
97 2007-08-01 Tobias Burnus <burnus@net-b.de>
98
99 PR fortran/32936
100 * match.c (gfc_match_allocate): Better check that STAT is
101 a variable.
102
103 * check.c (gfc_check_allocated): Reorder checks to improve
104 error message.
105
106 2007-08-01 Nick Clifton <nickc@redhat.com>
107
108 * arith.c: Change copyright header to refer to version 3 of the
109 GNU General Public License and to point readers at the COPYING3
110 file and the FSF's license web page.
111 * openmp.c, interface.c, intrinsic.c, trans-array.c, trans-expr.c,
112 symbol.c, iso-fortran-env.def, intrinsic.h, decl.c, trans-array.h,
113 matchexp.c, dump-parse-tree.c, trans-common.c, array.c,
114 Make-lang.in, trans-openmp.c, gfortran.h, error.c,
115 iso-c-binding.def, lang.opt, data.c, trans-const.c, trans-stmt.c,
116 expr.c, trans-const.h, trans-stmt.h, module.c, trans.c, scanner.c,
117 trans-types.c, trans.h, gfortranspec.c, trans-types.h,
118 lang-specs.h, io.c, bbt.c, resolve.c, f95-lang.c, st.c,
119 iresolve.c, match.c, trans-decl.c, trans-io.c, target-memory.c,
120 match.h, target-memory.h, parse.c, arith.h, check.c, dependency.c,
121 parse.h, types.def, convert.c, dependency.h, primary.c,
122 trans-intrinsic.c, options.c, misc.c, simplify.c: Likewise.
123
124 2007-08-01 Daniel Franke <franke.daniel@gmail.com>
125
126 * trans-decl.c (generate_local_decl): Emit warning on unused parameter
127 on "-Wall -Wextra" or "-Wunused-parameter" but not on "-Wall", changed
128 messages that start with lower case to upper case.
129 * invoke.texi (-Wparameter-unused): Document differences between gcc
130 and gfortran regarding this option.
131
132 2007-08-01 Daniel Franke <franke.daniel@gmail.com>
133
134 PR fortran/32945
135 * expr.c (check_specification_function): Skip check if no symtree
136 is available.
137
138 2007-08-01 Paul Thomas <pault@gcc.gnu.org>
139
140 PR fortran/31609
141 * resolve.c (resolve_entries): Entries declared to be module
142 procedures must point to the function namespace.
143
144 2007-07-31 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
145
146 PR fortran/32938
147 * trans-stmt.c (gfc_trans_return): Convert to correct type.
148
149 2007-07-31 Steven G. Kargl <kargl@gcc.gnu.org>
150
151 PR fortran/32942
152 * trans-intrinsic.c (gfc_conv_intrinsic_exponent): Convert to correct
153 type.
154
155 2007-07-29 Jerry DeLisle <jvdelisle@gcc.gnu.org>
156
157 * invoke.texi: Document -fsign-zero flag.
158
159 2007-07-29 Paul Thomas <pault@gcc.gnu.org>
160
161 PR fortran/31211
162 * trans-expr.c (gfc_conv_expr_reference): Add block for case of
163 scalar pointer functions so that NULL result is correctly
164 handled.
165
166 PR fortran/32682
167 * trans-array.c (gfc_trans_array_constructor): On detecting a
168 multi-dimensional parameter array, set the loop limits.
169
170 2007-07-29 Daniel Franke <franke.daniel@gmail.com>
171
172 PR fortran/32906
173 * resolve.c (resolve_fl_parameter): Check for constant shape arrays,
174 adjusted error message.
175
176 2007-07-29 Daniel Franke <franke.daniel@gmail.com>
177
178 * invoke.texi: Removed -w from option summary.
179
180 2007-07-29 Daniel Franke <franke.daniel@gmail.com>
181
182 PR fortran/32879
183 * intrinsic.texi (IRAND, RAND, RANDOM_NUMBER): Document algorithm
184 used for random number generator.
185
186 2007-07-28 Kazu Hirata <kazu@codesourcery.com>
187
188 * gfortran.h, interface.c, resolve.c, symbol.c: Fix comment
189 typos.
190 * intrinsic.texi, invoke.texi: Fix typos.
191
192 2007-07-28 Jerry DeLisle <jvdelisle@gcc.gnu.org>
193
194 PR fortran/31609
195 * resolve.c (generic_sym): Check for a same symbol and if so, return to
196 avoid infinite recursion.
197
198 2007-07-28 Daniel Franke <franke.daniel@gmail.com>
199
200 PR fortran/31818
201 PR fortran/32876
202 PR fortran/32905
203 * gfortran.h (symbol_attribute): Added bits for pointer_comp,
204 private_comp.
205 * parse.c (parse_derived): Set pointer_comp/private_comp bits if
206 the derived type ultimately contains pointer components or private
207 components.
208 * module.c (ab_attribute): New values AB_POINTER_COMP, AB_PRIVATE_COMP.
209 (attr_bits): Added names for new ab_attributes.
210 (mio_symbol_attribute): Save/restore new attribute bits in modules.
211 * match.c (gfc_match_namelist): Removed check for namelist objects
212 of assumed shape.
213 * resolve.c (resolve_fl_namelist): Added check for pointer or
214 private components in nested types. Added check for namelist objects
215 of assumed shape.
216
217 2007-07-28 Paul Thomas <pault@gcc.gnu.org>
218
219 PR fortran/32880
220 * trans-expr.c (gfc_trans_scalar_assign): Revert to fixed order
221 for lse and rse pre expressions, for derived types with
222 allocatable components. Instead, assign the lhs to a temporary
223 and deallocate after the assignment.
224
225 2007-07-28 Janne Blomqvist <jb@gcc.gnu.org>
226
227 PR fortran/32909
228 * trans-stmt.c (gfc_trans_character_select): Replace occurrences
229 of gfc_c_int_type_node with integer_type_node.
230 * trans-decl.c (gfc_build_intrinsic_function_decls): Likewise.
231 (gfc_build_builtin_function_decls): Likewise.
232 (gfc_generate_function_code): Likewise.
233 * trans-io.c (gfc_build_io_library_fndecls): Likewise.
234
235 2007-07-27 Janne Blomqvist <jb@gcc.gnu.org>
236
237 * trans-decl.c (gfc_build_builtin_function_decls): Use existing
238 gfc_array_index_type rather than creating another typenode for
239 gfc_index_integer_kind.
240
241 2007-07-27 Janne Blomqvist <jb@gcc.gnu.org>
242
243 * trans-io.c (gfc_build_io_library_fndecls): Change to use
244 gfc_array_index_type for array descriptor triplets instead of
245 gfc_int4_type_node.
246
247 2007-07-26 Steven G. Kargl <kargl@gcc.gnu.org>
248
249 PR fortran/32899
250 * resolve.c (resolve_operator): Add INTRINSIC_EQ_OS comparison.
251
252 2007-07-27 Jerry DeLisle <jvdelisle@gcc.gnu.org>
253 Daniel Franke <franke.daniel@gmail.com>
254
255 PR fortran/32760
256 * primary.c (match_variable): Do not call gfc_add_flavor if symbol has
257 attribute of ACCESS_PUBLIC or ACCESS_PRIVATE already marked.
258
259 2007-07-27 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
260
261 PR fortran/32035
262 * trans-stmt.c (gfc_trans_character_select): Replace the
263 mechanism with labels by a SWITCH_EXPR.
264 * trans-decl.c (gfc_build_builtin_function_decls): Change
265 return type for select_string.
266
267 2007-07-27 Paul Thomas <pault@gcc.gnu.org>
268
269 PR fortran/32903
270 * trans-decl.c (gfc_trans_deferred_vars): Set intent(out)
271 derived types as referenced, if they have the the default
272 initializer set.
273
274 2007-07-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
275
276 * gfortran.h (generate_isocbinding_symbol): Constify.
277 * symbol.c (gen_special_c_interop_ptr, gen_cptr_param,
278 generate_isocbinding_symbol): Likewise.
279
280 2007-07-24 Paul Thomas <pault@gcc.gnu.org>
281
282 PR fortran/31205
283 PR fortran/32842
284 * trans-expr.c (gfc_conv_function_call): Remove the default
285 initialization of intent(out) derived types.
286 * symbol.c (gfc_lval_expr_from_sym): New function.
287 * matchexp.c (gfc_get_parentheses): Return argument, if it is
288 character and posseses a ref.
289 * gfortran.h : Add prototype for gfc_lval_expr_from_sym.
290 * resolve.c (has_default_initializer): Move higher up in file.
291 (resolve_code): On detecting an interface assignment, check
292 if the rhs and the lhs are the same symbol. If this is so,
293 enclose the rhs in parenetheses to generate a temporary and
294 prevent any possible aliasing.
295 (apply_default_init): Remove code making the lval and call
296 gfc_lval_expr_from_sym instead.
297 (resolve_operator): Give a parentheses expression a type-
298 spec if it has no type.
299 * trans-decl.c (gfc_trans_deferred_vars): Apply the a default
300 initializer, if any, to an intent(out) derived type, using
301 gfc_lval_expr_from_sym and gfc_trans_assignment. Check if
302 the dummy is present.
303
304 2007-07-24 Daniel Franke <franke.daniel@gmail.com>
305
306 PR fortran/32867
307 * expr.c (check_init_expr): Simplify matched functions.
308
309 2007-07-24 Daniel Franke <franke.daniel@gmail.com>
310
311 PR fortran/32778
312 * intrinsic.c (add_sym): Do not exclude any symbols, even if not part
313 of the selected standard.
314 (make generic): Likewise.
315 (make alias): Likewise, set standard the alias belongs to.
316 (add_subroutines): Call make_noreturn unconditionally.
317 (check_intrinsic_standard): Change return value to try.
318 (gfc_intrinsic_func_interface): Check return value of above function.
319 (gfc_intrinsic_sub_interface): Likewise.
320
321 2007-07-24 Thomas Koenig <tkoenig@gcc.gnu.org>
322
323 PR fortran/30814
324 * trans-decl.c (generate_function_code): Add argument
325 for flag_bounds_check to the array for set_options.
326 * invoke.texi (-fbounds-check): Document new libarary run-time
327 behaviour.
328
329 2007-07-23 Daniel Franke <franke.daniel@gmail.com>
330
331 PR fortran/25104
332 PR fortran/31639
333 * expr.c (check_transformational): Reject valid transformational
334 intrinsics to avoid ICE.
335 (check_inquiry): Report error for assumed character lengths for
336 all supported standards.
337 (check_init_expr): Whitespace fix.
338
339 2007-07-23 Christopher D. Rickett <crickett@lanl.gov>
340
341 PR fortran/32797
342 PR fortran/32800
343 * decl.c (verify_bind_c_sym): Use the result symbol for functions
344 with a result clause. Warn if implicitly typed. Verify the type
345 and rank of the SHAPE argument, if given.
346 * resolve.c (gfc_iso_c_sub_interface): Use gfc_procedure_use to
347 check the actual args against the formal, sorting them if
348 necessary.
349 * symbol.c (gen_shape_param): Initialize type of SHAPE param to
350 BT_VOID.
351
352 2007-07-23 Christopher D. Rickett <crickett@lanl.gov>
353
354 PR fortran/32732
355 * trans-decl.c (generate_local_decl): Convert the TREE_TYPE for by
356 value character dummy args of BIND(C) procedures.
357 * trans-expr.c (gfc_conv_variable): Do not build address
358 expression for BT_CHARACTER dummy args.
359
360 2007-07-23 Christopher D. Rickett <crickett@lanl.gov>
361 Tobias Burnus <burnus@net-b.de>
362
363 PR fortran/32600
364 * trans-expr.c (gfc_conv_function_call): Handle c_funloc.
365 * trans-types.c: Add pfunc_type_node.
366 (gfc_init_types,gfc_typenode_for_spec): Use it.
367 * resolve.c (gfc_iso_c_func_interface): Fix whitespace and
368 improve error message.
369
370 2007-07-22 Daniel Franke <franke.daniel@gmail.com>
371
372 PR fortran/32710
373 * parse.c (gfc_fixup_sibling_symbols): No replacement of symbols if
374 the current is a namelist.
375
376 2007-07-22 Daniel Franke <franke.daniel@gmail.com>
377
378 PR fortran/29962
379 PR fortran/31253
380 PR fortran/31265
381 PR fortran/31639
382 * gfortran.h (gfc_intrinsic_sym): Changed members elemental, pure,
383 generic, specific, actual_ok, noreturn into bits of a bitfield,
384 added bits for inquiry, transformational, conversion.
385 * check.c (non_init_transformational): Removed, removed all callers.
386 * intrinsic.c (enum class): New.
387 (add_sym*): Replaced argument elemetal by enum class. Changed all
388 callers.
389 (add_functions): Assign appropriate classes to intrinsic functions.
390 (add_subroutines): Assign appropriate classes to intrinsic subroutines.
391 (add_conv): Set conversion attribute.
392 (gfc_init_expr_extensions): Removed, removed all callers.
393 (gfc_intrinsic_func_interface): Reimplemented check for non-standard
394 initializatione expressions.
395 * expr.c (check_specification_function): New.
396 (gfc_is_constant_expr): Added check for specification functions.
397 (check_init_expr_arguments): New.
398 (check_inquiry): Changed return value to MATCH, added checks for
399 inquiry functions defined by F2003.
400 (check_transformational): New.
401 (check_null): New.
402 (check_elemental): New.
403 (check_conversion): New.
404 (check_init_expr): Call new check functions, add more specific error
405 messages.
406
407 2007-07-21 Christopher D. Rickett <crickett@lanl.gov>
408
409 PR fortran/32627
410 * resolve.c (set_name_and_label): Set kind number for character
411 version of c_f_pointer.
412 (gfc_iso_c_sub_interface): Set the kind of the SHAPE formal arg to
413 that of the actual SHAPE arg.
414 * symbol.c (gen_shape_param): Initialize kind for SHAPE arg.
415
416 2007-07-21 Christopher D. Rickett <crickett@lanl.gov>
417
418 PR fortran/32801
419 * symbol.c (generate_isocbinding_symbol): Remove unnecessary
420 conditional.
421
422 PR fortran/32804
423 * resolve.c (gfc_iso_c_func_interface): Reject assumed-shape and
424 deferred-shape arrays as args to C_LOC. Fix bug in testing
425 character args to C_LOC.
426
427 2007-07-21 Lee Millward <lee.millward@gmail.com>
428
429 PR fortran/32823
430 * trans-intrinsic.c (gfc_conv_intrinsic_int): Evaluate all
431 arguments passed, not just the first one. Adjust code to
432 refer to "args[0]" instead of "arg" as a result.
433
434 2007-07-19 Christopher D. Rickett <crickett@lanl.gov>
435
436 PR fortran/32600
437 * trans-expr.c (gfc_conv_function_call): Inline C_LOC.
438
439 2007-07-18 Christopher D. Rickett <crickett@lanl.gov>
440
441 PR fortran/32801
442 * symbol.c (generate_isocbinding_symbol): Fix bug where
443 ISOCBINDING_FUNPTR was generated for C_LOC instead of the needed
444 ISOCBINDING_PTR.
445
446 2007-07-17 Janus Weil <jaydub66@gmail.com>
447
448 PR fortran/32535
449 * resolve.c (resolve_fl_namelist): Check for namelist private
450 components in contained subprograms.
451
452 2007-07-17 Paul Thomas <pault@gcc.gnu.org>
453
454 PR fortran/31320
455 PR fortran/32665
456 * trans-expr.c (gfc_trans_subcomponent_assign): Ensure that
457 renormalization unity base is done independently of existing
458 lbound value.
459 (gfc_trans_scalar_assign): If rhs is not a variable, put
460 lse->pre after rse->pre to ensure that de-allocation of lhs
461 occurs after evaluation of rhs.
462
463 2007-07-16 Lee Millward <lee.millward@gmail.com>
464
465 PR fortran/32222
466 PR fortran/32238
467 PR fortran/32242
468 * trans-intrinsic.c (gfc_conv_intrinsic_function_args): Adjust
469 to operate on a stack allocated array for the intrinsic arguments
470 instead of creating a TREE_LIST. Add two new parameters for the
471 array and the number of elements. Update all callers to allocate
472 an array of the correct length to pass in. Update comment.
473 (gfc_intrinsic_argument_list_length): New function.
474 (gfc_conv_intrinsic_conversion): Call it.
475 (gfc_conv_intrinsic_mnimax): Likewise.
476 (gfc_conv_intrinsic_merge): Likewise.
477 (gfc_conv_intrinsic_lib_function): Call it. Use new CALL_EXPR
478 constructors.
479 (gfc_conv_intrinsic_cmplx): Likewise.
480 (gfc_conv_intrinsic_ctime): Likewise.
481 (gfc_covn_intrinsic_fdate): Likewise.
482 (gfc_conv_intrinsic_ttynam): Likewise.
483 (gfc_conv_intrinsic_ishftc): Likewise.
484 (gfc_conv_intrinsic_index): Likewise.
485 (gfc_conv_intrinsic_scan): Likewise.
486 (gfc_conv_intrinsic_verify): Likewise.
487 (gfc_conv_intrinsic_trim): Likewise.
488 (gfc_conv_intrinsic_aint): Use new CALL_EXPR constructors.
489 (gfc_conv_intrinsic_exponent): Likewise.
490 (gfc_conv_intrinsic_bound): Likewise.
491 (gfc_conv_intrinsic_abs): Likewise.
492 (gfc_conv_intrinsic_mod): Likewise.
493 (gfc_conv_intrinsic_sign): Likewise.
494 (gfc_conv_intrinsic_len): Likewise.
495 (gfc_conv_intrinsic_adjust): Likewise.
496 (gfc_conv_intrinsic_si_kind): Likewise.
497
498 2007-07-16 Janne Blomqvist <jb@gcc.gnu.org>
499
500 PR fortran/32748
501 * trans-decl.c (gfc_build_builtin_function_decls): Remove
502 DECL_IS_MALLOC attribute from internal_realloc, thus reverting
503 part of my 2007-07-03 patch.
504
505 2007-07-15 Jerry DeLisle <jvdelisle@gcc.gnu.org>
506 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
507
508 PR fortran/32611
509 * gfortran.h (gfc_option_t): Add flag_sign_zero field.
510 * lang.opt (-fsign-zero): New option.
511 * trans.h: Rename gfor_fndecl_set_std into gfor_fndecl_set_options.
512 * trans-decl.c (gfc_build_builtin_function_decls): Build the function
513 declaration to pass an array containing the options to be used by the
514 runtime library. (gfc_generate_function_code): Build an array that
515 contains option values to be passed to the runtime library and the call
516 to the function.
517 * options.c (gfc_init_options): Initialize the flag_sign_zero field.
518 (gfc_handle_option): Handle the -fsign-zero option.
519
520 2007-07-15 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
521
522 PR fortran/32036
523 * trans-array.c (gfc_conv_array_ref): Only evaluate index once.
524
525 2007-07-15 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
526
527 PR fortran/32357
528 * iresolve.c (gfc_resolve_mvbits): Convert FROMPOS, LEN and TOPOS
529 to C int.
530
531 2007-07-14 Thomas Koenig <tkoenig@gcc.gnu.org>
532
533 PR libfortran/32731
534 * iresolve.c(gfc_resolve_pack): A scalar mask has
535 to be kind=4, an array mask with kind<4 is converted
536 to gfc_default_logical_kind automatically.
537 (gfc_resolve_unpack): Convert mask to gfc_default_lotical_kind
538 if it has a kind<4.
539
540 2007-07-14 Paul Thomas <pault@gcc.gnu.org>
541
542 PR fortran/32724
543 * parse.c (parse_spec): Emit error on unexpected statement
544 function.
545
546 2007-07-13 Daniel Franke <franke.daniel@gmail.com>
547
548 * invoke.texi: Unified upper- and lower-case in menus.
549 (-w, -W): Removed, documented by gcc.
550 * intrinsic.texi: Unified Class-section entries, added
551 subroutine/function warning where appropiate.
552
553 2007-07-12 Daniel Franke <franke.daniel@gmail.com>
554
555 PR fortran/31639
556 * decl.c (gfc_match_suffix): Removed surplus general error that hides
557 a more specific message.
558 * resolve.c (resolve_fl_variable): Reject illegal initializiers only
559 if not already done.
560 (resolve_fl_procedure): Added check for initializers of functions.
561
562 2007-07-12 Daniel Franke <franke.daniel@gmail.com>
563
564 PR fortran/32704
565 * invoke.texi (-static-libgfortran): Document new option.
566
567 2007-07-12 Paul Thomas <pault@gcc.gnu.org>
568
569 PR fortran/32634
570 PR fortran/32727
571 * module.c (write_generic): Restore patch of 2007-07-10 and use
572 symbol name if there are no use names.
573
574 2007-07-12 Christopher D. Rickett <crickett@lanl.gov>
575
576 PR fortran/32599
577 * decl.c (verify_c_interop_param): Require character string dummy
578 args to BIND(C) procedures to have length 1.
579 * resolve.c (resolve_fl_procedure): Modify parameter checking for
580 BIND(C) procedures.
581
582 PR fortran/32601
583 * resolve.c (gfc_iso_c_func_interface): Verify that a valid
584 expression is given as an argument to C_LOC and C_ASSOCIATED.
585 * trans-io.c (transfer_expr): Add argument for code block. Add
586 standards check to determine if an error message should be
587 reported for printing C_PTR or C_FUNPTR.
588 (transfer_array_component): Update arguments to transfer_expr.
589 (gfc_trans_transfer): Ditto.
590
591 * symbol.c (gen_cptr_param): Fix whitespace.
592
593 2007-07-12 Jakub Jelinek <jakub@redhat.com>
594
595 PR fortran/32550
596 * trans.h (GFC_POINTER_TYPE_P): Define.
597 * trans-types.c (gfc_sym_type): Set it for types on attr->sym.pointer.
598 * trans-openmp.c (gfc_omp_privatize_by_reference): Return false
599 if GFC_POINTER_TYPE_P is set on the type.
600
601 2007-07-12 Richard Guenther <rguenther@suse.de>
602
603 * trans-intrinsic.c (gfc_conv_intrinsic_repeat): Convert
604 arguments to gfc_charlen_type_node.
605 * trans-io.c (gfc_convert_array_to_string): Convert type
606 size to gfc_array_index_type.
607
608 2007-07-12 Daniel Franke <franke.daniel@gmail.com>
609
610 PR fortran/32634
611 PR fortran/32727
612 * module.c: Reverted Paul's patch from 2007-07-10.
613
614 2007-07-11 Richard Guenther <rguenther@suse.de>
615
616 * trans-array.c (gfc_conv_array_parameter): Use correct
617 types for comparison.
618 * trans-intrinsic.c (gfc_conv_intrinsic_repeat): Use
619 correct types for POINTER_PLUS_EXPR.
620 * trans-stmt.c (gfc_trans_forall_loop): Use correct type
621 for integer one constant.
622
623 2007-07-10 Paul Thomas <pault@gcc.gnu.org>
624
625 PR fortran/32157
626 * resolve.c (is_external_proc): New function. Adds test that
627 the symbol is not an intrinsic procedure.
628 * (resolve_function, resolve_call): Replace logical statements
629 with call to is_external_proc.
630
631 PR fortran/32689
632 * simplify.c (gfc_simplify_transfer): If mold has rank, the
633 result is an array.
634
635 PR fortran/32634
636 * module.c (write_generic): Write the local name of the
637 interface.
638
639 2007-07-09 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
640
641 PR fortran/29459
642 * trans-array.c (gfc_trans_array_constructor): Mark offset field
643 with TREE_NO_WARNING.
644 * trans-decl.c (gfc_build_qualified_array): Mark lbound, ubound,
645 stride and size variables with TREE_NO_WARNING.
646
647 2007-07-09 Steven G. Kargl <kargl@gcc.gnu.org>
648
649 * trans-decl.c (set_tree_decl_type_code): Remove function.
650 (generate_local_decl): Remove reference to set_tree_decl_type_code.
651
652 2007-07-09 Daniel Franke <franke.daniel@gmail.com>
653
654 PR fortran/31129
655 * trans-decl.c (generate_local_decl) Emit a warning if an unused
656 parameter is found.
657
658 2007-07-08 Daniel Franke <franke.daniel@gmail.com>
659
660 PR fortran/29876
661 * module.c (gfc_match_use): Do not set an non-existant
662 intrinsic operator if a user-defined operator is found.
663
664 2007-07-08 Daniel Franke <franke.daniel@gmail.com>
665
666 PR fortran/24784
667 PR fortran/28004
668 * trans-decl.c (generate_local_decl): Adjusted warning on unused
669 dummy arguments, tell middle-end not to emit additional warnings.
670
671 2007-07-08 Daniel Franke <franke.daniel@gmail.com>
672 Tobias Schlüter <tobias.schlueter@physik.uni-muenchen.de>
673
674 PR fortran/17711
675 * gfortran.h (gfc_intrinsic_op): Added INTRINSIC_EQ_OS,
676 INTRINSIC_NE_OS, INTRINSIC_GT_OS, INTRINSIC_GE_OS,
677 INTRINSIC_LT_OS and INTRINSIC_LE_OS.
678 * arith.c (eval_intrinsic, eval_type_intrinsic0): Likewise.
679 * arith.h (gfc_eq, gfc_ne, gfc_gt, gfc_ge, gfc_lt, gfc_le):
680 Added gfc_intrinsic_op as third argument type.
681 * dump-parse-tree.c (gfc_show_expr): Account for new enum values.
682 * expr.c (simplify_intrinsic_op, check_intrinsic_op): Likewise.
683 * interface.c (check_operator_interface): Likewise.
684 (gfc_check_interfaces): Added cross-checks for FORTRAN 77 and
685 Fortran 90 style operators using new enum values.
686 (gfc_extend_expr): Likewise.
687 (gfc_add_interface): Likewise.
688 * match.c (intrinsic_operators): Distinguish FORTRAN 77 style
689 operators from Fortran 90 style operators using new enum values.
690 * matchexp.c (match_level_4): Account for new enum values.
691 * module.c (mio_expr): Likewise.
692 * resolve.c (resolve_operator): Deal with new enum values, fix
693 inconsistent error messages.
694 * trans-expr.c (gfc_conv_expr_op): Account for new enum values.
695
696 2007-07-08 Tobias Burnus <burnus@net-b.de>
697
698 PR fortran/32669
699 * interface.c (get_expr_storage_size): Properly obtain lower bound.
700 (compare_actual_formal): Add space before parenthesis.
701
702 2007-07-08 Daniel Franke <franke.daniel@gmail.com>
703
704 PR fortran/25094
705 * resolve.c (resolve_fl_procedure): Added check for PRIVATE types
706 in PUBLIC interfaces.
707
708 2007-07-07 Jerry DeLisle <jvdelisle@gcc.gnu.org>
709
710 PR fortran/32644
711 * decl.c (match_attr_spec): Don't return MATCH_ERROR if comma found and
712 gfc_match_bind_c does not return MATCH_YES.
713
714 2007-07-07 Kazu Hirata <kazu@codesourcery.com>
715
716 * decl.c, gfortran.h, interface.c, module.c, resolve.c,
717 trans-array.c, trans-decl.c: Fix comment typos. Follow
718 spelling conventions.
719 * intrinsic.texi: Fix typos. Follow spelling conventions.
720
721 2007-05-06 Daniel Franke <franke.daniel@gmail.com>
722
723 PR fortran/32633
724 * symbol.c (save_status): New.
725 * gfortran.h (save_status): Added external declaration.
726 (check_conflict): Check for conflicting explicite SAVE statements
727 only.
728 (gen_special_c_interop_ptr): Use SAVE_EXPLICIT constant.
729 * module.c (ab_attribute, attr_bits): Removed enumerator value
730 AB_SAVE for save attribute.
731 (mio_symbol_attribute): Import/export the full SAVE status,
732 removed usage of AB_SAVE.
733 * dump-parse-tree.c (gfc_show_attr): Dump full SAVE status.
734 * decl.c (add_init_expr_to_sym): Set SAVE_IMPLICIT only if not
735 already explicit.
736
737 2007-07-05 Daniel Franke <franke.daniel@gmail.com>
738 Tobias Burnus <burnus@net-b.de>
739
740 PR fortran/32359
741 * gfortran.h (symbol_attribute): Change save attribute into an enum.
742 * decl.c (add_init_expr_to_sym): Set it to SAVE_IMPLICIT.
743 * symbol.c (gfc_add_save): Check for SAVE_EXPLICIT.
744 * resolve.c (resolve_fl_variable): Check for SAVE_EXPLICIT.
745 (resolve_symbol): Allow OMP threadprivate with
746 initialization SAVEd and save_all variable.
747 * trans-decl.c (gfc_finish_var_decl): Remove obsolete sym->value check.
748
749 2007-07-05 Paul Thomas <pault@gcc.gnu.org>
750
751 PR fortran/32526
752 * match.c (gfc_match_call): Check, in all cases, that a symbol
753 is neither generic nor a subroutine before trying to add it as
754 a subroutine.
755
756 PR fortran/32613
757 * match.c (gfc_match_do): Reset the implied_index attribute.
758
759 2007-07-04 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
760
761 PR fortran/31198
762 * trans-intrinsic.c (trans-intrinsic.c): Handle optional
763 arguments correctly for MIN and MAX intrinsics.
764
765 2007-07-03 Jerry DeLisle <jvdelisle@gcc.gnu.org>
766
767 PR fortran/32545
768 * io.c (check_format): Always call gfc_error for errors.
769 (check_format_string): Change type of this function to try and
770 return the result of check_format.
771 (check_io_constraints): Return MATCH_ERROR if check_format_string
772 returns FAILURE.
773
774 2007-07-03 Jerry DeLisle <jvdelisle@gcc.gnu.org>
775
776 PR fortran/32612
777 * decl.c (get_proc_name): Include attr->mod_proc in check for error.
778
779 2007-07-03 Jerry DeLisle <jvdelisle@gcc.gnu.org>
780
781 PR fortran/32432
782 * gfortran.h: Change type of gfc_assign_data_value from void to try.
783 * data.c (gfc_assign_data_value): Return FAILURE if error found.
784 * resolve.c (check_data_variable): If gfc_assign_data_value returns
785 failure, break out of loop and return failure.
786
787 2007-07-03 Christopher D. Rickett <crickett@lanl.gov>
788
789 PR fortran/32579
790 * symbol.c (gen_cptr_param): Generate C_PTR and C_FUNPTR if necessary.
791 (build_formal_args): Pass intrinsic module symbol id to
792 gen_cptr_param.
793
794 2007-07-03 Tobias Burnus <burnus@net-b.de>
795
796 PR fortran/25062
797 * resolve.c (resolve_common_blocks): New check function.
798 (resolve_types): Use it.
799
800 2007-07-03 Tobias Burnus <burnus@net-b.de>
801
802 PR fortran/30940
803 * interface.c (get_sym_storage_size): New function.
804 (get_sym_storage_size): New function.
805 (compare_actual_formal): Enhance sequence association
806 support and improve checking.
807
808 2007-07-03 Janne Blomqvist <jb@gcc.gnu.org>
809
810 * trans-decl.c (gfc_build_builtin_function_decls): Mark
811 internal_realloc as a malloc function.
812
813 2007-07-03 Tobias Burnus <burnus@net-b.de>
814
815 PR fortran/20888
816 * resolve.c (resolve_operator): Check for NULL as operand.
817
818 2007-07-02 Tobias Burnus <burnus@net-b.de>
819
820 * gfortran.texi (Fortran 2003): Add ISO Bind C.
821 * intrinsic.texi (C_ASSOCIATED,C_F_POINTER,C_F_PROCPOINTER,
822 C_FUNLOC,C_LOC): Document new ISO Bind C intrinsics.
823
824 2007-07-01 Christopher D. Rickett <crickett@lanl.gov>
825
826 * interface.c (gfc_compare_derived_types): Special case for comparing
827 derived types across namespaces.
828 (gfc_compare_types): Deal with BT_VOID.
829 (compare_parameter): Use BT_VOID to accept ISO C Binding pointers.
830 * trans-expr.c (gfc_conv_function_call): Remove setting parm_kind
831 to SCALAR
832 (gfc_conv_initializer): Deal with ISO C Binding NULL_PTR and
833 NULL_FUNPTR.
834 (gfc_conv_expr): Convert expressions for ISO C Binding derived types.
835 * symbol.c (gfc_set_default_type): BIND(C) variables should not be
836 Implicitly declared.
837 (check_conflict): Add BIND(C) and check for conflicts.
838 (gfc_add_explicit_interface): Whitespace.
839 (gfc_add_is_bind_c): New function.
840 (gfc_copy_attr): Use it.
841 (gfc_new_symbol): Initialize ISO C Binding objects.
842 (get_iso_c_binding_dt): New function.
843 (verify_bind_c_derived_type): Ditto.
844 (gen_special_c_interop_ptr): Ditto.
845 (add_formal_arg): Ditto.
846 (gen_cptr_param): Ditto.
847 (gen_fptr_param): Ditto.
848 (gen_shape_param): Ditto.
849 (add_proc_interface): Ditto.
850 (build_formal_args): Ditto.
851 (generate_isocbinding_symbol): Ditto.
852 (get_iso_c_sym): Ditto.
853 * decl.c (num_idents_on_line, has_name_equals): New variables.
854 (verify_c_interop_param): New function.
855 (build_sym): Finish binding labels and deal with COMMON blocks.
856 (add_init_expr_to_sym): Check if the initialized expression is
857 an iso_c_binding named constants
858 (variable_decl): Set ISO C Binding type_spec components.
859 (gfc_match_kind_spec): Check match for C interoperable kind.
860 (match_char_spec): Fix comment. Chnage gfc_match_small_int
861 to gfc_match_small_int_expr. Check for C interoperable kind.
862 (match_type_spec): Clear the current binding label.
863 (match_attr_spec): Add DECL_IS_BIND_C. If BIND(C) is found, use it
864 to set attributes.
865 (set_binding_label): New function.
866 (set_com_block_bind_c): Ditto.
867 (verify_c_interop): Ditto.
868 (verify_com_block_vars_c_interop): Ditto.
869 (verify_bind_c_sym): Ditto.
870 (set_verify_bind_c_sym): Ditto.
871 (set_verify_bind_c_com_block): Ditto.
872 (get_bind_c_idents): Ditto.
873 (gfc_match_bind_c_stmt): Ditto.
874 (gfc_match_data_decl): Use num_idents_on_line.
875 (match_result): Deal with right paren in BIND(C).
876 (gfc_match_suffix): New function.
877 (gfc_match_function_decl): Use it. Code is re-arranged to deal with
878 ISO C Binding result clauses.
879 (gfc_match_subroutine): Deal with BIND(C).
880 (gfc_match_bind_c): New function.
881 (gfc_get_type_attr_spec): New function. Code is re-arranged in and
882 taken from gfc_match_derived_decl.
883 (gfc_match_derived_decl): Add check for BIND(C).
884 * trans-common.c: Forward declare gfc_get_common.
885 (gfc_sym_mangled_common_id): Change arg from 'const char *name' to
886 'gfc_common_head *com'. Check for ISO C Binding of the common block.
887 (build_common_decl): 'com->name' to 'com in SET_DECL_ASSEMBLER_NAME.
888 * gfortran.h: Add GFC_MAX_BINDING_LABEL_LEN
889 (bt): Add BT_VOID
890 (sym_flavor): Add FL_VOID.
891 (iso_fortran_env_symbol, iso_c_binding_symbol, intmod_id): New enum
892 (CInteropKind_t): New struct.
893 (c_interop_kinds_table): Use it. Declare an array of structs.
894 (symbol_attribute): Add is_bind_c, is_c_interop, and is_iso_c
895 bitfields.
896 (gfc_typespec): Add is_c_interop; is_iso_c, and f90_type members.
897 (gfc_symbol): Add from_intmod, intmod_sym_id, binding_label, and
898 common_block members.
899 (gfc_common_head): Add binding_label and is_bind_c members.
900 (gfc_gsymbol): Add sym_name, mod_name, and binding_label members.
901 Add prototypes for get_c_kind, gfc_validate_c_kind,
902 gfc_check_any_c_kind, gfc_add_is_bind_c, gfc_add_value,
903 verify_c_interop, verify_c_interop_param, verify_bind_c_sym,
904 verify_bind_c_derived_type, verify_com_block_vars_c_interop,
905 generate_isocbinding_symbol, get_iso_c_sym, gfc_iso_c_sub_interface
906 * iso-c-binding.def: New file. This file contains the definitions
907 of the types provided by the Fortran 2003 ISO_C_BINDING intrinsic
908 module.
909 * trans-const.c (gfc_conv_constant_to_tree): Deal with C_NULL_PTR
910 or C_NULL_FUNPTR expressions.
911 * expr.c (gfc_copy_expr): Add BT_VOID case. For BT_CHARACTER, the
912 ISO C Binding requires a minimum string length of 1 for '\0'.
913 * module.c (intmod_sym): New struct.
914 (pointer_info): Add binding_label member.
915 (write_atom): Set len to 0 for NULL pointers. Check for NULL p and *p.
916 (ab_attribute): Add AB_IS_BIND_C, AB_IS_C_INTEROP and AB_IS_ISO_C.
917 (attr_bits): Add "IS_BIND_C", "IS_C_INTEROP", and "IS_ISO_C".
918 (mio_symbol_attribute): Deal with ISO C Binding attributes.
919 (bt_types): Add "VOID".
920 (mio_typespec): Deal with ISO C Binding components.
921 (mio_namespace_ref): Add intmod variable.
922 (mio_symbol): Check for symbols from an intrinsic module.
923 (load_commons): Check for BIND(C) common block.
924 (read_module): Read binding_label and use it.
925 (write_common): Add label. Write BIND(C) info.
926 (write_blank_common): Blank commons are not BIND(C). Explicitly
927 set is_bind_c=0.
928 (write_symbol): Deal with binding_label.
929 (sort_iso_c_rename_list): New function.
930 (import_iso_c_binding_module): Ditto.
931 (create_int_parameter): Add to args.
932 (use_iso_fortran_env_module): Adjust to deal with iso_c_binding
933 intrinsic module.
934 * trans-types.c (c_interop_kinds_table): new array of structs.
935 (gfc_validate_c_kind): New function.
936 (gfc_check_any_c_kind): Ditto.
937 (get_real_kind_from_node): Ditto.
938 (get_int_kind_from_node): Ditto.
939 (get_int_kind_from_width): Ditto.
940 (get_int_kind_from_minimal_width): Ditto.
941 (init_c_interop_kinds): Ditto.
942 (gfc_init_kinds): call init_c_interop_kinds.
943 (gfc_typenode_for_spec): Adjust for BT_VOID and ISO C Binding pointers.
944 Adjust handling of BT_DERIVED.
945 (gfc_sym_type): Whitespace.
946 (gfc_get_derived_type): Account for iso_c_binding derived types
947 * resolve.c (is_scalar_expr_ptr): New function.
948 (gfc_iso_c_func_interface): Ditto.
949 (resolve_function): Use gfc_iso_c_func_interface.
950 (set_name_and_label): New function.
951 (gfc_iso_c_sub_interface): Ditto.
952 (resolve_specific_s0): Use gfc_iso_c_sub_interface.
953 (resolve_bind_c_comms): New function.
954 (resolve_bind_c_derived_types): Ditto.
955 (gfc_verify_binding_labels): Ditto.
956 (resolve_fl_procedure): Check for ISO C interoperability.
957 (resolve_symbol): Check C interoperability.
958 (resolve_types): Walk the namespace. Check COMMON blocks.
959 * trans-decl.c (gfc_sym_mangled_identifier): Prevent the mangling
960 of identifiers that have an assigned binding label.
961 (gfc_sym_mangled_function_id): Use the binding label rather than
962 the mangled name.
963 (gfc_finish_var_decl): Put variables that are BIND(C) into a common
964 segment of the object file, because this is what C would do.
965 (gfc_create_module_variable): Conver to proper types
966 (set_tree_decl_type_code): New function.
967 (generate_local_decl): Check dummy variables and derived types for
968 ISO C Binding attributes.
969 * match.c (gfc_match_small_int_expr): New function.
970 (gfc_match_name_C): Ditto.
971 (match_common_name): Deal with ISO C Binding in COMMON blocks
972 * trans-io.c (transfer_expr): Deal with C_NULL_PTR or C_NULL_FUNPTR
973 expressions
974 * match.h: Add prototypes for gfc_match_small_int_expr,
975 gfc_match_name_C, match_common_name, set_com_block_bind_c,
976 set_binding_label, set_verify_bind_c_sym,
977 set_verify_bind_c_com_block, get_bind_c_idents,
978 gfc_match_bind_c_stmt, gfc_match_suffix, gfc_match_bind_c,
979 gfc_get_type_attr_spec
980 * parse.c (decode_statement): Use gfc_match_bind_c_stmt
981 (parse_derived): Init *derived_sym = NULL, and gfc_current_block
982 later for valiadation.
983 * primary.c (got_delim): Set ISO C Binding components of ts.
984 (match_logical_constant): Ditto.
985 (match_complex_constant): Ditto.
986 (match_complex_constant): Ditto.
987 (gfc_match_rvalue): Check for existence of at least one arg for
988 C_LOC, C_FUNLOC, and C_ASSOCIATED.
989 * misc.c (gfc_clear_ts): Clear ISO C Bindoing components in ts.
990 (get_c_kind): New function.
991
992 2007-07-01 Janne Blomqvist <jb@gcc.gnu.org>
993
994 PR fortran/32239
995 * trans-expr.c (gfc_conv_power_op): Use builtin_powi for
996 real**int4 powers.
997 * f95-lang.c (gfc_init_builtin_functions): Add builtin_powi to the
998 builtins table.
999
1000 2007-07-01 Janne Blomqvist <jb@gcc.gnu.org>
1001
1002 * trans.h: Remove decls for 64-bit allocation functions.
1003 * trans-array.c (gfc_grow_array): Always pick the standard realloc
1004 function decl.
1005 (gfc_array_allocate): Likewise.
1006 * trans-decl.c: Remove trees for 64-bit allocation functions.
1007 (gfc_build_builtin_function_decls): Don't build fndecls for 64-bit
1008 allocations functions, use index_int_type for normal allocation
1009 functions.
1010
1011 2007-06-30 Daniel Franke <franke.daniel@gmail.com>
1012
1013 PR fortran/20373
1014 * intrinsic.c (add_functions): Additional function types.
1015 (gfc_convert_type_warn): Remove intrinsic-flag from
1016 conversion functions.
1017 * resolve.c (resolve_symbol): Added type checks to
1018 explicitly defined intrinsics.
1019
1020 2007-06-30 Tobias Burnus <burnus@net-b.de>
1021
1022 PR fortran/32555
1023 * io.c (check_format): Allow zero to precede the
1024 P edit descriptor.
1025
1026 2007-06-30 Paul Thomas <pault@gcc.gnu.org>
1027
1028 PR fortran/32472
1029 * simplify.c (gfc_simplify_repeat): Add handling of character
1030 literal for first argument.
1031
1032 2007-06-29 Daniel Franke <franke.daniel@gmail.com>
1033
1034 * resolve.c (resolve_operator): Added check whether a user
1035 defined operator is available.
1036
1037 2007-06-29 Daniel Franke <franke.daniel@gmail.com>
1038
1039 * openmp.c (resolve_omp_clauses): Adjust error message to
1040 better reflect the actual requirement.
1041
1042 2007-06-29 Tobias Burnus <burnus@net-b.de>
1043
1044 PR fortran/32483
1045 * io.c (format_lex): Fix FMT_ZERO.
1046 (check_format,check_format_string,gfc_match_format,
1047 check_io_constraints) Additional checking for READ.
1048
1049 2007-06-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1050
1051 PR other/31400
1052 * lang.opt (static-libgfortran): New option.
1053 * gfortranspec.c (ADD_ARG_LIBGFORTRAN): New macro.
1054 (Option): Add OPTION_static and OPTION_static_libgfortran.
1055 (lookup_option): Handle the new -static-libgfortran option.
1056 (lang_specific_driver): Check whether -static is passed.
1057 Handle the new -static-libgfortran option.
1058 * options.c (gfc_handle_option): If -static-libgfortran is
1059 passed and isn't supported on this configuration, error out.
1060
1061 2007-06-27 Daniel Franke <franke.daniel@gmail.com>
1062
1063 PR fortran/32467
1064 * openmp.c (resolve_omp_clauses): Emit error on allocatable
1065 components in COPYIN, COPYPRIVATE, FIRSTPRIVATE and LASTPRIVATE
1066 clauses.
1067
1068 2007-06-25 Paul Thomas <pault@gcc.gnu.org>
1069
1070 PR fortran/32464
1071 * resolve.c (check_host_association): Return if the old symbol
1072 is use associated. Introduce retval to reduce the number of
1073 evaluations of the first-order return value.
1074
1075 PR fortran/31494
1076 * match.c (gfc_match_call): If a host associated symbol is not
1077 a subroutine, build a new symtree/symbol in the current name
1078 space.
1079
1080 2007-06-24 Tobias Burnus <burnus@net-de>
1081
1082 PR fortran/32460
1083 * interface.c (gfc_compare_derived_types): Add access check.
1084 * symbol.c (gfc_find_component): Ditto.
1085 (gfc_set_component_attr,gfc_get_component_attr) Copy access state.
1086 * dump-parse-tree.c (gfc_show_components): Dump access state.
1087 * gfortran.h (struct gfc_component): Add gfc_access.
1088 * module.c (mio_component): Add access state.
1089 * (gfc_match_structure_constructor): Check for private access state.
1090
1091 2007-06-24 Paul Thomas <pault@gcc.gnu.org>
1092
1093 PR fortran/32298
1094 PR fortran/31726
1095 * trans-intrinsic.c (gfc_conv_intrinsic_minmaxloc): Calculate
1096 the offset between the loop counter and the position as
1097 defined. Add the offset within the loop so that the mask acts
1098 correctly. Do not advance the location on the basis that it
1099 is zero.
1100
1101 2007-06-22 Daniel Franke <franke.daniel@gmail.com>
1102
1103 PR fortran/31473
1104 * symbol.c (gfc_copy_attr): Emit errors for duplicate
1105 EXTERNAL/INTRINSIC statements.
1106
1107 2007-06-22 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1108
1109 PR fortran/32360
1110 * expr.c (gfc_check_assign): If the rvalue expression type is NULL_EXPR,
1111 check to see if the lvalue has attribute pointer and data.
1112
1113 2007-06-21 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1114
1115 PR fortran/31162
1116 * resolve.c (gfc_resolve_iterator_expr): Add check for REAL using
1117 gfc_notify_standard. (gfc_resolve_iterator): Remove check.
1118 (resolve_branch): Change "Obsolete" to "Deleted feature".
1119 * io.c (resolve_tag): Ditto.
1120 * match.c (gfc_match_pause, gfc_match_assign, gfc_match_goto): Ditto.
1121
1122 2007-06-20 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1123
1124 PR fortran/32361
1125 * match.c (gfc_match_common): If the symbol value expression type is
1126 NULL_EXPR, don't error if previously initialized.
1127
1128 2007-06-20 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1129
1130 PR fortran/25061
1131 * decl.c (get_proc_name) Check symbol for generic interface
1132 and issue an error.
1133
1134 2007-06-20 Andrew Pinski <andrew_pinski@playstation.sony.com>
1135 Richard Guenther <rguenther@suse.de>
1136
1137 PR fortran/32140
1138 * trans.c (gfc_build_addr_expr): Use the correct types.
1139
1140 2007-06-19 Paul Thomas <pault@gcc.gnu.org>
1141
1142 PR fortran/20863
1143 PR fortran/20882
1144 * resolve.c (resolve_code): Use gfc_impure_variable as a
1145 condition for rejecting derived types with pointers, in pure
1146 procedures.
1147 (gfc_impure_variable): Add test for dummy arguments of pure
1148 procedures; any for functions and INTENT_IN for subroutines.
1149
1150 PR fortran/32236
1151 * data.c (gfc_assign_data_value): Change the ICE on an array
1152 reference initializer not being an array into an error and
1153 clear init to prevent a repetition of the error.
1154
1155 2007-06-17 Janne Blomqvist <jb@gcc.gnu.org>
1156
1157 * gfortran.texi: Add documentation for GFORTRAN_UNBUFFERED_n
1158 environment variables. Fix documentation for
1159 GFORTRAN_UNBUFFERED_ALL environment variable.
1160
1161 2007-06-15 Andrew Pinski <andrew_pinski@playstation.sony.com>
1162
1163 * trans-intrinsic.c (gfc_conv_intrinsic_repeat): Use
1164 POINTER_PLUS_EXPR instead of PLUS_EXPR for pointer addition.
1165 * trans-expr.c (gfc_trans_string_copy): Create
1166 POINTER_PLUS_EXPR instead of a PLUS_EXPR
1167 for pointer types.
1168
1169 2007-06-14 Paul Thomas <pault@gcc.gnu.org>
1170
1171 PR fortran/32302
1172 * trans-common.c (build_common_decl): If resizing of common
1173 decl is needed, update the TREE_TYPE.
1174
1175 2007-06-13 Tobias Burnus <burnus@net-b.de>
1176
1177 PR fortran/32323
1178 * interface.c (has_vector_section): New.
1179 (compare_actual_formal): Check for array sections with vector subscript.
1180
1181 2007-06-12 Dirk Mueller <dmueller@suse.de>
1182
1183 * trans-stmt.c (gfc_trans_call): fix gcc_assert to
1184 a comparison, not an assignment.
1185
1186 2007-06-12 Paul Thomas <pault@gcc.gnu.org>
1187
1188 * trans-common.c (create_common): Initialize 'field_init'.
1189
1190 2007-06-12 Paul Thomas <pault@gcc.gnu.org>
1191
1192 PR fortran/29786
1193 PR fortran/30875
1194 * trans-common.c (get_init_field): New function.
1195 (create_common): Call get_init_field for overlapping
1196 initializers in equivalence blocks.
1197 * resolve.c (resolve_equivalence_derived, resolve_equivalence):
1198 Remove constraints on initializers in equivalence blocks.
1199 * target-memory.c (expr_to_char, gfc_merge_initializers):
1200 New functions.
1201 (encode_derived): Add the bit offset to the byte offset to get
1202 the total offset to the field.
1203 * target-memory.h : Add prototype for gfc_merge_initializers.
1204
1205 2007-06-11 Rafael Avila de Espindola <espindola@google.com>
1206
1207 * trans-types.c (gfc_signed_type): Remove.
1208 * trans-types.h (gfc_signed_type): Remove.
1209 * f95-lang.c (LANG_HOOKS_SIGNED_TYPE): Remove.
1210
1211 2007-06-08 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1212
1213 * trans-intrinsic.c: Revert Lee's 2007-06-04 patch.
1214
1215 2007-06-07 Steven G. Kargl <kargl@gcc.gnu.org>
1216 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1217
1218 PR fortran/32223
1219 * match.c (gfc_match_special_char): New function. Match special char.
1220 Add handling '\0'.
1221 * match.h: Add prototype.
1222 * io.c (next_char): Use it.
1223 * primary.c (next_string_char): Ditto.
1224
1225 2007-06-06 Steven G. Kargl <kargl@gcc.gnu.org>
1226
1227 * decl.c: Miscellaneous whitespace fixes.
1228 * expr.c: Likewise.
1229 * gfortran.h: Likewise.
1230 * interface.c : Likewise.
1231 * io.c: Likewise.
1232 * match.c: Likewise.
1233 * match.h: Likewise.
1234 * module.c: Likewise.
1235 * parse.c: Likewise.
1236 * resolve.c: Likewise.
1237 * symbol.c: Likewise.
1238 * trans-array.c: Likewise.
1239 * trans-common.c: Likewise.
1240 * trans-decl.c: Likewise.
1241 * trans-intrinsic.c: Likewise.
1242 * trans-io.c: Likewise.
1243 * trans-stmt.c: Likewise.
1244 * trans-types.c: Likewise.
1245
1246 2007-06-05 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1247
1248 PR fortran/18923
1249 * parse.c (decode_statement): Don't call gfc_undo_symbols on MATCH_ERROR
1250 for ST_FUNCTION since it is called in reject_statement.
1251 (parse_contained): If error, loop back after reject_statement and try
1252 again. Free the namespace if an error occured.
1253
1254 2007-06-04 Lee Millward <lee.millward@codesourcery.com>
1255
1256 * trans-intrinsic.c (gfc_conv_intrinsic_function_args): Adjust
1257 to operate on a stack allocated array for the intrinsic arguments
1258 instead of creating a TREE_LIST. Add two new parameters for the
1259 array and the number of elements. Update all callers to allocate
1260 an array of the correct length to pass in. Update comment.
1261 (gfc_intrinsic_argument_list_length): New function.
1262 (gfc_conv_intrinsic_mnimax): Call it.
1263 (gfc_conv_intrinsic_merge): Likewise.
1264 (gfc_conv_intrinsic_lib_function): Call it. Use new CALL_EXPR
1265 constructors.
1266 (gfc_conv_intrinsic_cmplx): Likewise.
1267 (gfc_conv_intrinsic_ctime): Likewise.
1268 (gfc_covn_intrinsic_fdate): Likewise.
1269 (gfc_conv_intrinsic_ttynam): Likewise.
1270 (gfc_conv_intrinsic_ishftc): Likewise.
1271 (gfc_conv_intrinsic_index): Likewise.
1272 (gfc_conv_intrinsic_scan): Likewise.
1273 (gfc_conv_intrinsic_verify): Likewise.
1274 (gfc_conv_intrinsic_trim): Likewise.
1275 (gfc_conv_intrinsic_aint): Use new CALL_EXPR constructors.
1276 (gfc_conv_intrinsic_exponent): Likewise.
1277 (gfc_conv_intrinsic_bound): Likewise.
1278 (gfc_conv_intrinsic_abs): Likewise.
1279 (gfc_conv_intrinsic_mod): Likewise.
1280 (gfc_conv_intrinsic_sign): Likewise.
1281 (gfc_conv_intrinsic_len): Likewise.
1282 (gfc_conv_intrinsic_adjust): Likewise.
1283 (gfc_conv_intrinsic_si_kind): Likewise.
1284
1285 2007-06-04 Steve Ellcey <sje@cup.hp.com>
1286
1287 * trans-array.c (gfc_conv_array_parameter): Initialize tmp.
1288
1289 2007-05-31 Richard Guenther <rguenther@suse.de>
1290
1291 * trans-expr.c (gfc_conv_expr_op): Use zero constant
1292 that matches the lse type.
1293 (gfc_trans_string_copy): Use sizetype zero constant.
1294 * intrinsic.c (add_functions): The sizeof intrinsic has
1295 index type result.
1296 * trans-types.c (gfc_get_dtype): Convert size to index
1297 type before shifting.
1298 * trans-array.c (gfc_trans_array_constructor_value): Use
1299 index type for offset computation.
1300 * trans-intrinsic.c (gfc_conv_associated): Use correct type
1301 for zero constant.
1302
1303 2007-05-31 Paul Thomas <pault@gcc.gnu.org>
1304
1305 PR fortran/32156
1306 * trans-array.c (gfc_trans_array_constructor): Treat the case
1307 where the ss expression charlen is missing.
1308
1309 22007-05-31 Paul Thomas <pault@gcc.gnu.org>
1310
1311 PR fortran/32103
1312 * module.c (mio_symtree_ref): If an equivalence group member
1313 is not used, give it a hidden symbol and set the pointer_info.
1314 (load_equiv): Only free the equivalence if none of the members
1315 are used.
1316
1317 2007-05-29 Daniel Franke <franke.daniel@gmail.com>
1318
1319 * gfortran.h: Renamed 'enum gfc_generic_isym_id' to 'enum gfc_isym_id',
1320 added missing GFC_ISYM_* enumerators, ordered alphabetically.
1321 (struct gfc_intrinsic_sym): Renamed 'generic_id' to 'id'.
1322 (gfc_find_subroutine): New prototype.
1323 * intrinsic.c (add_sym, add_sym_*): Added argument 'id' and changed all callers.
1324 (find_subroutine): Renamed to 'gfc_find_subroutine', removed static.
1325 * dependency.c: Changed usage of isym->generic_id to isym->id.
1326 * openmp.c: Likewise.
1327 * resolve.c: Likewise.
1328 * trans-array.c: Likewise.
1329 * trans-expr.c: Likewise.
1330 * trans-intrinsic.c: Likewise.
1331 * trans-openmp.c: Likewise.
1332
1333 2007-05-28 Tobias Schlüter <tobi@gcc.gnu.org>
1334
1335 * gfortran.h (gfc_generic_isym_id): Add GFC_ISYM_SIZEOF.
1336 * intrinsic.c (add_functions): Add stuff for SIZEOF intrinsic.
1337 * intrinsic.h (gfc_check_sizeof): Add prototype of ...
1338 * check.c (gfc_check_sizeof): .. new function.
1339 * trans-intrinsic.c (gfc_conv_intrinsic_sizeof): New function.
1340 (gfc_conv_intrinsic_strcmp): Whitespace fix.
1341 (gfc_conv_intrinsic_array_transfer): Remove double initialization,
1342 use fold_build. where appropriate.
1343 (gfc_conv_intrinsic_function): Add case for SIZEOF.
1344 * intrinsic.texi: Add documentation for SIZEOF.
1345
1346 2007-05-28 Brooks Moses <brooks.moses@codesourcery.com>
1347
1348 * trans-array.c (gfc_conv_expr_descriptor): Edit comment.
1349
1350 2007-05-28 Brooks Moses <brooks.moses@codesourcery.com>
1351
1352 PR fortran/31972
1353 * target-memory.c (gfc_target_expr_size): Add handling
1354 for size of BT_HOLLERITH variables.
1355 * check.c (gfc_check_transfer): Reject BT_HOLLERITH
1356 variables in MOLD argument of TRANSFER.
1357
1358 2007-05-28 Brooks Moses <brooks.moses@codesourcery.com>
1359
1360 * gfortran.h (gfc_expr): Remove from_H, add "representation"
1361 struct.
1362 * primary.c (match_hollerith_constant): Store the representation
1363 of the Hollerith in representation, not in value.character.
1364 * arith.c: Add dependency on target-memory.h.
1365 (eval_intrinsic): Remove check for from_H.
1366 (hollerith2representation): New function.
1367 (gfc_hollerith2int): Determine value of the new constant.
1368 (gfc_hollerith2real): Likewise.
1369 (gfc_hollerith2complex): Likewise.
1370 (gfc_hollerith2logical): Likewise.
1371 (gfc_hollerith2character): Point both representation.string and
1372 value.character.string at the value string.
1373 * data.c (create_character_initializer): For BT_HOLLERITH
1374 rvalues, get the value from the representation rather than
1375 value.character.
1376 * expr.c (free_expr0): Update handling of BT_HOLLERITH values
1377 and values with representation.string.
1378 (gfc_copy_expr): Likewise.
1379 * intrinsic.c (do_simplify): Remove special treatement of
1380 variables resulting from Hollerith constants.
1381 * dump-parse-trees.c (gfc_show_expr): Update handling of
1382 Holleriths.
1383 * trans-const.c (gfc_conv_constant_to_tree): Replace from_H
1384 check with check for representation.string; get Hollerith
1385 representation from representation.string, not value.character.
1386 * trans-expr.c (is_zero_initializer_p): Replace from_H check
1387 with check for representation.string.
1388 * trans-stmt.c (gfc_trans_integer_select): Use
1389 gfc_conv_mpz_to_tree for case values, so as to avoid picking up
1390 the memory representation if the case is given by a transfer
1391 expression.
1392 * target-memory.c (gfc_target_encode_expr): Use the known memory
1393 representation rather than the value, if it exists.
1394 (gfc_target_interpret_expr): Store the memory representation of
1395 the interpreted expression as well as its value.
1396 (interpret_integer): Move to gfc_interpret_integer, make
1397 non-static.
1398 (interpret_float): Move to gfc_interpret_float, make non-static.
1399 (interpret_complex): Move to gfc_interpret_complex, make
1400 non-static.
1401 (interpret_logical): Move to gfc_interpret_logical, make
1402 non-static.
1403 (interpret_character): Move to gfc_interpret_character, make
1404 non-static.
1405 (interpret_derived): Move to gfc_interpret_derived, make
1406 non-static.
1407 * target-memory.h: Add prototypes for newly-exported
1408 gfc_interpret_* functions.
1409
1410 2007-05-27 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1411
1412 PR fortran/31812
1413 * parse.c (next_statement): Warn for truncated lines if source is free
1414 form.
1415
1416 2007-05-27 Paul Thomas <pault@gcc.gnu.org>
1417 Tobias Burnus <burnus@net-b.de>
1418
1419 PR fortran/32088
1420 * symbol.c (gfc_check_function_type): Copy dimensions of
1421 result variable.
1422 * resolve.c (resolve_contained_fntype): Improve symbol output in
1423 the error message.
1424
1425 2007-05-26 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1426
1427 PR fortran/31813
1428 * io.c (check_format): Add warning for H specifier in format.
1429
1430 2007-05-26 Tobias Burnus <burnus@net-b.de>
1431
1432 * gfortran.texi: Document the GFORTRAN_ERROR_DUMPCORE and
1433 GFORTRAN_ERROR_BACKTRACE environment variables.
1434
1435 2007-05-26 Paul Thomas <pault@gcc.gnu.org>
1436
1437 PR fortran/31219
1438 * trans.h : Add no_function_call bitfield to gfc_se structure.
1439 Add stmtblock_t argument to prototype of get_array_ctor_strlen.
1440 * trans-array.c (get_array_ctor_all_strlen): New function.
1441 (get_array_ctor_strlen): Add new stmtblock_t argument and call
1442 new function for character elements that are not constants,
1443 arrays or variables.
1444 (gfc_conv_array_parameter): Call get_array_ctor_strlen to get
1445 good string length.
1446 * trans-intrinsic (gfc_conv_intrinsic_len): Add new argument
1447 to call of get_array_ctor_strlen.
1448
1449 2007-05-25 Kazu Hirata <kazu@codesourcery.com>
1450
1451 * intrinsic.texi: Fix typos.
1452
1453 2007-05-25 Paul Thomas <pault@gcc.gnu.org>
1454
1455 PR fortran/32047
1456 * trans-expr.c (gfc_apply_interface_mapping_to_expr): Change
1457 order in logic under EXPR_FUNCTION to handle functions with
1458 no arguments.
1459
1460 2007-05-23 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1461
1462 PR fortran/31716
1463 * array.c (spec_dimen_size): Test for correct BT_INTEGER type.
1464
1465 2007-05-23 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1466
1467 PR fortran/32046
1468 * trans-expr.c (gfc_trans_zero_assign): Convert the result of
1469 TYPE_SIZE_UNIT into a signed type.
1470 (gfc_trans_array_copy): Likewise.
1471 (gfc_trans_array_constructor_copy): Likewise.
1472 * trans-array.c (gfc_trans_create_temp_array): Likewise.
1473 (gfc_grow_array): Likewise.
1474 (gfc_array_init_size): Likewise.
1475 (gfc_duplicate_allocatable): Likewise.
1476 * trans-stmt.c (allocate_temp_for_forall_nest_1): Likewise.
1477
1478 2007-05-22 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1479
1480 PR fortran/18923
1481 * resolve.c (resolve_function): Don't call resolve_global_procedure if
1482 there is no name. Delete duplicated statement in ELSE clause.
1483
1484 2007-05-22 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1485
1486 PR fortran/31627
1487 * trans-array.c (gfc_trans_array_bound_check): Take extra argument to
1488 indicate whether we should check the upper bound in that dimension.
1489 (gfc_conv_array_index_offset): Check only the lower bound of the
1490 last dimension for assumed-size arrays.
1491 (gfc_conv_array_ref): Likewise.
1492 (gfc_conv_ss_startstride): Likewise.
1493
1494 2007-05-21 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1495 Daniel Franke <franke.daniel@gmail.com>
1496
1497 PR fortran/32002
1498 * resolve.c (resolve_actual_arglist): Resolve actual argument after
1499 being identified as variable.
1500
1501 2007-05-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1502
1503 PR fortran/32027
1504 * trans-stmt.c (gfc_trans_do): Fix the value of loop variable
1505 when the loop ends.
1506
1507 2007-05-21 H.J. Lu <hongjiu.lu@intel.com>
1508
1509 * trans-stmt.c (gfc_trans_do): Fix a typo in comment.
1510
1511 2007-05-21 Paul Thomas <pault@gcc.gnu.org>
1512
1513 PR fortran/31867
1514 PR fortran/31994
1515 * trans-array.c (gfc_conv_expr_descriptor): Obtain the stored
1516 offset for non-descriptor, source arrays and correct for stride
1517 not equal to one before writing to field of output descriptor.
1518
1519 2007-05-20 Daniel Franke <franke.daniel@gmail.com>
1520
1521 PR fortran/32001
1522 * check.c (check_rest): Improved argument conformance check and
1523 fixed error message generation.
1524
1525 2007-05-19 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1526
1527 PR fortran/30820
1528 * Make-lang.in: Remove use of -Wno-error for expr.o, resolve.o,
1529 simplify.o and trans-common.o.
1530
1531 2007-05-19 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1532
1533 PR fortran/31974
1534 * trans-array.c (gfc_trans_auto_array_allocation): Avoid
1535 multiplication of mismatched types.
1536
1537 2007-05-18 Daniel Franke <franke.daniel@gmail.com>
1538
1539 PR fortran/24633
1540 * symbol.c (gfc_add_flavor): Add the NAME to error message if
1541 available.
1542
1543 2007-05-15 Daniel Franke <franke.daniel@gmail.com>
1544
1545 PR fortran/31919
1546 PR fortran/31929
1547 PR fortran/31930
1548 * intrinsic.c (check_specific): Check elemental intrinsics for
1549 rank and shape.
1550 (add_functions): Fixed dummy argument names of BESJN and BESYN.
1551 Fixed elemental status of MCLOCK and MCLOCK8.
1552 * check.c (check_rest): Added check for array conformance.
1553 (gfc_check_merge): Removed check for array conformance.
1554 (gfc_check_besn): Removed check for scalarity.
1555 * intrinsic.texi (CSHIFT, EOSHIFT): Fixed typos.
1556 (BESJN, BESYN): Clarified documentation.
1557
1558 2007-05-17 Tobias Burnus <burnus@net-b.de>
1559
1560 * gfortran.texi (GFORTRAN_CONVERT_UNIT): Improve documentation.
1561
1562 2007-05-16 Brooks Moses <brooks.moses@codesourcery.com>
1563
1564 PR fortran/18769
1565 PR fortran/30881
1566 PR fortran/31194
1567 PR fortran/31216
1568 PR fortran/31427
1569 * target-memory.c: New file.
1570 * target-memory.h: New file.
1571 * simplify.c: Add #include "target-memory.h".
1572 (gfc_simplify_transfer): Implement constant-
1573 folding for TRANSFER intrinsic.
1574 * Make-lang.in: Add dependencies on new target-memory.* files.
1575
1576 2007-05-15 Paul Brook <paul@codesourcery.com>
1577
1578 * trans-types.c (gfc_type_for_size): Handle signed TImode.
1579
1580 2007-05-14 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1581
1582 PR fortran/30723
1583 * trans.h (gfor_fndecl_internal_malloc, gfor_fndecl_internal_malloc64,
1584 gfor_fndecl_internal_free): Remove prototypes.
1585 (gfor_fndecl_os_error, gfc_call_free, gfc_call_malloc): Add prototypes.
1586 * trans.c (gfc_call_malloc, gfc_call_free): New functions.
1587 * f95-lang.c (gfc_init_builtin_functions): Add __builtin_free
1588 and __builtin_malloc builtins.
1589 * trans-decl.c (gfor_fndecl_internal_malloc,
1590 gfor_fndecl_internal_malloc64, gfor_fndecl_internal_free): Remove.
1591 (gfor_fndecl_os_error): Add.
1592 (gfc_build_builtin_function_decls): Don't create internal_malloc,
1593 internal_malloc64 and internal_free library function declaration.
1594 Create os_error library call function declaration.
1595 * trans-array.c (gfc_trans_allocate_array_storage,
1596 gfc_trans_auto_array_allocation, gfc_trans_dummy_array_bias,
1597 gfc_conv_array_parameter, gfc_duplicate_allocatable): Use
1598 gfc_call_malloc and gfc_call_free instead of building calls to
1599 internal_malloc and internal_free.
1600 * trans-expr.c (gfc_conv_string_tmp): Likewise.
1601 * trans-stmt.c (gfc_do_allocate, gfc_trans_assign_need_temp,
1602 gfc_trans_pointer_assign_need_temp, gfc_trans_forall_1,
1603 gfc_trans_where_2: Likewise.
1604 * trans-intrinsic.c (gfc_conv_intrinsic_ctime,
1605 gfc_conv_intrinsic_fdate, gfc_conv_intrinsic_ttynam,
1606 gfc_conv_intrinsic_array_transfer, gfc_conv_intrinsic_trim): Likewise.
1607
1608 2007-05-14 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1609
1610 PR fortran/31725
1611 * trans-expr.c (gfc_conv_substring): Evaluate substring bounds
1612 only once.
1613
1614 2007-05-14 Rafael Avila de Espindola <espindola@google.com>
1615
1616 * f95-lang.c (LANG_HOOKS_UNSIGNED_TYPE): Remove.
1617 * trans-intrinsic.c (gfc_conv_intrinsic_ishft): Use unsigned_type_for
1618 instead of gfc_unsigned_type.
1619 * trans-stmt.c (gfc_trans_do): Use unsigned_type_for instead of
1620 gfc_unsigned_type.
1621 * trans-types.c (gfc_unsigned_type): Remove.
1622 * trans-types.h (gfc_unsigned_type): Remove.
1623
1624 2007-05-12 Paul Thomas <pault@gcc.gnu.org>
1625
1626 PR fortran/30746
1627 * resolve.c (check_host_association): New function that detects
1628 incorrect host association and corrects it.
1629 (gfc_resolve_expr): Call the new function for variables and
1630 functions.
1631 * match.h : Remove prototype for gfc_match_rvalue.
1632 * gfortran.h : Add prototype for gfc_match_rvalue.
1633
1634 2007-05-11 Paul Thomas <pault@gcc.gnu.org>
1635
1636 PR fortran/30876
1637 * trans-expr.c (gfc_conv_function_call): Reduce indirection for
1638 direct assignments of recursive array valued functions.
1639 * primary.c (gfc_match_rvalue): Correct error for recursive
1640 function calls such that directly recursive calls of scalar
1641 function without an explicit result are disallowed.
1642
1643 2007-05-11 Paul Thomas <pault@gcc.gnu.org>
1644
1645 PR fortran/30878
1646 * resolve.c (resolve_fl_namelist): It is not an error if the
1647 namelist element is the result variable of the enclosing
1648 function. Search for the symbol in current and all parent
1649 namespaces for a potential conflict.
1650 * symbol.c (check_conflict): Remove the conflict between
1651 'in_namelist' and 'FL_PROCEDURE' because the symbol info
1652 is not available to exclude function result variables.
1653 * trans-io.c (nml_get_addr_expr): Use the fake result decl
1654 if the symbol is an implicit result variable.
1655
1656 2007-05-11 Paul Thomas <pault@gcc.gnu.org>
1657
1658 PR fortran/31474
1659 * decl.c (get_proc_name): If an entry has already been declared
1660 as a module procedure, pick up the symbol and the symtree and
1661 use them for the entry.
1662
1663 2007-05-08 Paul Thomas <pault@gcc.gnu.org>
1664
1665 PR fortran/31630
1666 * resolve.c (resolve_symbol): Remove the flagging mechanism from the
1667 formal namespace resolution and instead check that the formal
1668 namespace is not the current namespace.
1669
1670 2007-05-08 Paul Thomas <pault@gcc.gnu.org>
1671
1672 PR fortran/31692
1673 * trans-array.c (gfc_conv_array_parameter): Convert full array
1674 references to the result of the procedure enclusing the call.
1675
1676 2007-05-08 Paul Thomas <pault@gcc.gnu.org>
1677
1678 PR fortran/29397
1679 PR fortran/29400
1680 * decl.c (add_init_expr_to_sym): Expand a scalar initializer
1681 for a parameter array into an array expression with the right
1682 shape.
1683 * array.c (spec_dimen_size): Remove static attribute.
1684 * gfortran.h : Prototype for spec_dimen_size.
1685
1686 2007-05-07 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1687
1688 PR fortran/31399
1689 * trans-stmt.c (gfc_trans_do): Handle large loop counts.
1690
1691 2007-05-07 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1692
1693 PR fortran/31764
1694 * simplify.c (gfc_simplify_new_line): NEW_LINE can be simplified
1695 even for non constant arguments.
1696
1697 2007-05-06 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1698 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1699
1700 PR fortran/31201
1701 * gfortran.h: Add runtime error codes from libgfortran.h. Define
1702 MAX_UNIT_NUMBER.
1703 * trans.c (gfc_trans_runtime_check): Update the format of runtime error
1704 messages to match library runtime errors. Use call to new library
1705 function runtime_error_at().
1706 * trans.h: Add prototype for new function gfc_trans_io_runtime_check.
1707 Add declaration for library functions runtime_error_at and
1708 generate_error.
1709 * trans_io.c (gfc_trans_io_runtime_check): New function.
1710 (set_parameter_value): Add error checking for UNIT numbers.
1711 (set_parameter_ref): Initialize the users variable to zero.
1712 (gfc_trans_open): Move setting of unit number to after setting of common
1713 flags so that runtime error trapping can be detected.
1714 (gfc_trans_close): Likewise. (build_filepos): Likewise.
1715 (gfc_trans_inquire): Likewise. (build_dt): Likewise.
1716 * trans-decl.c: Add declarations for runtime_error_at and
1717 generate_error. (gfc_build_builtin_function_decls): Build function
1718 declarations for runtime_error_at and generate_error.
1719
1720 2007-05-06 Paul Thomas <pault@gcc.gnu.org>
1721
1722 PR fortran/31540
1723 * resolve.c (resolve_fl_procedure): Resolve constant character
1724 lengths.
1725
1726 2007-05-05 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1727
1728 PR fortran/31251
1729 * decl.c (match_char_spec): Add check for invalid character lengths.
1730
1731 2007-05-04 Brooks Moses <brooks.moses@codesourcery.com>
1732
1733 * intrinsic.texi (CMPLX): Document result kind.
1734 (COMPLEX): Add documentation.
1735
1736 2007-05-04 Daniel Franke <franke.daniel@gmail.com>
1737
1738 PR fortran/31760
1739 * intrinsic.c (add_functions): Replaced calls to gfc_check_g77_math1
1740 by gfc_check_fn_r to avoid checks for scalarity.
1741 * check.c (gfc_check_besn): Removed check for scalarity.
1742 (gfc_check_g77_math1): Removed.
1743 * intrinsic.h (gfc_check_g77_math1): Removed.
1744
1745 2007-05-04 Daniel Franke <franke.daniel@gmail.com>
1746
1747 * check.c (gfc_check_fseek_sub): Fixed typo.
1748
1749 2007-05-04 Daniel Franke <franke.daniel@gmail.com>
1750
1751 PR fortran/22359
1752 * intrinsic.c (add_subroutines): Added FSEEK.
1753 * intrinsic.h (gfc_resolve_fseek_sub, gfc_check_fseek_sub): New.
1754 * iresolve.c (gfc_resolve_fseek_sub): New.
1755 * check.c (gfc_check_fseek_sub): New.
1756 * intrinsic.texi (FSEEK): Updated.
1757
1758 2007-05-04 Tobias Burnus <burnus@net-b.de>
1759
1760 PR fortran/31803
1761 * expr.c (gfc_check_pointer_assign): Check for NULL pointer.
1762
1763 2007-05-04 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1764
1765 PR fortran/31251
1766 * simplify.c (gfc_simplify_len): Only simplify integer lengths.
1767
1768 2007-05-04 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1769
1770 PR fortran/31781
1771 * simplify.c (gfc_simplify_repeat): Don't put function call with
1772 side effect in a gcc_assert().
1773
1774 2007-05-04 Tobias Burnus <burnus@net-b.de>
1775
1776 PR fortran/25071
1777 * interface.c (compare_actual_formal): Check character length.
1778
1779 2007-05-01 Thomas Koenig <tkoenig@gcc.gnu.org>
1780
1781 PR fortran/31732
1782 * dependency.c (gfc_full_array_ref_p): If the reference is
1783 to a single element, check that the array has a single
1784 element and that the correct element is referenced.
1785
1786 2007-05-01 Daniel Franke <franke.daniel@gmail.com>
1787
1788 * intrinsic.c (add_functions): Fixed ELEMENTAL specifications.
1789 (add_subroutines): Replaced magic numbers in function calls by
1790 ELEMENTAL and NOT_ELEMENTAL respectively.
1791 * intrinsic.texi (MVBITS): Changed class to elemental subroutine.
1792 (RANDOM_NUMBER): Changed class to subroutine.
1793 (HUGE, TINY): Changed class to inquiry function.
1794
1795 2007-04-30 Brooks Moses <brooks.moses@codesourcery.com>
1796
1797 * trans-const.c (gfc_conv_mpz_to_tree): Use mpz_get_double_int.
1798 (gfc_conv_tree_to_mpz): New function.
1799 (gfc_conv_mpfr_to_tree): Use real_from_mpfr.
1800 (gfc_conv_tree_to_mpfr): New function.
1801 * trans-const.h: (gfc_conv_tree_to_mpz): New prototype.
1802 (gfc_conv_tree_to_mpfr): New prototype.
1803
1804 2007-04-30 Daniel Franke <franke.daniel@gmail.com>
1805
1806 * intrinsic.texi (IERRNO): Changed class to non-elemental function.
1807 (LOG10): Removed COMPLEX as accepted argument type.
1808 (NEW_LINE): Changed class from elemental to inquiry function.
1809 (SIGN): Removed requirement of scalar arguments.
1810 (SNGL): Changed class to elemental function.
1811
1812 2007-04-29 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1813
1814 PR fortran/31591
1815 * simplify.c (simplify_bound_dim): New function.
1816 (simplify_bound): Use the above. Perform simplification of LBOUND
1817 and UBOUND when DIM argument is not present.
1818
1819 2007-04-29 Daniel Franke <franke.daniel@gmail.com>
1820
1821 * gfortran.texi: Cleaned up keyword index.
1822 * invoke.texi: Likewise.
1823 * intrinsic.texi: Likewise.
1824
1825 2007-04-29 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1826
1827 PR fortran/31645
1828 * scanner.c (load_file): Discard the byte order mark if one is
1829 found on the first non-preprocessor line of a file.
1830
1831 2007-04-29 Paul Thomas <pault@gcc.gnu.org>
1832
1833 PR fortran/31711
1834 * trans-array.c (gfc_conv_resolve_dependencies): Create a temp
1835 whenever a dependency is found.
1836
1837 2007-04-28 Tobias Schlüter <tobi@gcc.gnu.org>
1838
1839 * options.c (gfc_handle_option): Ensure requested free form line
1840 length is not too small.
1841
1842 2007-04-27 Brooks Moses <brooks.moses@codesourcery.com>
1843
1844 * intrinsic.texi (Transfer): Improve documentation.
1845
1846 2007-04-27 Brooks Moses <brooks.moses@codesourcery.com>
1847
1848 * gfortran.texi (Option Index): Add @samp as needed.
1849
1850 2007-04-27 Daniel Franke <franke.daniel@gmail.com>
1851
1852 * gfortran.texi: Added node and menu entry for an option index.
1853 * invoke.texi: Moved command line option related entries of the concept
1854 index to the option index.
1855
1856 2007-04-27 Daniel Franke <franke.daniel@gmail.com>
1857
1858 * intrinsic.texi (AND, FPUT, FPUTC, MODULO, OR, SET_EXPONENT,
1859 XOR): Fixed examples.
1860
1861 2007-04-27 Daniel Franke <franke.daniel@gmail.com>
1862
1863 * intrinsic.texi (PRODUCT, RESHAPE, SPACING, SPREAD, SUM,
1864 SYSTEM_CLOCK, TRANSFER, UNPACK): New.
1865 (DATE_AND_TIME, CPU_TIME, RRSPACING): Added cross references.
1866
1867 2007-04-26 Daniel Franke <franke.daniel@gmail.com>
1868
1869 * intrinsic.texi (NULL, PACK, PRESENT, REPEAT, SCAN, SHAPE,
1870 SIZE, TRANSPOSE, TRIM, VERIFY): New.
1871 (ADJUSTL, ADJUSTR, INDEX): Added cross references.
1872 (INT, INT2, INT8, LONG): Enabled section header.
1873
1874 2007-04-25 Janne Blomqvist <jb@gcc.gnu.org>
1875
1876 * module.c (module_char): Replace fgetc() with
1877 getc().
1878 (write_char): Replace fputc() with putc().
1879 * scanner.c (load_line): Replace fgetc() with getc().
1880 (gfc_read_orig_filename): Likewise.
1881
1882 2007-04-25 Tobias Burnus <burnus@net-b.de>
1883
1884 PR fortran/31668
1885 * error.c (error_print): Fix %% support.
1886 * intrinsic.c (sort_actual): Improve error message.
1887 * resolve.c (resolve_actual_arglist): Allow %VAL for
1888 interfaces defined in the module declaration part.
1889
1890 2007-04-25 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1891
1892 PR libfortran/31299
1893 * intrinsic.texi (GETLOG): Update documentation to reflect
1894 library changes.
1895
1896 2007-04-24 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1897
1898 PR fortran/31587
1899 * module.c (write_char): Add character to the MD5 buffer.
1900 (read_md5_from_module_file): New function.
1901 (gfc_dump_module): Compute MD5 for new module file. Call
1902 read_md5_from_module_file. Only overwrite old module file
1903 if the new MD5 is different.
1904
1905 2007-04-23 Paul Thomas <pault@gcc.gnu.org>
1906
1907 PR fortran/31630
1908 * resolve.c (resolve_symbol): Allow resolution of formal
1909 namespaces nested within formal namespaces coming from modules.
1910
1911 PR fortran/31620
1912 * trans-expr.c (gfc_trans_assignment): Make the call to
1913 gfc_trans_zero_assign conditional on the lhs array ref being
1914 the only reference.
1915
1916 2007-04-23 Tobias Burnus <burnus@net-b.de>
1917
1918 * primary.c (match_integer_constant): Mention -fno-range-check
1919 in the error message.
1920
1921 2007-04-21 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1922
1923 PR fortran/31495
1924 * scanner.c (load_line): Remove check for comment after ampersand and
1925 adjust tracking of ampersand.
1926
1927 2007-04-21 Andrew Pinski <andrew_pinski@playstation.sony.com>
1928
1929 * f95-lang.c (lang_tree_node): Use GENERIC_NEXT
1930 instead of checking GIMPLE_STMT_P in chain_next.
1931
1932 2007-04-17 Tobias Schlüter <tobi@gcc.gnu.org>
1933
1934 * trans-types.h (gfc_packed): New enum.
1935 (gfc_get_nodesc_array_type): Change prototype to use new enum.
1936 * trans-types.c (gfc_get_nodesc_array): Use gfc_packed for
1937 argument packed. Adapt all references to values accordingly.
1938 (gfc_sym_type): Use enum values in call to gfc_get_nodesc_array.
1939 (gfc_get_derived_type): Likewise.
1940 * trans-array.c (gfc_build_constant_array_constructor): Likewise.
1941 * trans-expr.c (gfc_get_interface_mapping_charlen): Changed packed
1942 argument to type gfc_packed.
1943 (gfc_add_interface_mapping): Use enum values in call to
1944 gfc_get_interface_mapping.
1945 * trans-decl.c (gfc_build_dummy_array_decl): Adapt to use enum
1946 values when determining packing.
1947
1948 * trans-decl.c (gfc_finish_decl): Remove unused second argument
1949 'init'. Simplify code accordingly. Remove calls to
1950 gfc_fatal_error in favor of gcc_assert.
1951 (create_function_arglist): Remove second argument from calls to
1952 gfc_finish-decl.
1953 (gfc_trans_dummy_character): Likewise.
1954
1955 * arith.h: Update copyright years.
1956 * dependency.h: Likewise.
1957 * gfortran.h: Likewise.
1958 * lang-specs.h: Likewise.
1959 * parse.h: Likewise.
1960 * symbol.c: Likewise.
1961 * trans.h: Likewise.
1962 * trans.c: Likewise.
1963 * trans-array.c: Likewise.
1964 * trans-common.c: Likewise.
1965 * trans-const.h: Likewise.
1966 * trans-const.c: Likewise.
1967 * trans-decl.c: Likewise.
1968 * trans-expr.c: Likewise.
1969 * trans-io.c: Likewise.
1970 * trans-openmp.c: Likewise.
1971 * trans-types.h: Likewise.
1972 * types.def: Likewise.
1973
1974 2007-04-17 Tobias Schlüter <tobi@gcc.gnu.org>
1975
1976 PR fortran/31144
1977 * decl.c (gfc_sym_mangled_identifier): Use capital letters in name
1978 mangling.
1979 (gfc_sym_mangled_function_id): Likewise.
1980
1981 2007-04-15 Paul Thomas <pault@gcc.gnu.org>
1982
1983 PR fortran/31204
1984 * primary.c (check_for_implicit_index): New function to check
1985 that a host associated variable is not an undeclared implied
1986 do loop index.
1987 (gfc_match_rvalue, match_variable): Use it and reset the
1988 implied_index attribute.
1989 * gfortran.h : Add the implied_index field to symbol_attribute.
1990 * match.c (gfc_match_iterator): Mark the iterator variable
1991 with the new attribute.
1992 * decl.c (build_sym): Reset the new attribute.
1993
1994 2007-04-15 Kazu Hirata <kazu@codesourcery.com>
1995
1996 * gfc-internals.texi: Fix typos.
1997 * simplify.c: Fix a comment typo.
1998
1999 2007-04-14 Bernhard Fischer <aldot@gcc.gnu.org>
2000
2001 * primary.c: Commentary typo fix; Add question about redundant (?)
2002 set.
2003
2004 2007-04-14 Paul Thomas <pault@gcc.gnu.org>
2005
2006 PR fortran/29507
2007 PR fortran/31404
2008 * expr.c (scalarize_intrinsic_call): New function to
2009 scalarize elemental intrinsic functions in initialization
2010 expressions.
2011 (check_init_expr): Detect elemental intrinsic functions
2012 in initalization expressions and call previous.
2013
2014 2007-04-13 Tobias Burnus <burnus@net-b.de>
2015
2016 PR fortran/31559
2017 * primary.c (match_variable): External functions
2018 are no variables.
2019
2020 2007-04-13 Paul Thomas <pault@gcc.gnu.org>
2021
2022 PR fortran/31550
2023 * trans-types.c (copy_dt_decls_ifequal): Do not get pointer
2024 derived type components.
2025
2026 2007-04-13 Tobias Schlüter <tobi@gcc.gnu.org>
2027
2028 PR fortran/18937
2029 * resolve.c: Include obstack.h and bitmap.h. New variable
2030 labels_obstack.
2031 (code_stack): Add tail and reachable_labels fields.
2032 (reachable_labels): New function.
2033 (resolve_branch): Rework to use new fields in code_stack.
2034 (resolve_code): Call reachable_labels.
2035 (resolve_codes): Allocate and free labels_obstack.
2036
2037 2007-04-12 Tobias Schlüter <tobi@gcc.gnu.org>
2038
2039 PR fortran/31250
2040 * decl.c (match_char_spec): Move check for negative CHARACTER
2041 length ...
2042 * resolve.c (resolve_charlen): ... here.
2043 (resolve_types): Resolve CHARACTER lengths earlier.
2044
2045 2007-04-12 Daniel Franke <franke.daniel@gmail.com>
2046
2047 PR fortran/31234
2048 * intrinsic.texi (RANDOM_SEED, RANDOM_NUMBER): New.
2049
2050 2007-04-12 Tobias Schlüter <tobi@gcc.gnu.org>
2051
2052 PR fortran/31266
2053 * primary.c (gfc_variable_attr): Don't copy string length if it
2054 doesn't make sense.
2055 * resolve.c (resolve_code): Clarify error message.
2056
2057 PR fortran/31471
2058 * decl.c (gfc_match_end): Also check for construct name in END
2059 FORALL and END WERE statements.
2060 * match.c (match_case_eos): Use uppercase for statement name in
2061 error message.
2062 (match_elsewhere): Construct name may appear iff construct has a
2063 name.
2064
2065 * trans-types.c: Update copyright years. Reformat long comment
2066 explaining array descriptor format. Remove obsolete mention of
2067 TYPE_SET.
2068
2069 * arith.c (gfc_arith_uplus): Rename to ...
2070 (gfc_arith_identity): ... this.
2071 (gfc_parentheses): New function.
2072 (gfc_uplus): Adapt to renamed function.
2073 * arith.h (gfc_parentheses): Add prototype.
2074 * expr.c (gfc_copy_expr): Deal with INTRINSIC_PARENTHESES.
2075 (simplifiy_intrinsic_op): Treat INTRINSIC_UPLUS separately from
2076 INTRINSIC_PARENTHESES.
2077
2078 2007-04-12 Tobias Burnus <burnus@net-b.de>
2079
2080 PR fortran/31472
2081 * decl.c (match_attr_spec): Allow PRIVATE/PUBLIC
2082 attribute in type definitions.
2083 (gfc_match_private): Allow PRIVATE statement only
2084 in specification part of modules.
2085 (gfc_match_public): Ditto for PUBLIC.
2086 (gfc_match_derived_decl): Allow PRIVATE/PUBLIC attribute only in
2087 specificification part of modules.
2088
2089 2007-04-07 Paul Thomas <pault@gcc.gnu.org>
2090
2091 PR fortran/31257
2092 * intrinsic.c (add_functions): Add ref. to gfc_resolve_achar.
2093 * intrinsic.h : Add prototype for gfc_resolve_achar.
2094 * iresolve.c (gfc_resolve_achar): New function.
2095
2096 2007-04-07 Paul Thomas <pault@gcc.gnu.org>
2097
2098 PR fortran/30880
2099 * resolve.c (resolve_fl_variable): Set flag to 2 for automatic
2100 arrays. Make condition for automatic array error explicit.
2101 If a dummy, no error on an INTENT(OUT) derived type.
2102
2103 2007-04-07 Paul Thomas <pault@gcc.gnu.org>
2104
2105 PR fortran/30872
2106 * expr.c (find_array_element): Correct arithmetic for rank > 1.
2107
2108 2007-04-07 Paul Thomas <pault@gcc.gnu.org>
2109
2110 PR fortran/31222
2111 * check.c (numeric_check): If an expresson has not got a type,
2112 see if it is a symbol for which a default type applies.
2113
2114 2007-04-07 Paul Thomas <pault@gcc.gnu.org>
2115
2116 PR fortran/31214
2117 * trans-decl.c (gfc_get_symbol_decl): Allow unreferenced use
2118 associated symbols.
2119
2120 2007-04-07 Paul Thomas <pault@gcc.gnu.org>
2121
2122 PR fortran/31293
2123 * symbol.c (gfc_check_function_type): New function.
2124 * gfortran.h : Add prototype for previous.
2125 * parse.c (parse_progunit): Call it after parsing specification
2126 statements.
2127
2128 2007-04-05 Paul Thomas <pault@gcc.gnu.org>
2129
2130 PR fortran/31483
2131 * trans-expr.c (gfc_conv_function_call): Give a dummy
2132 procedure the correct type if it has alternate returns.
2133
2134 2007-04-05 Paul Thomas <pault@gcc.gnu.org>
2135
2136 PR fortran/31292
2137 * decl.c (gfc_match_modproc): Go up to the top of the namespace
2138 tree to find the module namespace for gfc_get_symbol.
2139
2140 2007-04-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
2141
2142 PR fortran/31304
2143 * fortran/gfortran.h (gfc_charlen_int_kind): New prototype.
2144 * fortran/trans-types.c (gfc_charlen_int_kind): New variable.
2145 (gfc_init_types): Define gfc_charlen_int_kind.
2146 * fortran/trans.h (gfor_fndecl_string_repeat): Remove prototype.
2147 * fortran/trans-decl.c (gfor_fndecl_string_repeat): Delete.
2148 (gfc_build_intrinsic_function_decls): Don't set
2149 gfor_fndecl_string_repeat.
2150 * fortran/trans-intrinsic.c (gfc_conv_intrinsic_repeat): Rewrite
2151 so that we don't have to call a library function.
2152 * fortran/simplify.c (gfc_simplify_repeat): Perform the necessary
2153 checks on the NCOPIES argument, and work with arbitrary size
2154 arguments.
2155
2156 2007-03-31 Tobias Burnus <burnus@net-b.de>
2157
2158 * intrinsic.c (add_functions): Fix name of dummy argument
2159 for new_line and exit intrinsic.
2160
2161 2007-03-31 Paul Thomas <pault@gcc.gnu.org>
2162
2163 PR fortran/31160
2164 * gfortran.texi: Add a section for the %VAL, %REF and %LOC
2165 extensions.
2166
2167 2007-03-30 Rafael Avila de Espindola <espindola@google.com>
2168
2169 * trans-types.c (gfc_signed_or_unsigned_type): Remove.
2170 (gfc_unsigned_type): Use get_signed_or_unsigned_type instead of
2171 gfc_signed_or_unsigned_type.
2172 (gfc_signed_type): Ditto.
2173 * trans-types.h (gfc_signed_or_unsigned_type): Remove.
2174 * f95-lang.c (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Remove.
2175
2176 2007-03-30 Tobias Schlüter <tobi@gcc.gnu.org>
2177
2178 * symbol.c (gfc_find_gsymbol): Simplify, don't unconditionally
2179 descend into all branches.
2180
2181 2007-03-29 Tobias Schlüter <tobi@gcc.gnu.org>
2182
2183 * intrinsic.c (conv_name): Let gfc_get_string handle the format.
2184 (find_conv): Compare pointers instead of calling strcmp.
2185 (find_sym): Likewise, but ensure that the compared pointer is in
2186 the global string table.
2187
2188 2007-03-28 Tobias Schlüter <tobi@gcc.gnu.org>
2189
2190 * gfc-internals.texi: Fix output filename. Merge type index into
2191 concept index. Start documentation of gfc_code structure.
2192
2193 2007-03-26 Brooks Moses <brooks.moses@codesourcery.com>
2194
2195 * gfc-internals.texi: New file,
2196 * Make-lang.in: Add rules to convert it to dvi, pdf, and info.
2197
2198 2007-03-26 Brooks Moses <brooks.moses@codesourcery.com>
2199
2200 * error.c (show_locus): Remove always-false test.
2201
2202 2007-03-26 Brooks Moses <brooks.moses@codesourcery.com>
2203
2204 * lang.opt: Minor edits to descriptions.
2205
2206 2007-03-25 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
2207
2208 PR fortran/30877
2209 * fortran/interface.c (check_operator_interface): Implement
2210 the standard checks on user operators extending intrinsic operators.
2211 * fortran/resolve.c (resolve_operator): If the ranks of operators
2212 don't match, don't error out but try the user-defined ones first.
2213
2214 2007-03-24 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
2215
2216 PR fortran/30655
2217 * expr.c (check_dimension): Fix logic of comparisons.
2218
2219 2007-03-24 Paul Thomas <pault@gcc.gnu.org>
2220
2221 PR fortran/31215
2222 * trans-expr.c (gfc_apply_interface_mapping_to_expr): Return
2223 int result that is non-zero if the expression is the function
2224 result. Only the characteristics of the result expression
2225 can be used in a procedure interface, so simplify LEN in situ
2226 using its character length.
2227
2228 PR fortran/31209
2229 PR fortran/31200
2230 * trans-expr.c (gfc_conv_function_call): Do not use
2231 gfc_conv_expr_reference for actual pointer function with formal
2232 target because a temporary is created that does not transfer
2233 the reference correctly. Do not indirect formal pointer
2234 functions since it is the function reference that is needed.
2235
2236 2007-03-24 Brooks Moses <brooks.moses@codesourcery.com>
2237
2238 * gfortran.h: Edit comments on GFC_STD_*.
2239
2240 2007-03-23 Brooks Moses <brooks.moses@codesourcery.com>
2241
2242 * invoke.texi: Misc. small typo fixes.
2243 (-Wcharacter-truncation): Add.
2244 (-Wnonstd-intrinsics): Correct spelling.
2245 (-std=): Edit.
2246 (-fintrinsic-modules-path): Add.
2247
2248 2007-03-23 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
2249
2250 PR fortran/30834
2251 * arith.c (complex_pow): Rewrite to handle large power.
2252 (gfc_arith_power): Handle large power in the real and integer
2253 cases.
2254
2255 2007-03-22 Francois-Xavier Coudert <coudert@clipper.ens.fr>
2256
2257 PR fortran/31262
2258 * trans-const.c (gfc_conv_mpz_to_tree): Allow integer constants
2259 larger than twice the width of a HOST_WIDE_INT.
2260
2261 2006-03-22 Paul Thomas <pault@gcc.gnu.org>
2262
2263 PR fortran/31193
2264 * trans-intrinsic.c (gfc_size_in_bytes): Remove function.
2265 (gfc_conv_intrinsic_array_transfer): Remove calls to previous.
2266 Explicitly extract TREE_TYPEs for source and mold. Use these
2267 to calculate length of source and mold, except for characters,
2268 where the se string_length is used. For mold, the TREE_TYPE is
2269 recalculated using gfc_get_character_type_len so that the
2270 result is correctly cast for character literals and substrings.
2271 Do not use gfc_typenode_for_spec for the final cast.
2272
2273 2007-03-22 Tobias Schlüter <tobi@gcc.gnu.org>
2274
2275 PR fortran/20897
2276 * decl.c (gfc_match_derived_decl): Reliably reject
2277 'doubleprecision' and 'doublecomplex' as type names.
2278
2279 2007-03-19 Francois-Xavier Coudert <coudert@clipper.ens.fr>
2280
2281 PR fortran/31203
2282 * trans-expr.c (gfc_trans_init_string_length): Length should
2283 never be negative.
2284 (gfc_conv_function_call): Likewise.
2285
2286 2007-03-18 Paul Thomas <pault@gcc.gnu.org>
2287
2288 PR fortran/30531
2289 PR fortran/31086
2290 * symbo.c : Add gfc_derived_types.
2291 (gfc_free_dt_list): Free derived type list gfc_derived_types.
2292 (gfc_free_namespace): Remove call to gfc_free_dt_list.
2293 (gfc_symbol_done_2): Call gfc_free_dt_list.
2294 * gfortran.h : Declare gfc_derived_types to be external. Remove
2295 derived types field from gfc_namespace.
2296 * resolve.c (resolve_fl_derived): Refer to gfc_derived types
2297 rather than namespace derived_types.
2298 (resolve_fntype): Remove special treatment for module
2299 derived type functions.
2300 * trans-types.c (gfc_get_derived_type): Remove search for like
2301 derived types. Finish by copying back end declaration to like
2302 derived types in the derived type list gfc_derived_types.
2303
2304 2007-03-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
2305
2306 PR fortran/31120
2307 * trans-expr.c (gfc_conv_powi): Make n argument unsigned hwi.
2308 (gfc_conv_cst_int_power): Handle integer exponent with care,
2309 since it might be too large for us.
2310
2311 2007-03-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
2312
2313 PR fortran/31184
2314 * invoke.texi: Fix typo.
2315
2316 2007-03-16 Tobias Burnus <burnus@net-b.de>
2317
2318 * trans-decl.c (gfc_generate_function_code): Use all arguments of
2319 set_std.
2320
2321 2007-03-15 Francois-Xavier Coudert <coudert@clipper.ens.fr>
2322
2323 * gfortran.h (gfc_option_t): Add flag_backtrace field.
2324 * lang.opt: Add -fbacktrace option.
2325 * invoke.texi: Document the new option.
2326 * trans-decl.c (gfc_build_builtin_function_decls): Add new
2327 option to the call to set_std.
2328 * options.c (gfc_init_options, gfc_handle_option): Handle the
2329 new option.
2330
2331 2007-03-15 Tobias Burnus <burnus@gcc.gnu.org>
2332 Paul Thomas <pault@gcc.gnu.org>
2333
2334 PR fortran/30922
2335 * decl.c (gfc_match_import): If the parent of the current name-
2336 space is null, try looking for an imported symbol in the parent
2337 of the proc_name interface.
2338 * resolve.c (resolve_fl_variable): Do not check for blocking of
2339 host association by a same symbol, if the symbol is in an
2340 interface body.
2341
2342 2007-03-15 Paul Thomas <pault@gcc.gnu.org>
2343
2344 PR fortran/30879
2345 * decl.c (match_data_constant): Before going on to try to match
2346 a name, try to match a structure component.
2347
2348
2349 PR fortran/30870
2350 * resolve.c (resolve_actual_arglist): Do not reject a generic
2351 actual argument if it has a same name specific interface.
2352
2353 PR fortran/31163
2354 * trans-array.c (parse_interface): Do not nullify allocatable
2355 components if the symbol has the saved attribute.
2356
2357 2007-03-14 Francois-Xavier Coudert <coudert@clipper.ens.fr>
2358
2359 * trans-array.c (gfc_trans_auto_array_allocation): Replace
2360 fold(convert()) by fold_convert().
2361 (gfc_duplicate_allocatable): Likewise.
2362 * trans-intrinsic.c (gfc_conv_intrinsic_dot_product): Use
2363 build_int_cst instead of converting an integer_zero_node
2364 to the final type.
2365
2366 2007-03-14 Jakub Jelinek <jakub@redhat.com>
2367
2368 * module.c (mio_typespec): Don't look at ts->cl if not BT_CHARACTER.
2369
2370 2007-03-13 Brooks Moses <brooks.moses@codesourcery.com>
2371
2372 PR fortran/30933
2373 PR fortran/30948
2374 PR fortran/30953
2375 * intrinsics.texi (CHDIR): Fix argument names, note
2376 that STATUS must be a default integer.
2377 (CTIME): Fix argument names, note that RESULT must
2378 be a default integer.
2379 (EXIT): Note that STATUS must be a default integer.
2380
2381 2007-03-13 Brooks Moses <brooks.moses@codesourcery.com>
2382
2383 PR fortran/28068
2384 * intrinsic.texi: General whitespace cleanup, remove
2385 comment about missing intrinsics.
2386 (menu): Add lines for new entries listed below.
2387 (ACOSH): Mention specific function DACOSH, correct
2388 description phrasing.
2389 (ASINH): Mention specific function DASINH, correct
2390 description phrasing.
2391 (ATANH): Mention specific function DATANH, correct
2392 description phrasing.
2393 (COS): Add index entry for CCOS.
2394 (CPU_TIME): Correct "REAL" to "REAL(*)".
2395 (EXP): Add index entry for CEXP.
2396 (INT): Correct argument name to "A".
2397 (INT2): New entry.
2398 (INT8): New entry.
2399 (LONG): New entry.
2400 (MAX): Add index entries for specific variants.
2401 (MCLOCK): New entry.
2402 (MCLOCK8): New entry.
2403 (SECNDS): Adjust to a more standard form.
2404 (SECOND): New entry.
2405 (TIME): Add cross-reference to MCLOCK.
2406 (TIME8): Add cross-reference to MCLOCK8.
2407
2408 2007-03-11 Paul Thomas <pault@gcc.gnu.org>
2409
2410 PR fortran/30883
2411 * parse.c (parse_interface): Use the default types from the
2412 formal namespace if a function or its result do not have a type
2413 after parsing the specification statements.
2414
2415 2007-03-08 Brooks Moses <brooks.moses@codesourcery.com>
2416
2417 * intrinsic.texi: (ICHAR) Improve internal I/O note.
2418 (ACHAR): Reference it.
2419 (CHAR): Reference it.
2420 (IACHAR): Reference it.
2421
2422 2007-03-08 Brooks Moses <brooks.moses@codesourcery.com>
2423
2424 * intrinsic.texi: (LINK) Document function form.
2425 (RENAME): Likewise.
2426 (SYMLNK): Likewise.
2427 (SYSTEM): Likewise.
2428 (UNLINK): Likewise.
2429
2430 2007-03-08 Brooks Moses <brooks.moses@codesourcery.com>
2431
2432 * intrinsic.texi: minor typo fixes, removed prologue.
2433 (FSEEK): moved to correct place in alphabetical order.
2434
2435 2007-03-08 Daniel Franke <franke.daniel@gmail.com>
2436
2437 PR fortran/30947
2438 * check.c (gfc_check_alarm_sub): Added check for default integer
2439 kind of status argument.
2440 * iresolve.c (gfc_resolve_alarm_sub): Removed conversion of
2441 status argument.
2442 * intrinsic.texi (ALARM): Extended documentation.
2443
2444 2007-03-08 Daniel Franke <franke.daniel@gmail.com>
2445
2446 * intrinsic.texi (GERROR, ISATTY, TTYNAM): New.
2447 (ABORT, FLUSH, FNUM, IRAND, MALLOC, SIGNAL, SRAND): Fixed typo.
2448 * intrinsic.c (add_subroutines): Adjusted dummy argument names
2449 of GERROR and TTYNAM.
2450
2451 2007-07-08 Tobias Burnus <burnus@net-b.de>
2452
2453 * module.c (gfc_match_use): Support renaming of operators
2454 in USE statements.
2455 * gfortran.texi (Fortran 2003 Status): Document support of
2456 renaming of operators.
2457
2458 2007-07-08 Tobias Burnus <burnus@net-b.de>
2459
2460 PR fortran/30973
2461 * module.c (read_module): Always import module name as symbol.
2462 (gfc_match_use): Disallow module name in the only clause of
2463 a use statement.
2464
2465 2007-03-08 Paul Thomas <pault@gcc.gnu.org>
2466
2467 PR fortran/31011
2468 * expr.c (find_array_section): Correct arithmetic for section
2469 size.
2470
2471 2007-03-07 Brooks Moses <brooks.moses@codesourcery.com>
2472
2473 * iresolve.c (gfc_resolve_ishftc): Correct s_kind value.
2474
2475 2007-03-06 Daniel Franke <franke.daniel@gmail.com>
2476
2477 PR documentation/30950
2478 * intrinsic.texi (AND, CPU_TIME): Fix dummy argument names.
2479 (FREE): Fix call syntax.
2480
2481 2007-03-06 Brooks Moses <brooks.moses@codesourcery.com>
2482
2483 * intrinsic.texi: Limit column widths to a total of .85.
2484
2485 2007-03-05 Brooks Moses <brooks.moses@codesourcery.com>
2486
2487 * gfortran.texi (GFortran and G77): Rewrite completely.
2488
2489 2007-03-05 Brooks Moses <brooks.moses@codesourcery.com>
2490
2491 * match.c (gfc_match_name): Expanded comment.
2492
2493 2007-03-05 Brooks Moses <brooks.moses@codesourcery.com>
2494
2495 * gfortran.texi (Old-style kind specifications): Document
2496 special handling of old-style kind specifiers for COMPLEX.
2497 * decl.c (gfc_match_old_kind_spec): Document kind/bytesize
2498 assumptions for COMPLEX in comment.
2499
2500 2007-03-05 Brooks Moses <brooks.moses@codesourcery.com>
2501
2502 PR 31050
2503 * gfortranspec.c (lang_specific_driver): Update program
2504 name and copyright date.
2505
2506 2007-03-03 Paul Thomas <pault@gcc.gnu.org>
2507
2508 PR fortran/30882
2509 * check.c (dim_rank_check): The shape of subsections of
2510 assumed-size arrays is known.
2511
2512 2007-03-02 Paul Thomas <pault@gcc.gnu.org>
2513 Tobias Burnus <burnus@net-b.de>
2514
2515 PR fortran/30873
2516 * decl.c (gfc_match_entry): Remove erroneous entry result check.
2517
2518 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
2519
2520 * Make-lang.in: Add install-pdf target as copied from
2521 automake v1.10 rules.
2522
2523 2007-03-01 Tobias Burnus <burnus@net-b.de>
2524
2525 PR fortran/30865
2526 * trans-intrinsic.c (gfc_conv_intrinsic_size): Compare pointers.
2527
2528 2007-02-28 Tobias Burnus <burnus@net-b.de>
2529 Paul Thomas <pault@gcc.gnu.org>
2530
2531 PR fortran/30888
2532 PR fortran/30887
2533 * resolve.c (resolve_actual_arglist): Allow by-value
2534 arguments and non-default-kind for %VAL().
2535 * trans-expr.c (conv_arglist_function): Allow
2536 non-default-kind for %VAL().
2537
2538 2007-02-28 Tobias Burnus <burnus@net-b.de>
2539
2540 PR fortran/30968
2541 * primary.c (next_string_char): Correct reading a character
2542 after the delimiter.
2543 (match_string_constant): Print warning message only once.
2544
2545 2007-02-27 Richard Guenther <rguenther@suse.de>
2546
2547 * trans-array.c (structure_alloc_comps): Use correct type
2548 for null pointer constant.
2549
2550 2007-02-26 Brooks Moses <brooks.moses@codesourcery.com>
2551
2552 * gfortran.texi: Standardize title page, remove version number
2553 from copyright page.
2554
2555 2007-02-26 Thomas Koenig <Thomas.Koenig@online.de>
2556 Paul Thomas <pault@gcc.gnu.org>
2557
2558 PR fortran/30865
2559 * trans-intrinsic.c (gfc_conv_intrinsic_size):
2560 If dim is an optional argument, check for its
2561 presence and call size0 or size1, respectively.
2562
2563 2007-02-23 Paul Thomas <pault@gcc.gnu.org>
2564
2565 PR fortran/30660
2566 * resolve.c (has_default_initializer): New function.
2567 (resolve_fl_variable): Call has_default_initializer to determine if
2568 the derived type has a default initializer to its ultimate
2569 components.
2570
2571
2572 2007-02-22 Jerry DeLisle <jvdelisle@gcc.gnu.org>
2573
2574 * options.c (set_default_std_flags): New function to consolidate
2575 setting the flags.
2576 (gfc_init_options): Use new function.
2577 (gfc_handle_option): Use new function.
2578
2579 2007-02-22 Brooks Moses <brooks.moses@codesourcery.com>
2580
2581 * gfortran.texi (Old-style kind specifications): Document
2582 special handling of old-style kind specifiers for COMPLEX.
2583 * decl.c (gfc_match_old_kind_spec): Documented kind/bytesize
2584 assumptions in comment.
2585
2586 2007-02-21 Bernhard Fischer <aldot@gcc.gnu.org>
2587
2588 * parse.c (next_free): Gooble spaces after OpenMP sentinel.
2589
2590 2007-02-20 Thomas Koenig <Thomas.Koenig@online.de>
2591
2592 PR fortran/30869
2593 * match.c (gfc_match_iterator): Remove conflict between
2594 loop variable and pointer.
2595
2596 2007-02-20 Tobias Burnus <burnus@net-b.de>
2597
2598 PR fortran/30522
2599 * symbol.c (gfc_add_volatile): Allow to set VOLATILE
2600 attribute for host-associated variables.
2601 * gfortran.h (symbol_attribute): Save namespace
2602 where VOLATILE has been set.
2603 * trans-decl.c (gfc_finish_var_decl): Move variable
2604 declaration to the top.
2605
2606 2007-02-20 Tobias Burnus <burnus@net-b.de>
2607
2608 PR fortran/30783
2609 * resolve.c (resolve_symbol): Add character dummy VALUE check.
2610
2611 2007-02-19 Thomas Koenig <Thomas.Koenig@online.de>
2612
2613 PR libfortran/30533
2614 * fortran/iresolve.c (gfc_resolve_maxloc): Remove coercion of
2615 argument to default integer.
2616 (gfc_resolve_minloc): Likewise.
2617
2618 2007-02-18 Jerry DeLisle <jvdelisle@gcc.gnu.org>
2619
2620 PR fortran/30681
2621 * options.c (gfc_init_options): Relax warning level for obsolescent.
2622 * match.c (match_arithmetic_if): Change to obsolescent from deleted.
2623 (gfc_match_if): Same.
2624
2625 2007-02-18 Roger Sayle <roger@eyesopen.com>
2626
2627 * trans-array.c (gfc_build_constant_array_constructor): When the
2628 shape of the constructor is known, use that to construct the
2629 gfc_array_spec.
2630 (gfc_trans_constant_array_constructor): Initialize the "info"
2631 information for all of the dimensions of the array constructor.
2632 (constant_array_constructor_loop_size): New function.
2633 (gfc_trans_array_constructor): Use it to determine whether a
2634 loop is suitable for "constant array constructor" optimization.
2635
2636 * trans-intrinsic.c (gfc_conv_intrinsic_anyall): Use fold_build2
2637 instead of build2, to avoid conditions like "(a != b) != 0".
2638
2639 2007-02-18 Roger Sayle <roger@eyesopen.com>
2640 Paul Thomas <pault@gcc.gnu.org>
2641
2642 PR fortran/30400
2643 * match.c (match_forall_iterator): Use gfc_match_expr instead
2644 of gfc_match_variable to match the iterator variable. Return
2645 MATCH_NO if not a variable. Remove the reset of the symbol's
2646 flavor in cleanup.
2647
2648 2007-02-16 Tobias Burnus <burnus@net-b.de>
2649
2650 PR fortran/30793
2651 * trans-decl.c (gfc_generate_function_code): Do not initialize
2652 pointers to derived components.
2653
2654 2007-02-15 Sandra Loosemore <sandra@codesourcery.com>
2655 Brooks Moses <brooks.moses@codesourcery.com>
2656 Lee Millward <lee.millward@codesourcery.com>
2657
2658 * trans-expr.c (gfc_conv_power_op): Use build_call_expr.
2659 (gfc_conv_string_tmp): Likewise.
2660 (gfc_conv_concat_op): Likewise.
2661 (gfc_build_compare_string): Likewise.
2662 (gfc_conv_function_call): Use build_call_list instead of build3.
2663
2664 * trans-array.c (gfc_trans_allocate_array_storage): Use
2665 build_call_expr.
2666 (gfc_grow_array): Likewise.
2667 (gfc_trans_array_ctor_element): Likewise.
2668 (gfc_trans_array_constructor_value): Likewise.
2669 (gfc_array_allocate): Likewise.
2670 (gfc_array_deallocate): Likewise.
2671 (gfc_trans_auto_array_allocation): Likewise.
2672 (gfc_trans_dummy_array_bias): Likewise.
2673 (gfc_conv_array_parameter): Likewise.
2674 (gfc_trans_dealloc_allocated): Likewise.
2675 (gfc_duplicate_allocatable): Likewise.
2676
2677 * trans-openmp.c (gfc_trans_omp_barrier): Use build_call_expr.
2678 (gfc_trans_omp_flush): Likewise.
2679
2680 * trans-stmt.c (gfc_conv_elementel_dependencies): Use build_call_expr.
2681 (gfc_trans_pause): Likewise.
2682 (gfc_trans_stop): Likewise.
2683 (gfc_trans_character_select): Likewise.
2684 (gfc_do_allocate): Likewise.
2685 (gfc_trans_assign_need_temp): Likewise.
2686 (gfc_trans_pointer_assign_need_temp): Likewise.
2687 (gfc_trans_forall_1): Likewise.
2688 (gfc_trans_where_2): Likewise.
2689 (gfc_trans_allocate): Likewise.
2690 (gfc_trans_deallocate): Likewise.
2691
2692 * trans.c (gfc_trans_runtime_check): Use build_call_expr.
2693
2694 * trans-io.c (gfc_trans_open): Use build_call_expr.
2695 (gfc_trans_close): Likewise.
2696 (build_filepos): Likewise.
2697 (gfc_trans_inquire): Likewise.
2698 (NML_FIRST_ARG): Delete.
2699 (NML_ADD_ARG): Delete.
2700 (transfer_namelist_element): Use build_call_expr.
2701 (build_dt): Likewise.
2702 (gfc_trans_dt_end): Likewise.
2703 (transfer_expr): Likewise.
2704 (transfer_array-desc): Likewise.
2705
2706 * trans-decl.c (gfc_generate_function_code): Use build_call_expr.
2707 (gfc_generate_constructors): Likewise.
2708
2709 * trans-intrinsic.c (gfc_conv_intrinsic_ctime): Use build_call_expr.
2710 (gfc_conv_intrinsic_fdate): Likewise.
2711 (gfc_conv_intrinsic_ttynam): Likewise.
2712 (gfc_conv_intrinsic_array_transfer): Likewise.
2713 (gfc_conv_associated): Likewise.
2714 (gfc_conv_intrinsic_si_kind): Likewise.
2715 (gfc_conv_intrinsic_trim): Likewise.
2716 (gfc_conv_intrinsic_repeat: Likewise.
2717 (gfc_conv_intrinsic_iargc): Likewise.
2718
2719 2007-02-14 Jerry DeLisle <jvdelisle@gcc.gnu.org>
2720
2721 PR fortran/30779
2722 * scanner.c (gfc_next_char_literal): Add check for end of file after
2723 call to advance_line.
2724
2725 2007-02-14 Steven G. Kargl <kargl@gcc.gnu.org>
2726
2727 PR fortran/30799
2728 * primary.c (match_logical_constant): Return MATCH_ERROR on invalid
2729 kind.
2730
2731 2007-02-14 Steven G. Kargl <kargl@gcc.gnu.org>
2732
2733 * misc.c (gfc_typename): Fix potential buffer overflow.
2734
2735 2007-02-13 Paul Thomas <pault@gcc.gnu.org>
2736
2737 PR fortran/30554
2738 * module.c (read_module): Set pointer_info to referenced if the
2739 symbol has no namespace.
2740
2741 2007-02-12 Nick Clifton <nickc@redhat.com>
2742
2743 * lang.opt: Add Warning attribute to warning options.
2744
2745 2007-02-11 Daniel Franke <franke.daniel@gmail.com>
2746
2747 * intrinsic.texi (HOSTNM): Fix typographical error in syntax.
2748 (SLEEP): Added section and documentation.
2749
2750 2007-02-11 Tobias Schlüter <tobi@gcc.gnu.org>
2751
2752 PR fortran/30478
2753 * decl.c (add_init_expr_to_sym): Remove ENUM specific code.
2754 (variable_decl): Likewise. Rewrap comment.
2755 (match_attr_spec): Remove ENUM specific code.
2756 (gfc_match_enum): Fix typo in error message.
2757 (enumerator_decl): New function.
2758 (gfc_match_enumerator_def): Use enumerator_decl instead of
2759 variable_decl. Adapt code accordingly.
2760
2761 2007-02-11 Paul Thomas <pault@gcc.gnu.org>
2762
2763 PR fortran/30554
2764 * module.c (find_symtree_for_symbol): New function to return
2765 a symtree that is not a "unique symtree" given a symbol.
2766 (read_module): Do not automatically set pointer_info to
2767 referenced because this inhibits the generation of a unique
2768 symtree. Recycle the existing symtree if possible by calling
2769 find_symtree_for_symbol.
2770
2771 PR fortran/30319
2772 * decl.c (add_init_expr_to_sym): Make new charlen for an array
2773 constructor initializer.
2774
2775 2007-02-10 Richard Henderson <rth@redhat.com>, Jakub Jelinek <jakub@redhat.com>
2776
2777 * f95-lang.c (gfc_init_builtin_functions): Add __emutls_get_address
2778 and __emutls_register_common.
2779 * openmp.c (gfc_match_omp_threadprivate): Don't error if !have_tls.
2780 * trans-common.c (build_common_decl): Don't check have_tls.
2781 * trans-decl.c (gfc_finish_var_decl): Likewise.
2782 * types.def (BT_WORD, BT_FN_PTR_PTR): New.
2783 (BT_FN_VOID_PTR_WORD_WORD_PTR): New.
2784
2785 2007-02-09 Tobias Burnus <burnus@net-b.de>
2786
2787 PR fortran/30512
2788 * trans-intrinsic.c (gfc_conv_intrinsic_minmaxloc,
2789 gfc_conv_intrinsic_minmaxval): Use HUGE-1 for most negative integer.
2790
2791 2007-02-09 Francois-Xavier Coudert <coudert@clipper.ens.fr>
2792
2793 PR fortran/30720
2794 * trans-array.c (gfc_trans_create_temp_array): Remove use of the
2795 function argument. Always generate code for negative extent.
2796 Simplify said code.
2797 * trans-array.h (gfc_trans_create_temp_array): Change prototype.
2798 * trans-expr.c (gfc_conv_function_call): Remove use of last argument
2799 of gfc_trans_create_temp_array.
2800 * trans-intrinsic.c (gfc_conv_intrinsic_array_transfer): Likewise.
2801 * trans-stmt.c (gfc_conv_elemental_dependencies): Likewise.
2802
2803 2007-02-08 Roger Sayle <roger@eyesopen.com>
2804
2805 * trans-stmt.c (gfc_trans_forall_1): Optimize the cases where the
2806 mask expression is a compile-time constant (".true." or ".false.").
2807
2808 2007-02-04 Francois-Xavier Coudert <coudert@clipper.ens.fr>
2809
2810 PR fortran/30611
2811 * trans-intrinsic.c (gfc_conv_intrinsic_repeat): Evaluate
2812 arguments only once. Generate check that NCOPIES argument is not
2813 negative.
2814
2815 2007-02-04 Steven G. Kargl <kargl@gcc.gnu.org>
2816
2817 PR fortran/30605
2818 * fortran/invoke.texi: Update documentation.
2819 * fortran/options.c (gfc_post_options): Deal with tabs with -std=f2003
2820 and -pedantic.
2821
2822 2007-02-03 Kazu Hirata <kazu@codesourcery.com>
2823
2824 * trans-array.c: Fix a comment typo.
2825
2826 2007-02-03 Paul Thomas <pault@gcc.gnu.org>
2827
2828 PR fortran/30514
2829 * array.c (match_array_element_spec): If the length of an array is
2830 negative, adjust the upper limit to make it zero length.
2831
2832 PR fortran/30660
2833 * resolve.c (pure_function, resolve_function): Initialize name to
2834 null to clear up build warnings.
2835 (resolve_fl_variable): Look at components explicitly to check for
2836 default initializer, rather than using gfc_default_initializer.
2837
2838 2007-02-02 Steven G. Kargl <kargl@gcc.gnu.org>
2839
2840 PR fortran/30683
2841 * resolve.c (resolve_generic_f): Check for non-NULL sym.
2842
2843 2007-02-02 Roger Sayle <roger@eyesopen.com>
2844
2845 * trans.c (gfc_build_array_ref): Use STRIP_TYPE_NOPS to eliminate
2846 NON_LVALUE_EXPR nodes and useless type conversions.
2847
2848 2007-02-02 Paul Thomas <pault@gcc.gnu.org>
2849
2850 PR fortran/30284
2851 PR fortran/30626
2852 * trans-expr.c (gfc_conv_aliased_arg): Remove static attribute
2853 from function and make sure that substring lengths are
2854 translated.
2855 (is_aliased_array): Remove static attribute.
2856 * trans.c : Add prototypes for gfc_conv_aliased_arg and
2857 is_aliased_array.
2858 * trans-io.c (set_internal_unit): Add the post block to the
2859 arguments of the function. Use is_aliased_array to check if
2860 temporary is needed; if so call gfc_conv_aliased_arg.
2861 (build_dt): Pass the post block to set_internal_unit and
2862 add to the block after all io activiy is done.
2863
2864 2007-02-01 Roger Sayle <roger@eyesopen.com>
2865
2866 * trans-array.c (gfc_conv_expr_descriptor): We don't need to use
2867 a temporary array to pass a constant non-character array constructor.
2868 Generalize the descriptor generation code to handle scalarizer
2869 "info" without an array reference.
2870
2871 2007-02-01 Roger Sayle <roger@eyesopen.com>
2872
2873 * dependency.c (gfc_check_dependency) <EXPR_ARRAY>: Implement
2874 dependency checking for array constructors.
2875
2876 2007-02-01 Roger Sayle <roger@eyesopen.com>
2877
2878 * trans-stmt.c (compute_overall_iter_number): Document function
2879 arguments. Generalize "unconditional forall nest with constant
2880 bounds" optimization to eliminate unconditional inner loops with
2881 constant bounds.
2882
2883 2007-01-31 Tobias Burnus <burnus@net-b.de>
2884
2885 PR fortran/30520
2886 * interface.c (compare_actual_formal): Check conformance between
2887 actual and VOLATILE dummy arguments.
2888 * symbol.c (gfc_add_volatile): Allow setting of VOLATILE
2889 multiple times in different scopes.
2890 * decl.c (gfc_match_volatile): Search symbol in host association.
2891
2892 2007-01-31 Kazu Hirata <kazu@codesourcery.com>
2893
2894 * simplify.c, trans-array.c: Fix comment typos.
2895
2896 2007-01-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2897
2898 * invoke.texi (Code Gen Options): Fix abbreviation typo.
2899 * intrinsic.texi (ACCESS, LSHIFT, RSHIFT): Fix typos.
2900
2901 2007-01-30 Steve Ellcey <sje@cup.hp.com>
2902
2903 PR fortran/30432
2904 * trans-types.c (gfc_get_function_type): Do not add void_type_node
2905 to empty arg list.
2906 * trans-decl.c (create_function_arglist): Change assert.
2907
2908 2007-01-29 Paul Thomas <pault@gcc.gnu.org>
2909
2910 PR fortran/30554
2911 * module.c (read_module): If a symbol is excluded by an ONLY
2912 clause, check to see if there is a symtree already loaded. If
2913 so, attach the symtree to the pointer_info.
2914
2915 2007-01-28 Thomas Koenig <Thomas.Koenig@online.de>
2916
2917 PR libfortran/30389
2918 * gfortran.h: Remove gfc_simplify_init_1.
2919 * arith.h: Remove third argument from gfc_compare_string.
2920 * arith.c (gfc_compare_expression): Remove third argument
2921 from call to gfc_compare_string.
2922 (gfc_compare_string): Remove third argument xcoll_table.
2923 Remove use of xcoll_table.
2924 * misc.c (gfc_init_1): Remove call to gfc_simplify_init_1.
2925 * simplify.c (ascii_table): Remove.
2926 (xascii_table): Likewise.
2927 (gfc_simplify_achar): ICE if extract_int fails. Remove use of
2928 ascii_table. Warn if -Wsurprising and value < 0 or > 127.
2929 (gfc_simplify_char): ICE if extract_int fails. Error if
2930 value < 0 or value > 255.
2931 (gfc_simplify_iachar): Remove use of xascii_table.
2932 Char values outside of 0..255 are an ICE.
2933 (gfc_simplify_lge): Remove use of xascii_table.
2934 (gfc_simplify_lgt): Likewise.
2935 (gfc_simplify_lle): Likewise.
2936 (gfc_simplify_llt): Likewise.
2937 (invert_table): Remove.
2938 (gfc_simplify_init_1): Remove.
2939
2940 2007-01-27 Roger Sayle <roger@eyesopen.com>
2941
2942 * trans-stmt.c (forall_info): Replace the next_nest and outer
2943 fields that previously implemented a doubly-linked list with a
2944 single prev_nest field (singly-linked list).
2945 (gfc_trans_nested_forall_loop): The nested_forall_info argument
2946 now denotes the innermost FORALL in the loop nest.
2947 (compute_overall_iter_number): Use prev_nest instead of next_nest.
2948 (gfc_trans_forall_1): Link/cons the new "info" to the head of the
2949 nested_forall_info linked list. Free the current "info" when done.
2950
2951 2007-01-27 Paul Thomas <pault@gcc.gnu.org>
2952
2953 PR fortran/30407
2954 * trans-expr.c (gfc_conv_operator_assign): New function.
2955 * trans.h : Add prototype for gfc_conv_operator_assign.
2956 * trans-stmt.c (gfc_trans_where_assign): Add a gfc_symbol for
2957 a potential operator assignment subroutine. If it is non-NULL
2958 call gfc_conv_operator_assign instead of the first assignment.
2959 ( gfc_trans_where_2): In the case of an operator assignment,
2960 extract the argument expressions from the code for the
2961 subroutine call and pass the symbol to gfc_trans_where_assign.
2962 resolve.c (resolve_where, gfc_resolve_where_code_in_forall,
2963 gfc_resolve_forall_body): Resolve the subroutine call for
2964 operator assignments.
2965
2966 2007-01-26 Steven Bosscher <stevenb.gcc@gmail.com>
2967 Steven G. Kargl <kargl@gcc.gnu.org>
2968
2969 PR fortran/30278
2970 * fortran/io.c (next_char): Deal with backslash escaped characters.
2971 Issue warnings in non -std=gnu cases.
2972 * fortran/primary.c (next_string_char): Issue warnings in non
2973
2974 2007-01-26 Tobias Burnus <burnus@net-b.de>
2975
2976 * lang-specs.h: Add support for .f03 and .F03 extensions.
2977 * gfortran.texi: Document .f03 extension.
2978 * options.c (form_from_filename): Recognize .f03.
2979
2980 2007-01-25 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
2981
2982 PR fortran/30437
2983 * lang.opt (Wall): Remove RejectNegative.
2984 * options.c (gfc_handle_option): Wall can be disabled.
2985 (set_Wall): Add a parameter for disabling Wall.
2986
2987 2007-01-23 Jerry DeLisle <jvdelisle@gcc.gnu.org>
2988
2989 PR fortran/30532
2990 * scanner.c (load_line): Remove check fot ctrl-z and don't gobble.
2991
2992 2007-01-23 Paul Thomas <pault@gcc.gnu.org>
2993
2994 PR fortran/30481
2995 * match.c (gfc_match_namelist): Add check for assumed size character
2996 in namelist and provide error if found.
2997
2998 2007-01-21 Brooks Moses <brooks.moses@codesourcery.com>
2999
3000 * intrinsic.texi (ACHAR): Added cross-references.
3001 (CHAR): Put cross-references in alphabetical order.
3002 (IACHAR): Added cross-references.
3003 (ICHAR): Added cross-references.
3004
3005 2007-01-20 Brooks Moses <brooks.moses@codesourcery.com>
3006
3007 * intrinsic.texi: Edited all "Syntax" examples to a consistent form.
3008 (MAXVAL): Corrected description of result characteristics.
3009 (MINVAL): Same.
3010 (UMASK): Added documentation.
3011
3012 2007-01-20 Steven G. Kargl <kargl@gcc.gnu.org>
3013
3014 * openmp.c, matchexp.c, module.c, scanner.c, resolve.c, st.c,
3015 parse.c, primary.c, options.c, misc.c, simplify.c: Next installment
3016 in the massive whitespace patch.
3017
3018 2007-01-20 Roger Sayle <roger@eyesopen.com>
3019
3020 * module.c (mio_array_ref): The dimen_type fields of an array ref
3021 are an enumerated type and can't be read/written directly with a
3022 call to mio_integer. Instead loop over and cast each element.
3023
3024 2007-01-20 Roger Sayle <roger@eyesopen.com>
3025
3026 * dependency.c (gfc_full_array_ref_p): Check that ref->next is NULL,
3027 i.e. that the ARRAY_REF doesn't mention components.
3028 * trans-array.c (gfc_constant_array_constructor_p): Export external
3029 function renamed from constant_array_constructor_p.
3030 (gfc_build_constant_array_constructor): Export.
3031 (gfc_trans_array_constructor): Update call to the renamed function
3032 constant_array_constructor_p.
3033 * trans-array.h (gfc_constant_array_constructor_p): Prototype here.
3034 (gfc_build_constant_array_constructor): Likewise.
3035 * trans-expr.c (gfc_build_memcpy_call): New helper function split
3036 out from gfc_trans_array_copy.
3037 (gfc_trans_array_copy): Use gfc_build_memcpy_call.
3038 (gfc_trans_array_constructor_copy): New function to optimize
3039 assigning an entire array from a constant array constructor.
3040 (gfc_trans_assignment): Call gfc_trans_array_constructor_copy
3041 when appropriate.
3042
3043 2007-01-20 Roger Sayle <roger@eyesopen.com>
3044
3045 * trans-intrinsic.c (gfc_conv_intrinsic_sign): New branchless
3046 implementation for the SIGN intrinsic with integral operands.
3047 (gfc_conv_intrinsic_minmax): Fix whitespace.
3048
3049 2007-01-20 Francois-Xavier Coudert <coudert@clipper.ens.fr>
3050
3051 * gfortran.h (gfc_options_t): Add flag_allow_leading_underscore.
3052 * lang.opt: Add -fallow-leading-underscore.
3053 * match.c (gfc_match_name): Allow leading underscore in symbol
3054 name if -fallow-leading-underscore is used.
3055 * symbol.c (gfc_get_default_type): Add special case for symbol
3056 names beginning with an underscore.
3057 * trans-decl.c (gfc_get_extern_function_decl,
3058 gfc_build_intrinsic_function_decls): Add _gfortran prefix to
3059 library symbols selected_int_kind, selected_real_kind and
3060 all specifics.
3061 * options.c (gfc_init_options, gfc_handle_option): Handle the
3062 new -fallow-leading-underscore option.
3063
3064 2007-01-20 Francois-Xavier Coudert <coudert@clipper.ens.fr>
3065
3066 PR fortran/30446
3067 * options.c (gfc_handle_module_path_options): Path used in -J
3068 option is now added to the module search path.
3069
3070 2007-01-20 Richard Guenther <rguenther@suse.de>
3071
3072 PR fortran/30223
3073 * f95-lang.c (gfc_init_builtin_functions): Provide cbrt and
3074 cexpi builtins if we have TARGET_C99_FUNCTIONS. Provide
3075 sincos builtins if the target has sincos.
3076
3077 2007-01-19 Brooks Moses <brooks.moses@codesourcery.com>
3078
3079 * intrinsic.texi (MATMUL): Corrected a typo.
3080 (MAX): Separated @var arguments.
3081 (MIN): Separated @var arguments.
3082
3083 2007-01-19 Brooks Moses <brooks.moses@codesourcery.com>
3084
3085 * intrinsic.texi: general whitespace cleanup.
3086 (menu): Added TIME8, removed UNMASK.
3087 (AINT): Clarified argument requirement.
3088 (ANINT): Clarified argument requirement.
3089 (CEILING): Clarified argument requirement.
3090 (CHAR): Clarified argument requirement.
3091 (CMPLX): Clarified argument requirement.
3092 (DCMPLX): Clarified argument requirement.
3093 (FGET): Line rewrapping.
3094 (FLOOR): Clarified argument requirement.
3095 (GMTIME): Added documentation.
3096 (IAND): Added cross-reference.
3097 (IBCLR): Added cross-reference.
3098 (IBSET): Added cross-reference.
3099 (IEOR): Added cross-reference.
3100 (INT): Collapsed examples, clarified argument requirement.
3101 (IOR): Added cross-references.
3102 (LEN_TRIM): Corrected result kind.
3103 (LINK): Added cross-reference.
3104 (LLT): Removed "documentation pending".
3105 (LOGICAL): Added documentation.
3106 (LSHIFT): Added documentation.
3107 (LTIME): Added documentation.
3108 (MATMUL): Added documentation.
3109 (MAX): Added documentation.
3110 (MAXLOC): Added documentation.
3111 (MAXVAL): Added documentation.
3112 (MERGE): Added documentation.
3113 (MIN): Added documentation.
3114 (MINLOC): Added documentation.
3115 (MINVAL): Added documentation.
3116 (MVBITS): Moved to correct place, added documentation.
3117 (NOT): Added documentation.
3118 (PERROR): Added documentation.
3119 (RAN): Moved to correct place, added documentation.
3120 (REAL): Clarified argument requirement.
3121 (RENAME): Added documentation.
3122 (RSHIFT): Clarified argument requirement.
3123 (SIGN): Corrected table specification.
3124 (SYMLNK): Added documentation.
3125 (SYSTEM): Added documentation.
3126 (TIME): Added documentation.
3127 (TIME8): Added section and documentation.
3128 (UNMASK): Removed erroneous section.
3129
3130 2007-01-18 H.J. Lu <hongjiu.lu@intel.com>
3131
3132 * trans-stmt.c (compute_overall_iter_number): Fix a typo.
3133
3134 2007-01-18 Roger Sayle <roger@eyesopen.com>
3135
3136 * trans-expr.c (copyable_array_p): Consider user derived types without
3137 allocatable components to be copyable.
3138
3139 2007-01-18 Roger Sayle <roger@eyesopen.com>
3140
3141 * trans-stmt.c (compute_overall_iter_number): Enhance to precompute
3142 the number of interations in unconditional FORALL nests with constant
3143 bounds.
3144
3145 2007-01-18 Francois-Xavier Coudert <coudert@clipper.ens.fr>
3146 Tobias Burnus <burnus@net-b.de>
3147
3148 PR libfortran/29649
3149 * gfortran.h (gfc_option_t): Add flag_dump_core.
3150 * lang.opt: Add -fdump-core option.
3151 * invoke.texi: Document the new options.
3152 * trans-decl.c (gfc_build_builtin_function_decls): Add new
3153 options to the call to set_std.
3154 * options.c (gfc_init_options, gfc_handle_option): Set the
3155 new options.
3156
3157 2007-01-17 Paul Thomas <pault@gcc.gnu.org>
3158
3159 PR fortran/30476
3160 * module.c (load_generic_interfaces): Make the marking of the
3161 symbol as ambiguous conditional on the module names being
3162 different.
3163 (write_generic): Ensure that the generic interface has a
3164 non-NULL module field.
3165
3166 2007-01-16 Roger Sayle <roger@eyesopen.com>
3167
3168 PR fortran/30404
3169 * trans-stmt.c (forall_info): Remove pmask field.
3170 (gfc_trans_forall_loop): Remove NVAR argument, instead assume that
3171 NVAR covers all the interation variables in the current forall_info.
3172 Add an extra OUTER parameter, which specified the loop header in
3173 which to place mask index initializations.
3174 (gfc_trans_nested_forall_loop): Remove NEST_FLAG argument.
3175 Change the semantics of MASK_FLAG to only control the mask in the
3176 innermost loop.
3177 (compute_overall_iter_number): Optimize the trivial case of a
3178 top-level loop having a constant number of iterations. Update
3179 call to gfc_trans_nested_forall_loop. Calculate the number of
3180 times the inner loop will be executed, not to size of the
3181 iteration space.
3182 (allocate_temp_for_forall_nest_1): Reuse SIZE as BYTESIZE when
3183 sizeof(type) == 1. Tidy up.
3184 (gfc_trans_assign_need_temp): Remove NEST_FLAG argument from calls
3185 to gfc_trans_nested_forall_loop.
3186 (gfc_trans_pointer_assign_need_temp): Likewise.
3187 (gfc_trans_forall_1): Remove unused BYTESIZE, TMPVAR, SIZEVAR and
3188 LENVAR local variables. Split mask allocation into a separate
3189 hunk/pass from mask population. Use allocate_temp_for_forall_nest
3190 to allocate the FORALL mask with the correct size. Update calls
3191 to gfc_trans_nested_forall_loop.
3192 (gfc_evaluate_where_mask): Update call to
3193 gfc_trans_nested_forall_loop.
3194 (gfc_trans_where_2): Likewise.
3195
3196 2007-01-15 Paul Thomas <pault@gcc.gnu.org>
3197
3198 PR fortran/28172
3199 * trans-stmt.c (gfc_trans_call): If it does not have one, get
3200 a backend_decl for an alternate return.
3201
3202 PR fortran/29389
3203 * resolve.c (pure_function): Statement functions are pure. Note
3204 that this will have to recurse to comply fully with F95.
3205
3206 PR fortran/29712
3207 * resolve.c (resolve_function): Only a reference to the final
3208 dimension of an assumed size array is an error in an inquiry
3209 function.
3210
3211 PR fortran/30283
3212 * resolve.c (resolve_function): Make sure that the function
3213 expression has a type.
3214
3215 2007-01-14 Paul Thomas <pault@gcc.gnu.org>
3216
3217 PR fortran/30410
3218 * trans-decl.c (gfc_sym_mangled_function_id): Module, external
3219 symbols must not have the module name prepended.
3220
3221 2007-01-11 Thomas Koenig <Thomas.Koenig@online.de>
3222
3223 PR libfortran/30415
3224 * iresolve.c (gfc_resolve_maxloc): If the rank
3225 of the return array is nonzero and we process an
3226 integer array smaller than default kind, coerce
3227 the array to default integer.
3228 * iresolve.c (gfc_resolve_minloc): Likewise.
3229
3230 2007-01-11 Brooks Moses <brooks.moses@codesourcery.com>
3231
3232 * simplify.c: Update copyright to 2007.
3233 * scanner.c: Same.
3234
3235 2007-01-11 Francois-Xavier Coudert <coudert@clipper.ens.fr>
3236
3237 PR fortran/30430
3238 * scanner.c (gfc_release_include_path): Free gfc_option.module_dir
3239 only once!
3240
3241 2007-01-09 Brooks Moses <brooks.moses@codesourcery.com>
3242
3243 * simplify.c (gfc_simplify_ibclr): Fix POS comparison.
3244 (gfc_simplify_ibset): Same.
3245
3246 2007-01-09 Brooks Moses <brooks.moses@codesourcery.com>
3247
3248 PR 30381
3249 PR 30420
3250 * simplify.c (convert_mpz_to_unsigned): New function.
3251 (convert_mpz_to_signed): New function, largely based on
3252 twos_complement().
3253 (twos_complement): Removed.
3254 (gfc_simplify_ibclr): Add conversions to and from an
3255 unsigned representation before bit-twiddling.
3256 (gfc_simplify_ibset): Same.
3257 (gfc_simplify_ishftc): Add checks for overly large
3258 constant arguments, only check the third argument if
3259 it's present, carry over high bits into the result as
3260 appropriate, and perform the final conversion back to
3261 a signed representation using the correct sign bit.
3262 (gfc_simplify_not): Removed unnecessary masking.
3263
3264 2007-01-09 Paul Thomas <pault@gcc.gnu.org>
3265
3266 PR fortran/30408
3267 * resolve.c (resolve_code): Use the code->expr character length
3268 directly to set length of llen.
3269
3270 2007-01-09 Jerry DeLisle <jvdelisle@gcc.gnu.org>
3271
3272 PR fortran/30408
3273 * lang.opt: Add Wcharacter_truncation option.
3274 * options.c (gfc_init_options): Initialize
3275 gfc_option.warn_character_truncation to zero.
3276 (gfc_handle_option): Add case for OPT_Wcharacter_truncation.
3277
3278 2007-01-08 Steven G. Kargl <kargl@gcc.gnu.org>
3279
3280 * interface.c, intrinsic.c, gfortranspec.c, io.c, f95-lang.c,
3281 iresolve.c, match.c: Update Copyright years. Whitespace.
3282
3283 2007-01-08 Richard Guenther <rguenther@suse.de>
3284
3285 * trans-io.c (transfer_array_desc): Use build_int_cst instead
3286 of build_int_cstu.
3287
3288 2007-01-08 Roger Sayle <roger@eyesopen.com>
3289
3290 * trans-array.c (constant_array_constructor_p): New function to
3291 determine whether an array constructor consists only of constant
3292 elements, and if so return it's size.
3293 (gfc_build_constant_array_constructor): Construct a statically
3294 initialized gfortran array for a given EXPR_ARRAY.
3295 (gfc_trans_constant_array_constructor): Efficiently scalarize
3296 a constant array constructor.
3297 (gfc_trans_array_constructor): Tidy up use of CONST_STRING.
3298 Special case scalarization of constant array constructors, all of
3299 whose elements are specified, using constant_array_constructor_p
3300 and gfc_trans_constant_array_constructor.
3301 (gfc_conv_scalarized_array_ref): Check whetger info->offset is zero
3302 before adding it to index, to avoid creating a NON_LVALUE_EXPR.
3303
3304 2007-01-08 Kazu Hirata <kazu@codesourcery.com>
3305
3306 gfortran.texi: Fix typos.
3307
3308 2007-01-07 Steven G. Kargl <kargl@gcc.gnu.org>
3309
3310 * decl.c, dump-parse-tree.c, error.c, data.c, expr.c, dependency.c,
3311 convert.c: Update Copyright dates. Fix whitespace.
3312
3313 2007-01-07 Bernhard Fischer <aldot@gcc.gnu.org>
3314
3315 * data.c (gfc_assign_data_value): Fix whitespace.
3316
3317 2007-01-07 Bernhard Fischer <aldot@gcc.gnu.org>
3318
3319 * trans-array.c (gfc_trans_create_temp_array, gfc_array_init_size):
3320 Commentary typo fix.
3321
3322 2007-01-07 Bernhard Fischer <aldot@gcc.gnu.org>
3323
3324 PR fortran/27698
3325 * match.c (gfc_match_name): Print diagnostics for invalid
3326 character in names.
3327
3328 2007-01-06 Steven G. Kargl <kargl@gcc.gnu.org>
3329
3330 * array.c: Fix whitespace in comment table.
3331
3332 2007-01-06 Steven G. Kargl <kargl@gcc.gnu.org>
3333
3334 * array.c, bbt.c, check.c: Update copyright years. Whitespace.
3335
3336 2007-01-06 Steven G. Kargl <kargl@gcc.gnu.org>
3337
3338 * arith.c: Update copyright years. Whitespace.
3339
3340 2007-01-05 Roger Sayle <roger@eyesopen.com>
3341
3342 * trans-expr.c (gfc_trans_assignment_1): New subroutine to scalarize
3343 array assignments split out from gfc_trans_assignment.
3344 (gfc_trans_array_copy): New function to implement array to array
3345 copies via calls to __builtin_memcpy.
3346 (copyable_array_p): New helper function to identify an array of
3347 simple/POD types, that may be copied/assigned using memcpy.
3348 (gfc_trans_assignment): Use gfc_trans_array_copy to handle simple
3349 whole array assignments considered suitable by copyable_array_p.
3350 Invoke gfc_trans_assignment_1 to perform the fallback scalarization.
3351
3352 2007-01-05 Roger Sayle <roger@eyesopen.com>
3353
3354 * trans-array.c (gfc_trans_array_constructor_value): Make the
3355 static const "data" array as TREE_READONLY.
3356 * trans-stmt.c (gfc_trans_character_select): Likewise.
3357
3358 2007-01-05 Roger Sayle <roger@eyesopen.com>
3359
3360 * trans-array.c (gfc_conv_loop_setup): Test whether the loop
3361 stride is one, to avoid fold_build2 introducing a useless
3362 NON_LVALUE_EXPR node.
3363
3364 2007-01-05 Tobias Burnus <burnus@net-b.de>
3365
3366 * symbol.c (check_conflict): Fix error message.
3367
3368 2007-01-05 Paul Thomas <pault@gcc.gnu.org>
3369
3370 PR fortran/23232
3371 * decl.c (gfc_in_match_data, gfc_set_in_match_data): New
3372 functions to signal that a DATA statement is being matched.
3373 (gfc_match_data): Call gfc_set_in_match_data on entry and on
3374 exit.
3375 * gfortran.h : Add prototypes for above.
3376 * expr.c (check_init_expr): Avoid check on parameter or
3377 variable if gfc_in_match_data is true.
3378 (gfc_match_init_expr): Do not call error on non-reduction of
3379 expression if gfc_in_match_data is true.
3380
3381 PR fortran/27996
3382 PR fortran/27998
3383 * decl.c (gfc_set_constant_character_len): Add boolean arg to
3384 flag array constructor resolution. Warn if string is being
3385 truncated. Standard dependent error if string is padded. Set
3386 new arg to false for all three calls to
3387 gfc_set_constant_character_len.
3388 * match.h : Add boolean arg to prototype for
3389 gfc_set_constant_character_len.
3390 * gfortran.h : Add warn_character_truncation to gfc_options.
3391 * options.c (set_Wall): Set warn_character_truncation if -Wall
3392 is set.
3393 * resolve.c (resolve_code): Warn if rhs string in character
3394 assignment has to be truncated.
3395 * array.c (gfc_resolve_character_array_constructor): Set new
3396 argument to true for call to gfc_set_constant_character_len.
3397
3398 2007-01-05 Tobias Burnus <burnus@net-b.de>
3399
3400 PR fortran/29624
3401 * interface.c (compare_parameter_intent): New function.
3402 (check_intents): Support pointer intents.
3403 * symbol.c (check_conflict): Support pointer intents,
3404 better conflict_std message.
3405 * expr.c (gfc_check_assign,gfc_check_pointer_assign):
3406 Support pointer intents.
3407 * resolve.c (resolve_deallocate_expr,resolve_allocate_expr):
3408 Support pointer intents.
3409
3410 2007-01-03 Brooks Moses <brooks.moses@codesourcery.com>
3411
3412 PR 30371
3413 * check.c (gfc_check_kill_sub): Add checks for non-scalar
3414 arguments.
3415
3416 2007-01-04 Brooks Moses <brooks.moses@codesourcery.com>
3417
3418 * intrinsic.texi: Minor cleanup, reflowing overlong
3419 paragraphs, and correcting whitespace.
3420
3421 2007-01-04 Brooks Moses <brooks.moses@codesourcery.com>
3422
3423 * intrinsic.texi (LBOUND): Add documentation.
3424 (LGE): Add documentation.
3425 (LGT): Add documentation.
3426 (LINK): Add documentation.
3427 (LLE): Add documentation.
3428 (LLT): Add documentation.
3429 (LNBLNK): Add documentation.
3430 (UBOUND): Add documentation.
3431 (UNLINK): Add documentation.
3432
3433 2007-01-04 Brooks Moses <brooks.moses@codesourcery.com>
3434
3435 * intrinsic.texi (IAND): Clarify argument specifications.
3436 (IBCLR): Add documentation.
3437 (IBITS): Add documentation.
3438 (IBSET): Add documentation.
3439 (IEOR): Add documentation.
3440 (IERRNO): Add documentation.
3441 (INDEX): Add documentation.
3442 (IOR): Add documentation.
3443 (ISHFT): Add documentation.
3444 (ISHFTC): Add documentation.
3445 (KILL): Add documentation.
3446 (LEN_TRIM): Add documentation.
3447
3448 2007-01-04 Brooks Moses <brooks.moses@codesourcery.com>
3449
3450 PR 30235
3451 * interface.c (compare_actual_formal): check for
3452 alternate returns when iterating over non-present
3453 arguments.
3454
3455 2007-01-04 Brooks Moses <brooks.moses@codesourcery.com>
3456
3457 * invoke.texi: Update manpage copyright to include 2007.
3458
3459 2007-01-04 Brooks Moses <brooks.moses@codesourcery.com>
3460
3461 * gfortran.texi: Update copyright to include 2007.
3462 * intrinsic.texi: Update copyright to include 2007.
3463 * invoke.texi: Update copyright to include 2007.
3464
3465 2007-01-02 Tobias Burnus <burnus@net-b.de>
3466 Jakub Jelinek <jakub@redhat.com>
3467
3468 PR fortran/30276
3469 * scanner.c (open_included_file): Revert patch.
3470 (gfc_open_included_file): Support absolute pathnames.
3471 (gfc_open_intrinsic_module): Support absolute pathnames.
3472
3473 2007-01-03 Brooks Moses <brooks.moses@codesourcery.com>
3474
3475 * gfortran.texi (GNU Fortran and GCC): Rewrite
3476
3477 2007-01-03 Brooks Moses <brooks.moses@codesourcery.com>
3478
3479 * gfortran.texi (Introduction): Lower "Part I:
3480 Introduction" to a chapter, renumber Parts II and III to
3481 Parts I and II.
3482 * intrinsic.texi (Introduction): Rename to "Introduction
3483 to Intrinsics" to avoid conflict with the new chapter.
3484
3485 2007-01-03 Brooks Moses <brooks.moses@codesourcery.com>
3486
3487 * intrinsic.texi (Introduction): Rewrite first paragraph.
3488
3489 2007-01-03 Brooks Moses <brooks.moses@codesourcery.com>
3490
3491 * invoke.texi (OpenMP): Added index entry.
3492 * gfortran.texi (title page): Removed erroneous '*'.
3493
3494 2007-01-03 Brooks Moses <brooks.moses@codesourcery.com>
3495
3496 * gfortran.texi (GFORTRAN_DEFAULT_RECL): Added units
3497 to description.
3498 (Extensions): Miscellaneous minor rewriting and copyediting.
3499 (BOZ-literal constants): Renamed from Hexadecimal constants.
3500 (Hollerith constants support): Added explanation and
3501 suggestions for standard-conforming modern equivalents.
3502
3503 2007-01-03 Brooks Moses <brooks.moses@codesourcery.com>
3504
3505 * intrinsic.texi: Improvements to index entries; change
3506 @findex entries to @cindex entries.
3507 * invoke.texi: Standardize and improve index entries.
3508 * gfortran.texi: Fix @code in one index entry.
3509
3510 2007-01-03 Brooks Moses <brooks.moses@codesourcery.com>
3511
3512 * invoke.texi: Change @code-type macros to appropriate
3513 variants (@command, @option, etc.)
3514 * gfortran.texi: Same.
3515
3516 2007-01-03 Brooks Moses <brooks.moses@codesourcery.com>
3517
3518 * intrinsic.texi: Various minor cleanups.
3519
3520 2007-01-02 Steven G. Kargl <kargls@comcast.net>
3521
3522 * trans-intrinsic.c (gfc_conv_intrinsic_ibits): Fix call to
3523 build_int_cst.
3524
3525 2007-01-02 Tobias Burnus <burnus@net-b.de>
3526
3527 PR fortran/30276
3528 * scanner.c (open_included_file): Support full-path filenames.
3529
3530 2007-01-02 Paul Thomas <pault@gcc.gnu.org>
3531
3532 PR fortran/20896
3533 * interface.c (check_sym_interfaces): Remove call to
3534 resolve_global_procedure.
3535 gfortran.h : Remove prototype for resolve_global_procedure.
3536 resolve.c (resolve_global_procedure): Add static attribute
3537 to function declaration.
3538
3539 2007-01-01 Steven G. Kargl <kargls@comcast.net>
3540
3541 * ChangeLog: Copy to ...
3542 * ChangeLog-2006: here.