re PR fortran/30514 ([4.1 only] zero-sized array wrongly rejected: integer :: i(1...
[gcc.git] / gcc / fortran / ChangeLog
1 2007-02-03 Paul Thomas <pault@gcc.gnu.org>
2
3 PR fortran/30514
4 * array.c (match_array_element_spec): If the length of an array is
5 negative, adjust the upper limit to make it zero length.
6
7 PR fortran/30660
8 * resolve.c (pure_function, resolve_function): Initialize name to
9 null to clear up build warnings.
10 (resolve_fl_variable): Look at components explicitly to check for
11 default initializer, rather than using gfc_default_initializer.
12
13 2007-02-02 Steven G. Kargl <kargl@gcc.gnu.org>
14
15 PR fortran/30683
16 * resolve.c (resolve_generic_f): Check for non-NULL sym.
17
18 2007-02-02 Roger Sayle <roger@eyesopen.com>
19
20 * trans.c (gfc_build_array_ref): Use STRIP_TYPE_NOPS to eliminate
21 NON_LVALUE_EXPR nodes and useless type conversions.
22
23 2007-02-02 Paul Thomas <pault@gcc.gnu.org>
24
25 PR fortran/30284
26 PR fortran/30626
27 * trans-expr.c (gfc_conv_aliased_arg): Remove static attribute
28 from function and make sure that substring lengths are
29 translated.
30 (is_aliased_array): Remove static attribute.
31 * trans.c : Add prototypes for gfc_conv_aliased_arg and
32 is_aliased_array.
33 * trans-io.c (set_internal_unit): Add the post block to the
34 arguments of the function. Use is_aliased_array to check if
35 temporary is needed; if so call gfc_conv_aliased_arg.
36 (build_dt): Pass the post block to set_internal_unit and
37 add to the block after all io activiy is done.
38
39 2007-02-01 Roger Sayle <roger@eyesopen.com>
40
41 * trans-array.c (gfc_conv_expr_descriptor): We don't need to use
42 a temporary array to pass a constant non-character array constructor.
43 Generalize the descriptor generation code to handle scalarizer
44 "info" without an array reference.
45
46 2007-02-01 Roger Sayle <roger@eyesopen.com>
47
48 * dependency.c (gfc_check_dependency) <EXPR_ARRAY>: Implement
49 dependency checking for array constructors.
50
51 2007-02-01 Roger Sayle <roger@eyesopen.com>
52
53 * trans-stmt.c (compute_overall_iter_number): Document function
54 arguments. Generalize "unconditional forall nest with constant
55 bounds" optimization to eliminate unconditional inner loops with
56 constant bounds.
57
58 2007-01-31 Tobias Burnus <burnus@net-b.de>
59
60 PR fortran/30520
61 * interface.c (compare_actual_formal): Check conformance between
62 actual and VOLATILE dummy arguments.
63 * symbol.c (gfc_add_volatile): Allow setting of VOLATILE
64 multiple times in different scopes.
65 * decl.c (gfc_match_volatile): Search symbol in host association.
66
67 2007-01-31 Kazu Hirata <kazu@codesourcery.com>
68
69 * simplify.c, trans-array.c: Fix comment typos.
70
71 2007-01-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
72
73 * invoke.texi (Code Gen Options): Fix abbreviation typo.
74 * intrinsic.texi (ACCESS, LSHIFT, RSHIFT): Fix typos.
75
76 2007-01-30 Steve Ellcey <sje@cup.hp.com>
77
78 PR fortran/30432
79 * trans-types.c (gfc_get_function_type): Do not add void_type_node
80 to empty arg list.
81 * trans-decl.c (create_function_arglist): Change assert.
82
83 2007-01-29 Paul Thomas <pault@gcc.gnu.org>
84
85 PR fortran/30554
86 * module.c (read_module): If a symbol is excluded by an ONLY
87 clause, check to see if there is a symtree already loaded. If
88 so, attach the symtree to the pointer_info.
89
90 2007-01-28 Thomas Koenig <Thomas.Koenig@online.de>
91
92 PR libfortran/30389
93 * gfortran.h: Remove gfc_simplify_init_1.
94 * arith.h: Remove third argument from gfc_compare_string.
95 * arith.c(gfc_compare_expression): Remove third argument
96 from call to gfc_compare_string.
97 (gfc_compare_string): Remove third argument xcoll_table.
98 Remove use of xcoll_table.
99 * misc.c(gfc_init_1): Remove call to gfc_simplify_init_1.
100 * simplify.c(ascii_table): Remove.
101 (xascii_table): Likewise.
102 (gfc_simplify_achar): ICE if extract_int fails. Remove use of
103 ascii_table. Warn if -Wsurprising and value < 0 or > 127.
104 (gfc_simplify_char): ICE if extract_int fails. Error if
105 value < 0 or value > 255.
106 (gfc_simplify_iachar): Remove use of xascii_table.
107 Char values outside of 0..255 are an ICE.
108 (gfc_simplify_lge): Remove use of xascii_table.
109 (gfc_simplify_lgt): Likewise.
110 (gfc_simplify_lle): Likewise.
111 (gfc_simplify_llt): Likewise.
112 (invert_table): Remove.
113 (gfc_simplify_init_1): Remove.
114
115 2007-01-27 Roger Sayle <roger@eyesopen.com>
116
117 * trans-stmt.c (forall_info): Replace the next_nest and outer
118 fields that previously implemented a doubly-linked list with a
119 single prev_nest field (singly-linked list).
120 (gfc_trans_nested_forall_loop): The nested_forall_info argument
121 now denotes the innermost FORALL in the loop nest.
122 (compute_overall_iter_number): Use prev_nest instead of next_nest.
123 (gfc_trans_forall_1): Link/cons the new "info" to the head of the
124 nested_forall_info linked list. Free the current "info" when done.
125
126 2007-01-27 Paul Thomas <pault@gcc.gnu.org>
127
128 PR fortran/30407
129 * trans-expr.c (gfc_conv_operator_assign): New function.
130 * trans.h : Add prototype for gfc_conv_operator_assign.
131 * trans-stmt.c (gfc_trans_where_assign): Add a gfc_symbol for
132 a potential operator assignment subroutine. If it is non-NULL
133 call gfc_conv_operator_assign instead of the first assignment.
134 ( gfc_trans_where_2): In the case of an operator assignment,
135 extract the argument expressions from the code for the
136 subroutine call and pass the symbol to gfc_trans_where_assign.
137 resolve.c (resolve_where, gfc_resolve_where_code_in_forall,
138 gfc_resolve_forall_body): Resolve the subroutine call for
139 operator assignments.
140
141 2007-01-26 Steven Bosscher <stevenb.gcc@gmail.com>
142 Steven G. Kargl <kargl@gcc.gnu.org>
143
144 PR fortran/30278
145 * fortran/io.c (next_char): Deal with backslash escaped characters.
146 Issue warnings in non -std=gnu cases.
147 * fortran/primary.c (next_string_char): Issue warnings in non
148
149 2007-01-26 Tobias Burnus <burnus@net-b.de>
150
151 * lang-specs.h: Add support for .f03 and .F03 extensions.
152 * gfortran.texi: Document .f03 extension.
153 * options.c (form_from_filename): Recognize .f03.
154
155 2007-01-25 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
156
157 PR fortran/30437
158 * lang.opt (Wall): Remove RejectNegative.
159 * options.c (gfc_handle_option): Wall can be disabled.
160 (set_Wall): Add a parameter for disabling Wall.
161
162 2007-01-23 Jerry DeLisle <jvdelisle@gcc.gnu.org>
163
164 PR fortran/30532
165 * scanner.c (load_line): Remove check fot ctrl-z and don't gobble.
166
167 2007-01-23 Paul Thomas <pault@gcc.gnu.org>
168
169 PR fortran/30481
170 * match.c (gfc_match_namelist): Add check for assumed size character
171 in namelist and provide error if found.
172
173 2007-01-21 Brooks Moses <brooks.moses@codesourcery.com>
174
175 * intrinsic.texi (ACHAR): Added cross-references.
176 (CHAR): Put cross-references in alphabetical order.
177 (IACHAR): Added cross-references.
178 (ICHAR): Added cross-references.
179
180 2007-01-20 Brooks Moses <brooks.moses@codesourcery.com>
181
182 * intrinsic.texi: Edited all "Syntax" examples to a consistent form.
183 (MAXVAL): Corrected description of result characteristics.
184 (MINVAL): Same.
185 (UMASK): Added documentation.
186
187 2007-01-20 Steven G. Kargl <kargl@gcc.gnu.org>
188
189 * openmp.c, matchexp.c, module.c, scanner.c, resolve.c, st.c,
190 parse.c, primary.c, options.c, misc.c, simplify.c: Next installment
191 in the massive whitespace patch.
192
193 2007-01-20 Roger Sayle <roger@eyesopen.com>
194
195 * module.c (mio_array_ref): The dimen_type fields of an array ref
196 are an enumerated type and can't be read/written directly with a
197 call to mio_integer. Instead loop over and cast each element.
198
199 2007-01-20 Roger Sayle <roger@eyesopen.com>
200
201 * dependency.c (gfc_full_array_ref_p): Check that ref->next is NULL,
202 i.e. that the ARRAY_REF doesn't mention components.
203 * trans-array.c (gfc_constant_array_constructor_p): Export external
204 function renamed from constant_array_constructor_p.
205 (gfc_build_constant_array_constructor): Export.
206 (gfc_trans_array_constructor): Update call to the renamed function
207 constant_array_constructor_p.
208 * trans-array.h (gfc_constant_array_constructor_p): Prototype here.
209 (gfc_build_constant_array_constructor): Likewise.
210 * trans-expr.c (gfc_build_memcpy_call): New helper function split
211 out from gfc_trans_array_copy.
212 (gfc_trans_array_copy): Use gfc_build_memcpy_call.
213 (gfc_trans_array_constructor_copy): New function to optimize
214 assigning an entire array from a constant array constructor.
215 (gfc_trans_assignment): Call gfc_trans_array_constructor_copy
216 when appropriate.
217
218 2007-01-20 Roger Sayle <roger@eyesopen.com>
219
220 * trans-intrinsic.c (gfc_conv_intrinsic_sign): New branchless
221 implementation for the SIGN intrinsic with integral operands.
222 (gfc_conv_intrinsic_minmax): Fix whitespace.
223
224 2007-01-20 Francois-Xavier Coudert <coudert@clipper.ens.fr>
225
226 * gfortran.h (gfc_options_t): Add flag_allow_leading_underscore.
227 * lang.opt: Add -fallow-leading-underscore.
228 * match.c (gfc_match_name): Allow leading underscore in symbol
229 name if -fallow-leading-underscore is used.
230 * symbol.c (gfc_get_default_type): Add special case for symbol
231 names beginning with an underscore.
232 * trans-decl.c (gfc_get_extern_function_decl,
233 gfc_build_intrinsic_function_decls): Add _gfortran prefix to
234 library symbols selected_int_kind, selected_real_kind and
235 all specifics.
236 * options.c (gfc_init_options, gfc_handle_option): Handle the
237 new -fallow-leading-underscore option.
238
239 2007-01-20 Francois-Xavier Coudert <coudert@clipper.ens.fr>
240
241 PR fortran/30446
242 * options.c (gfc_handle_module_path_options): Path used in -J
243 option is now added to the module search path.
244
245 2007-01-20 Richard Guenther <rguenther@suse.de>
246
247 PR fortran/30223
248 * f95-lang.c (gfc_init_builtin_functions): Provide cbrt and
249 cexpi builtins if we have TARGET_C99_FUNCTIONS. Provide
250 sincos builtins if the target has sincos.
251
252 2007-01-19 Brooks Moses <brooks.moses@codesourcery.com>
253
254 * intrinsic.texi (MATMUL): Corrected a typo.
255 (MAX): Separated @var arguments.
256 (MIN): Separated @var arguments.
257
258 2007-01-19 Brooks Moses <brooks.moses@codesourcery.com>
259
260 * intrinsic.texi: general whitespace cleanup.
261 (menu): Added TIME8, removed UNMASK.
262 (AINT): Clarified argument requirement.
263 (ANINT): Clarified argument requirement.
264 (CEILING): Clarified argument requirement.
265 (CHAR): Clarified argument requirement.
266 (CMPLX): Clarified argument requirement.
267 (DCMPLX): Clarified argument requirement.
268 (FGET): Line rewrapping.
269 (FLOOR): Clarified argument requirement.
270 (GMTIME): Added documentation.
271 (IAND): Added cross-reference.
272 (IBCLR): Added cross-reference.
273 (IBSET): Added cross-reference.
274 (IEOR): Added cross-reference.
275 (INT): Collapsed examples, clarified argument requirement.
276 (IOR): Added cross-references.
277 (LEN_TRIM): Corrected result kind.
278 (LINK): Added cross-reference.
279 (LLT): Removed "documentation pending".
280 (LOGICAL): Added documentation.
281 (LSHIFT): Added documentation.
282 (LTIME): Added documentation.
283 (MATMUL): Added documentation.
284 (MAX): Added documentation.
285 (MAXLOC): Added documentation.
286 (MAXVAL): Added documentation.
287 (MERGE): Added documentation.
288 (MIN): Added documentation.
289 (MINLOC): Added documentation.
290 (MINVAL): Added documentation.
291 (MVBITS): Moved to correct place, added documentation.
292 (NOT): Added documentation.
293 (PERROR): Added documentation.
294 (RAN): Moved to correct place, added documentation.
295 (REAL): Clarified argument requirement.
296 (RENAME): Added documentation.
297 (RSHIFT): Clarified argument requirement.
298 (SIGN): Corrected table specification.
299 (SYMLNK): Added documentation.
300 (SYSTEM): Added documentation.
301 (TIME): Added documentation.
302 (TIME8): Added section and documentation.
303 (UNMASK): Removed erroneous section.
304
305 2007-01-18 H.J. Lu <hongjiu.lu@intel.com>
306
307 * trans-stmt.c (compute_overall_iter_number): Fix a typo.
308
309 2007-01-18 Roger Sayle <roger@eyesopen.com>
310
311 * trans-expr.c (copyable_array_p): Consider user derived types without
312 allocatable components to be copyable.
313
314 2007-01-18 Roger Sayle <roger@eyesopen.com>
315
316 * trans-stmt.c (compute_overall_iter_number): Enhance to precompute
317 the number of interations in unconditional FORALL nests with constant
318 bounds.
319
320 2007-01-18 Francois-Xavier Coudert <coudert@clipper.ens.fr>
321 Tobias Burnus <burnus@net-b.de>
322
323 PR libfortran/29649
324 * gfortran.h (gfc_option_t): Add flag_dump_core.
325 * lang.opt: Add -fdump-core option.
326 * invoke.texi: Document the new options.
327 * trans-decl.c (gfc_build_builtin_function_decls): Add new
328 options to the call to set_std.
329 * options.c (gfc_init_options, gfc_handle_option): Set the
330 new options.
331
332 2007-01-17 Paul Thomas <pault@gcc.gnu.org>
333
334 PR fortran/30476
335 * module.c (load_generic_interfaces): Make the marking of the
336 symbol as ambiguous conditional on the module names being
337 different.
338 (write_generic): Ensure that the generic interface has a
339 non-NULL module field.
340
341 2007-01-16 Roger Sayle <roger@eyesopen.com>
342
343 PR fortran/30404
344 * trans-stmt.c (forall_info): Remove pmask field.
345 (gfc_trans_forall_loop): Remove NVAR argument, instead assume that
346 NVAR covers all the interation variables in the current forall_info.
347 Add an extra OUTER parameter, which specified the loop header in
348 which to place mask index initializations.
349 (gfc_trans_nested_forall_loop): Remove NEST_FLAG argument.
350 Change the semantics of MASK_FLAG to only control the mask in the
351 innermost loop.
352 (compute_overall_iter_number): Optimize the trivial case of a
353 top-level loop having a constant number of iterations. Update
354 call to gfc_trans_nested_forall_loop. Calculate the number of
355 times the inner loop will be executed, not to size of the
356 iteration space.
357 (allocate_temp_for_forall_nest_1): Reuse SIZE as BYTESIZE when
358 sizeof(type) == 1. Tidy up.
359 (gfc_trans_assign_need_temp): Remove NEST_FLAG argument from calls
360 to gfc_trans_nested_forall_loop.
361 (gfc_trans_pointer_assign_need_temp): Likewise.
362 (gfc_trans_forall_1): Remove unused BYTESIZE, TMPVAR, SIZEVAR and
363 LENVAR local variables. Split mask allocation into a separate
364 hunk/pass from mask population. Use allocate_temp_for_forall_nest
365 to allocate the FORALL mask with the correct size. Update calls
366 to gfc_trans_nested_forall_loop.
367 (gfc_evaluate_where_mask): Update call to
368 gfc_trans_nested_forall_loop.
369 (gfc_trans_where_2): Likewise.
370
371 2007-01-15 Paul Thomas <pault@gcc.gnu.org>
372
373 PR fortran/28172
374 * trans-stmt.c (gfc_trans_call): If it does not have one, get
375 a backend_decl for an alternate return.
376
377 PR fortran/29389
378 * resolve.c (pure_function): Statement functions are pure. Note
379 that this will have to recurse to comply fully with F95.
380
381 PR fortran/29712
382 * resolve.c (resolve_function): Only a reference to the final
383 dimension of an assumed size array is an error in an inquiry
384 function.
385
386 PR fortran/30283
387 * resolve.c (resolve_function): Make sure that the function
388 expression has a type.
389
390 2007-01-14 Paul Thomas <pault@gcc.gnu.org>
391
392 PR fortran/30410
393 * trans-decl.c (gfc_sym_mangled_function_id): Module, external
394 symbols must not have the module name prepended.
395
396 2007-01-11 Thomas Koenig <Thomas.Koenig@online.de>
397
398 PR libfortran/30415
399 * iresolve.c (gfc_resolve_maxloc): If the rank
400 of the return array is nonzero and we process an
401 integer array smaller than default kind, coerce
402 the array to default integer.
403 * iresolve.c (gfc_resolve_minloc): Likewise.
404
405 2007-01-11 Brooks Moses <brooks.moses@codesourcery.com>
406
407 * simplify.c: Update copyright to 2007.
408 * scanner.c: Same.
409
410 2007-01-11 Francois-Xavier Coudert <coudert@clipper.ens.fr>
411
412 PR fortran/30430
413 * scanner.c (gfc_release_include_path): Free gfc_option.module_dir
414 only once!
415
416 2007-01-09 Brooks Moses <brooks.moses@codesourcery.com>
417
418 * simplify.c (gfc_simplify_ibclr): Fix POS comparison.
419 (gfc_simplify_ibset): Same.
420
421 2007-01-09 Brooks Moses <brooks.moses@codesourcery.com>
422
423 PR 30381
424 PR 30420
425 * simplify.c (convert_mpz_to_unsigned): New function.
426 (convert_mpz_to_signed): New function, largely based on
427 twos_complement().
428 (twos_complement): Removed.
429 (gfc_simplify_ibclr): Add conversions to and from an
430 unsigned representation before bit-twiddling.
431 (gfc_simplify_ibset): Same.
432 (gfc_simplify_ishftc): Add checks for overly large
433 constant arguments, only check the third argument if
434 it's present, carry over high bits into the result as
435 appropriate, and perform the final conversion back to
436 a signed representation using the correct sign bit.
437 (gfc_simplify_not): Removed unnecessary masking.
438
439 2007-01-09 Paul Thomas <pault@gcc.gnu.org>
440
441 PR fortran/30408
442 * resolve.c (resolve_code): Use the code->expr character length
443 directly to set length of llen.
444
445 2007-01-09 Jerry DeLisle <jvdelisle@gcc.gnu.org>
446
447 PR fortran/30408
448 * lang.opt: Add Wcharacter_truncation option.
449 * options.c (gfc_init_options): Initialize
450 gfc_option.warn_character_truncation to zero.
451 (gfc_handle_option): Add case for OPT_Wcharacter_truncation.
452
453 2007-01-08 Steven G. Kargl <kargl@gcc.gnu.org>
454
455 * interface.c, intrinsic.c, gfortranspec.c, io.c, f95-lang.c,
456 iresolve.c, match.c: Update Copyright years. Whitespace.
457
458 2007-01-08 Richard Guenther <rguenther@suse.de>
459
460 * trans-io.c (transfer_array_desc): Use build_int_cst instead
461 of build_int_cstu.
462
463 2007-01-08 Roger Sayle <roger@eyesopen.com>
464
465 * trans-array.c (constant_array_constructor_p): New function to
466 determine whether an array constructor consists only of constant
467 elements, and if so return it's size.
468 (gfc_build_constant_array_constructor): Construct a statically
469 initialized gfortran array for a given EXPR_ARRAY.
470 (gfc_trans_constant_array_constructor): Efficiently scalarize
471 a constant array constructor.
472 (gfc_trans_array_constructor): Tidy up use of CONST_STRING.
473 Special case scalarization of constant array constructors, all of
474 whose elements are specified, using constant_array_constructor_p
475 and gfc_trans_constant_array_constructor.
476 (gfc_conv_scalarized_array_ref): Check whetger info->offset is zero
477 before adding it to index, to avoid creating a NON_LVALUE_EXPR.
478
479 2007-01-08 Kazu Hirata <kazu@codesourcery.com>
480
481 gfortran.texi: Fix typos.
482
483 2007-01-07 Steven G. Kargl <kargl@gcc.gnu.org>
484
485 * decl.c, dump-parse-tree.c, error.c, data.c, expr.c, dependency.c,
486 convert.c: Update Copyright dates. Fix whitespace.
487
488 2007-01-07 Bernhard Fischer <aldot@gcc.gnu.org>
489
490 * data.c (gfc_assign_data_value): Fix whitespace.
491
492 2007-01-07 Bernhard Fischer <aldot@gcc.gnu.org>
493
494 * trans-array.c (gfc_trans_create_temp_array, gfc_array_init_size):
495 Commentary typo fix.
496
497 2007-01-07 Bernhard Fischer <aldot@gcc.gnu.org>
498
499 PR fortran/27698
500 * match.c (gfc_match_name): Print diagnostics for invalid
501 character in names.
502
503 2007-01-06 Steven G. Kargl <kargl@gcc.gnu.org>
504
505 * array.c: Fix whitespace in comment table.
506
507 2007-01-06 Steven G. Kargl <kargl@gcc.gnu.org>
508
509 * array.c, bbt.c, check.c: Update copyright years. Whitespace.
510
511 2007-01-06 Steven G. Kargl <kargl@gcc.gnu.org>
512
513 * arith.c: Update copyright years. Whitespace.
514
515 2007-01-05 Roger Sayle <roger@eyesopen.com>
516
517 * trans-expr.c (gfc_trans_assignment_1): New subroutine to scalarize
518 array assignments split out from gfc_trans_assignment.
519 (gfc_trans_array_copy): New function to implement array to array
520 copies via calls to __builtin_memcpy.
521 (copyable_array_p): New helper function to identify an array of
522 simple/POD types, that may be copied/assigned using memcpy.
523 (gfc_trans_assignment): Use gfc_trans_array_copy to handle simple
524 whole array assignments considered suitable by copyable_array_p.
525 Invoke gfc_trans_assignment_1 to perform the fallback scalarization.
526
527 2007-01-05 Roger Sayle <roger@eyesopen.com>
528
529 * trans-array.c (gfc_trans_array_constructor_value): Make the
530 static const "data" array as TREE_READONLY.
531 * trans-stmt.c (gfc_trans_character_select): Likewise.
532
533 2007-01-05 Roger Sayle <roger@eyesopen.com>
534
535 * trans-array.c (gfc_conv_loop_setup): Test whether the loop
536 stride is one, to avoid fold_build2 introducing a useless
537 NON_LVALUE_EXPR node.
538
539 2007-01-05 Tobias Burnus <burnus@net-b.de>
540
541 * symbol.c (check_conflict): Fix error message.
542
543 2007-01-05 Paul Thomas <pault@gcc.gnu.org>
544
545 PR fortran/23232
546 * decl.c (gfc_in_match_data, gfc_set_in_match_data): New
547 functions to signal that a DATA statement is being matched.
548 (gfc_match_data): Call gfc_set_in_match_data on entry and on
549 exit.
550 * gfortran.h : Add prototypes for above.
551 * expr.c (check_init_expr): Avoid check on parameter or
552 variable if gfc_in_match_data is true.
553 (gfc_match_init_expr): Do not call error on non-reduction of
554 expression if gfc_in_match_data is true.
555
556 PR fortran/27996
557 PR fortran/27998
558 * decl.c (gfc_set_constant_character_len): Add boolean arg to
559 flag array constructor resolution. Warn if string is being
560 truncated. Standard dependent error if string is padded. Set
561 new arg to false for all three calls to
562 gfc_set_constant_character_len.
563 * match.h : Add boolean arg to prototype for
564 gfc_set_constant_character_len.
565 * gfortran.h : Add warn_character_truncation to gfc_options.
566 * options.c (set_Wall): Set warn_character_truncation if -Wall
567 is set.
568 * resolve.c (resolve_code): Warn if rhs string in character
569 assignment has to be truncated.
570 * array.c (gfc_resolve_character_array_constructor): Set new
571 argument to true for call to gfc_set_constant_character_len.
572
573 2007-01-05 Tobias Burnus <burnus@net-b.de>
574
575 PR fortran/29624
576 * interface.c (compare_parameter_intent): New function.
577 (check_intents): Support pointer intents.
578 * symbol.c (check_conflict): Support pointer intents,
579 better conflict_std message.
580 * expr.c (gfc_check_assign,gfc_check_pointer_assign):
581 Support pointer intents.
582 * resolve.c (resolve_deallocate_expr,resolve_allocate_expr):
583 Support pointer intents.
584
585 2007-01-03 Brooks Moses <brooks.moses@codesourcery.com>
586
587 PR 30371
588 * check.c (gfc_check_kill_sub): Add checks for non-scalar
589 arguments.
590
591 2007-01-04 Brooks Moses <brooks.moses@codesourcery.com>
592
593 * intrinsic.texi: Minor cleanup, reflowing overlong
594 paragraphs, and correcting whitespace.
595
596 2007-01-04 Brooks Moses <brooks.moses@codesourcery.com>
597
598 * intrinsic.texi (LBOUND): Add documentation.
599 (LGE): Add documentation.
600 (LGT): Add documentation.
601 (LINK): Add documentation.
602 (LLE): Add documentation.
603 (LLT): Add documentation.
604 (LNBLNK): Add documentation.
605 (UBOUND): Add documentation.
606 (UNLINK): Add documentation.
607
608 2007-01-04 Brooks Moses <brooks.moses@codesourcery.com>
609
610 * intrinsic.texi (IAND): Clarify argument specifications.
611 (IBCLR): Add documentation.
612 (IBITS): Add documentation.
613 (IBSET): Add documentation.
614 (IEOR): Add documentation.
615 (IERRNO): Add documentation.
616 (INDEX): Add documentation.
617 (IOR): Add documentation.
618 (ISHFT): Add documentation.
619 (ISHFTC): Add documentation.
620 (KILL): Add documentation.
621 (LEN_TRIM): Add documentation.
622
623 2007-01-04 Brooks Moses <brooks.moses@codesourcery.com>
624
625 PR 30235
626 * interface.c (compare_actual_formal): check for
627 alternate returns when iterating over non-present
628 arguments.
629
630 2007-01-04 Brooks Moses <brooks.moses@codesourcery.com>
631
632 * invoke.texi: Update manpage copyright to include 2007.
633
634 2007-01-04 Brooks Moses <brooks.moses@codesourcery.com>
635
636 * gfortran.texi: Update copyright to include 2007.
637 * intrinsic.texi: Update copyright to include 2007.
638 * invoke.texi: Update copyright to include 2007.
639
640 2007-01-02 Tobias Burnus <burnus@net-b.de>
641 Jakub Jelinek <jakub@redhat.com>
642
643 PR fortran/30276
644 * scanner.c (open_included_file): Revert patch.
645 (gfc_open_included_file): Support absolute pathnames.
646 (gfc_open_intrinsic_module): Support absolute pathnames.
647
648 2007-01-03 Brooks Moses <brooks.moses@codesourcery.com>
649
650 * gfortran.texi (GNU Fortran and GCC): Rewrite
651
652 2007-01-03 Brooks Moses <brooks.moses@codesourcery.com>
653
654 * gfortran.texi (Introduction): Lower "Part I:
655 Introduction" to a chapter, renumber Parts II and III to
656 Parts I and II.
657 * intrinsic.texi (Introduction): Rename to "Introduction
658 to Intrinsics" to avoid conflict with the new chapter.
659
660 2007-01-03 Brooks Moses <brooks.moses@codesourcery.com>
661
662 * intrinsic.texi (Introduction): Rewrite first paragraph.
663
664 2007-01-03 Brooks Moses <brooks.moses@codesourcery.com>
665
666 * invoke.texi (OpenMP): Added index entry.
667 * gfortran.texi (title page): Removed erroneous '*'.
668
669 2007-01-03 Brooks Moses <brooks.moses@codesourcery.com>
670
671 * gfortran.texi (GFORTRAN_DEFAULT_RECL): Added units
672 to description.
673 (Extensions): Miscellaneous minor rewriting and copyediting.
674 (BOZ-literal constants): Renamed from Hexadecimal constants.
675 (Hollerith constants support): Added explanation and
676 suggestions for standard-conforming modern equivalents.
677
678 2007-01-03 Brooks Moses <brooks.moses@codesourcery.com>
679
680 * intrinsic.texi: Improvements to index entries; change
681 @findex entries to @cindex entries.
682 * invoke.texi: Standardize and improve index entries.
683 * gfortran.texi: Fix @code in one index entry.
684
685 2007-01-03 Brooks Moses <brooks.moses@codesourcery.com>
686
687 * invoke.texi: Change @code-type macros to appropriate
688 variants (@command, @option, etc.)
689 * gfortran.texi: Same.
690
691 2007-01-03 Brooks Moses <brooks.moses@codesourcery.com>
692
693 * intrinsic.texi: Various minor cleanups.
694
695 2007-01-02 Steven G. Kargl <kargls@comcast.net>
696
697 * trans-intrinsic.c (gfc_conv_intrinsic_ibits): Fix call to
698 build_int_cst.
699
700 2007-01-02 Tobias Burnus <burnus@net-b.de>
701
702 PR fortran/30276
703 * scanner.c (open_included_file): Support full-path filenames.
704
705 2007-01-02 Paul Thomas <pault@gcc.gnu.org>
706
707 PR fortran/20896
708 * interface.c (check_sym_interfaces): Remove call to
709 resolve_global_procedure.
710 gfortran.h : Remove prototype for resolve_global_procedure.
711 resolve.c (resolve_global_procedure): Add static attribute
712 to function declaration.
713
714 2007-01-01 Steven G. Kargl <kargls@comcast.net>
715
716 * ChangeLog: Copy to ...
717 * ChangeLog-2006: here.