OSDN Git Service

3580963bdef337ef5fc9d9800003d83adf655596
[pf3gnuchains/gcc-fork.git] / gcc / fortran / ChangeLog
1 2007-07-08  Tobias Burnus  <burnus@net-b.de>
2
3         PR fortran/30973
4         * module.c (read_module): Always import module name as symbol.
5         (gfc_match_use): Disallow module name in the only clause of
6         a use statement.
7
8 2007-03-08  Paul Thomas  <pault@gcc.gnu.org>
9
10         PR fortran/31011
11         * expr.c (find_array_section): Correct arithmetic for section
12         size.
13
14 2007-03-07  Brooks Moses  <brooks.moses@codesourcery.com>
15
16         * iresolve.c (gfc_resolve_ishftc): Correct s_kind value.
17
18 2007-03-06  Daniel Franke  <franke.daniel@gmail.com>
19
20         PR documentation/30950
21         * intrinsic.texi (AND, CPU_TIME): Fix dummy argument names.
22         (FREE): Fix call syntax.
23
24 2007-03-06  Brooks Moses  <brooks.moses@codesourcery.com>
25
26         * intrinsic.texi: Limit column widths to a total of .85.
27
28 2007-03-05  Brooks Moses  <brooks.moses@codesourcery.com>
29
30         * gfortran.texi (GFortran and G77): Rewrite completely.
31
32 2007-03-05  Brooks Moses  <brooks.moses@codesourcery.com>
33
34         * match.c (gfc_match_name): Expanded comment.
35
36 2007-03-05  Brooks Moses  <brooks.moses@codesourcery.com>
37
38         * gfortran.texi (Old-style kind specifications): Document
39         special handling of old-style kind specifiers for COMPLEX.
40         * decl.c (gfc_match_old_kind_spec): Document kind/bytesize
41         assumptions for COMPLEX in comment.
42
43 2007-03-05  Brooks Moses  <brooks.moses@codesourcery.com>
44
45         PR 31050
46         * gfortranspec.c (lang_specific_driver): Update program
47         name and copyright date.
48
49 2007-03-03  Paul Thomas  <pault@gcc.gnu.org>
50
51         PR fortran/30882
52         * check.c (dim_rank_check): The shape of subsections of
53         assumed-size arrays is known.
54
55 2007-03-02  Paul Thomas  <pault@gcc.gnu.org>
56             Tobias Burnus  <burnus@net-b.de>
57
58         PR fortran/30873
59         * decl.c (gfc_match_entry): Remove erroneous entry result check.
60
61 2007-03-01  Brooks Moses  <brooks.moses@codesourcery.com>
62
63         * Make-lang.in: Add install-pdf target as copied from
64         automake v1.10 rules.
65
66 2007-03-01  Tobias Burnus  <burnus@net-b.de>
67
68         PR fortran/30865
69         * trans-intrinsic.c (gfc_conv_intrinsic_size): Compare pointers.
70
71 2007-02-28  Tobias Burnus  <burnus@net-b.de>
72             Paul Thomas  <pault@gcc.gnu.org>
73
74         PR fortran/30888
75         PR fortran/30887
76         * resolve.c (resolve_actual_arglist): Allow by-value
77         arguments and non-default-kind for %VAL().
78         * trans-expr.c (conv_arglist_function): Allow
79         non-default-kind for %VAL().
80
81 2007-02-28  Tobias Burnus  <burnus@net-b.de>
82
83         PR fortran/30968
84         * primary.c (next_string_char): Correct reading a character
85         after the delimiter.
86         (match_string_constant): Print warning message only once.
87
88 2007-02-27  Richard Guenther  <rguenther@suse.de>
89
90         * trans-array.c (structure_alloc_comps): Use correct type
91         for null pointer constant.
92
93 2007-02-26  Brooks Moses  <brooks.moses@codesourcery.com>
94
95         * gfortran.texi: Standardize title page, remove version number
96         from copyright page.
97
98 2007-02-26  Thomas Koenig  <Thomas.Koenig@online.de>
99             Paul Thomas  <pault@gcc.gnu.org>
100
101         PR fortran/30865
102         * trans-intrinsic.c (gfc_conv_intrinsic_size):
103         If dim is an optional argument, check for its
104         presence and call size0 or size1, respectively.
105
106 2007-02-23  Paul Thomas <pault@gcc.gnu.org>
107
108         PR fortran/30660
109         * resolve.c (has_default_initializer): New function.
110         (resolve_fl_variable): Call has_default_initializer to determine if
111         the derived type has a default initializer to its ultimate
112         components.
113
114
115 2007-02-22  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
116
117         * options.c (set_default_std_flags): New function to consolidate
118         setting the flags.
119         (gfc_init_options): Use new function.
120         (gfc_handle_option): Use new function.
121
122 2007-02-22  Brooks Moses  <brooks.moses@codesourcery.com>
123
124         * gfortran.texi (Old-style kind specifications): Document
125         special handling of old-style kind specifiers for COMPLEX.
126         * decl.c (gfc_match_old_kind_spec): Documented kind/bytesize
127         assumptions in comment.
128
129 2007-02-21  Bernhard Fischer  <aldot@gcc.gnu.org>
130
131         * parse.c (next_free): Gooble spaces after OpenMP sentinel.
132
133 2007-02-20  Thomas Koenig  <Thomas.Koenig@online.de>
134
135         PR fortran/30869
136         * match.c (gfc_match_iterator): Remove conflict between
137         loop variable and pointer.
138
139 2007-02-20  Tobias Burnus  <burnus@net-b.de>
140
141         PR fortran/30522
142         * symbol.c (gfc_add_volatile): Allow to set VOLATILE
143           attribute for host-associated variables.
144         * gfortran.h (symbol_attribute): Save namespace
145           where VOLATILE has been set.
146         * trans-decl.c (gfc_finish_var_decl): Move variable
147           declaration to the top.
148
149 2007-02-20  Tobias Burnus  <burnus@net-b.de>
150
151         PR fortran/30783
152         * resolve.c (resolve_symbol): Add character dummy VALUE check.
153
154 2007-02-19  Thomas Koenig  <Thomas.Koenig@online.de>
155
156         PR libfortran/30533
157         * fortran/iresolve.c (gfc_resolve_maxloc): Remove coercion of
158         argument to default integer.
159         (gfc_resolve_minloc): Likewise.
160
161 2007-02-18  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
162
163         PR fortran/30681
164         * options.c (gfc_init_options): Relax warning level for obsolescent.
165         * match.c (match_arithmetic_if): Change to obsolescent from deleted.
166         (gfc_match_if): Same.
167
168 2007-02-18  Roger Sayle  <roger@eyesopen.com>
169
170         * trans-array.c (gfc_build_constant_array_constructor): When the
171         shape of the constructor is known, use that to construct the
172         gfc_array_spec.
173         (gfc_trans_constant_array_constructor): Initialize the "info"
174         information for all of the dimensions of the array constructor.
175         (constant_array_constructor_loop_size): New function.
176         (gfc_trans_array_constructor): Use it to determine whether a
177         loop is suitable for "constant array constructor" optimization.
178
179         * trans-intrinsic.c (gfc_conv_intrinsic_anyall): Use fold_build2
180         instead of build2, to avoid conditions like "(a != b) != 0".
181
182 2007-02-18  Roger Sayle  <roger@eyesopen.com>
183             Paul Thomas <pault@gcc.gnu.org>
184
185         PR fortran/30400
186         * match.c (match_forall_iterator): Use gfc_match_expr instead
187         of gfc_match_variable to match the iterator variable.  Return
188         MATCH_NO if not a variable.  Remove the reset of the symbol's
189         flavor in cleanup.
190
191 2007-02-16  Tobias Burnus  <burnus@net-b.de>
192
193         PR fortran/30793
194         * trans-decl.c (gfc_generate_function_code): Do not initialize
195         pointers to derived components.
196
197 2007-02-15  Sandra Loosemore  <sandra@codesourcery.com>
198             Brooks Moses  <brooks.moses@codesourcery.com>
199             Lee Millward  <lee.millward@codesourcery.com>
200
201         * trans-expr.c (gfc_conv_power_op): Use build_call_expr.
202         (gfc_conv_string_tmp): Likewise.
203         (gfc_conv_concat_op): Likewise.
204         (gfc_build_compare_string): Likewise.
205         (gfc_conv_function_call): Use build_call_list instead of build3.
206
207         * trans-array.c (gfc_trans_allocate_array_storage): Use
208         build_call_expr.
209         (gfc_grow_array): Likewise.
210         (gfc_trans_array_ctor_element): Likewise.
211         (gfc_trans_array_constructor_value): Likewise.
212         (gfc_array_allocate): Likewise.
213         (gfc_array_deallocate): Likewise.
214         (gfc_trans_auto_array_allocation): Likewise.
215         (gfc_trans_dummy_array_bias): Likewise.
216         (gfc_conv_array_parameter): Likewise.
217         (gfc_trans_dealloc_allocated): Likewise.
218         (gfc_duplicate_allocatable): Likewise.
219
220         * trans-openmp.c (gfc_trans_omp_barrier): Use build_call_expr.
221         (gfc_trans_omp_flush): Likewise.
222
223         * trans-stmt.c (gfc_conv_elementel_dependencies): Use build_call_expr.
224         (gfc_trans_pause): Likewise.
225         (gfc_trans_stop): Likewise.
226         (gfc_trans_character_select): Likewise.
227         (gfc_do_allocate): Likewise.
228         (gfc_trans_assign_need_temp): Likewise.
229         (gfc_trans_pointer_assign_need_temp): Likewise.
230         (gfc_trans_forall_1): Likewise.
231         (gfc_trans_where_2): Likewise.
232         (gfc_trans_allocate): Likewise.
233         (gfc_trans_deallocate): Likewise.
234
235         * trans.c (gfc_trans_runtime_check): Use build_call_expr.
236
237         * trans-io.c (gfc_trans_open): Use build_call_expr.
238         (gfc_trans_close): Likewise.
239         (build_filepos): Likewise.
240         (gfc_trans_inquire): Likewise.
241         (NML_FIRST_ARG): Delete.
242         (NML_ADD_ARG): Delete.
243         (transfer_namelist_element): Use build_call_expr.
244         (build_dt): Likewise.
245         (gfc_trans_dt_end): Likewise.
246         (transfer_expr): Likewise.
247         (transfer_array-desc): Likewise.
248
249         * trans-decl.c (gfc_generate_function_code): Use build_call_expr.
250         (gfc_generate_constructors): Likewise.
251
252         * trans-intrinsic.c (gfc_conv_intrinsic_ctime): Use build_call_expr.
253         (gfc_conv_intrinsic_fdate): Likewise.
254         (gfc_conv_intrinsic_ttynam): Likewise.
255         (gfc_conv_intrinsic_array_transfer): Likewise.
256         (gfc_conv_associated): Likewise.
257         (gfc_conv_intrinsic_si_kind): Likewise.
258         (gfc_conv_intrinsic_trim): Likewise.
259         (gfc_conv_intrinsic_repeat: Likewise.
260         (gfc_conv_intrinsic_iargc): Likewise.
261
262 2007-02-14  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
263
264         PR fortran/30779
265         * scanner.c (gfc_next_char_literal): Add check for end of file after
266         call to advance_line.
267
268 2007-02-14  Steven G. Kargl  <kargl@gcc.gnu.org>
269
270         PR fortran/30799
271         * primary.c (match_logical_constant): Return MATCH_ERROR on invalid
272         kind.
273
274 2007-02-14  Steven G. Kargl  <kargl@gcc.gnu.org>
275
276         * misc.c (gfc_typename): Fix potential buffer overflow.
277
278 2007-02-13  Paul Thomas  <pault@gcc.gnu.org>
279
280         PR fortran/30554
281         * module.c (read_module): Set pointer_info to referenced if the
282         symbol has no namespace.
283
284 2007-02-12  Nick Clifton  <nickc@redhat.com>
285
286         * lang.opt: Add Warning attribute to warning options.
287
288 2007-02-11  Daniel Franke  <franke.daniel@gmail.com>
289
290         * intrinsic.texi (HOSTNM): Fix typographical error in syntax.
291         (SLEEP): Added section and documentation.
292
293 2007-02-11  Tobias Schlüter  <tobi@gcc.gnu.org>
294
295         PR fortran/30478
296         * decl.c (add_init_expr_to_sym): Remove ENUM specific code.
297         (variable_decl): Likewise.  Rewrap comment.
298         (match_attr_spec): Remove ENUM specific code.
299         (gfc_match_enum): Fix typo in error message.
300         (enumerator_decl): New function.
301         (gfc_match_enumerator_def): Use enumerator_decl instead of
302         variable_decl.  Adapt code accordingly.
303
304 2007-02-11  Paul Thomas  <pault@gcc.gnu.org>
305
306         PR fortran/30554
307         * module.c (find_symtree_for_symbol): New function to return
308         a symtree that is not a "unique symtree" given a symbol.
309         (read_module): Do not automatically set pointer_info to
310         referenced because this inhibits the generation of a unique
311         symtree.  Recycle the existing symtree if possible by calling
312         find_symtree_for_symbol.
313
314         PR fortran/30319
315         * decl.c (add_init_expr_to_sym): Make new charlen for an array
316         constructor initializer.
317
318 2007-02-10  Richard Henderson  <rth@redhat.com>, Jakub Jelinek  <jakub@redhat.com>
319
320         * f95-lang.c (gfc_init_builtin_functions): Add __emutls_get_address
321         and __emutls_register_common.
322         * openmp.c (gfc_match_omp_threadprivate): Don't error if !have_tls.
323         * trans-common.c (build_common_decl): Don't check have_tls.
324         * trans-decl.c (gfc_finish_var_decl): Likewise.
325         * types.def (BT_WORD, BT_FN_PTR_PTR): New.
326         (BT_FN_VOID_PTR_WORD_WORD_PTR): New.
327
328 2007-02-09  Tobias Burnus  <burnus@net-b.de>
329
330         PR fortran/30512
331         * trans-intrinsic.c (gfc_conv_intrinsic_minmaxloc,
332           gfc_conv_intrinsic_minmaxval): Use HUGE-1 for most negative integer.
333
334 2007-02-09  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
335
336         PR fortran/30720
337         * trans-array.c (gfc_trans_create_temp_array): Remove use of the
338         function argument. Always generate code for negative extent.
339         Simplify said code.
340         * trans-array.h (gfc_trans_create_temp_array): Change prototype.
341         * trans-expr.c (gfc_conv_function_call): Remove use of last argument
342         of gfc_trans_create_temp_array.
343         * trans-intrinsic.c (gfc_conv_intrinsic_array_transfer): Likewise.
344         * trans-stmt.c (gfc_conv_elemental_dependencies): Likewise.
345
346 2007-02-08  Roger Sayle  <roger@eyesopen.com>
347
348         * trans-stmt.c (gfc_trans_forall_1): Optimize the cases where the
349         mask expression is a compile-time constant (".true." or ".false.").
350
351 2007-02-04  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
352
353         PR fortran/30611
354         * trans-intrinsic.c (gfc_conv_intrinsic_repeat): Evaluate
355         arguments only once. Generate check that NCOPIES argument is not
356         negative.
357
358 2007-02-04  Steven G. Kargl <kargl@gcc.gnu.org>
359
360         PR fortran/30605
361         * fortran/invoke.texi: Update documentation.
362         * fortran/options.c (gfc_post_options): Deal with tabs with -std=f2003
363         and -pedantic.
364
365 2007-02-03  Kazu Hirata  <kazu@codesourcery.com>
366
367         * trans-array.c: Fix a comment typo.
368
369 2007-02-03  Paul Thomas  <pault@gcc.gnu.org>
370
371         PR fortran/30514
372         * array.c (match_array_element_spec): If the length of an array is
373         negative, adjust the upper limit to make it zero length.
374
375         PR fortran/30660
376         * resolve.c (pure_function, resolve_function): Initialize name to
377         null to clear up build warnings.
378         (resolve_fl_variable): Look at components explicitly to check for
379         default initializer, rather than using gfc_default_initializer.
380
381 2007-02-02  Steven G. Kargl <kargl@gcc.gnu.org>
382
383         PR fortran/30683
384         * resolve.c (resolve_generic_f): Check for non-NULL sym.
385
386 2007-02-02  Roger Sayle  <roger@eyesopen.com>
387
388         * trans.c (gfc_build_array_ref): Use STRIP_TYPE_NOPS to eliminate
389         NON_LVALUE_EXPR nodes and useless type conversions.
390
391 2007-02-02  Paul Thomas  <pault@gcc.gnu.org>
392
393         PR fortran/30284
394         PR fortran/30626
395         * trans-expr.c (gfc_conv_aliased_arg): Remove static attribute
396         from function and make sure that substring lengths are
397         translated.
398         (is_aliased_array): Remove static attribute.
399         * trans.c : Add prototypes for gfc_conv_aliased_arg and
400         is_aliased_array.
401         * trans-io.c (set_internal_unit): Add the post block to the
402         arguments of the function.  Use is_aliased_array to check if
403         temporary is needed; if so call gfc_conv_aliased_arg.
404         (build_dt): Pass the post block to set_internal_unit and
405         add to the block after all io activiy is done.
406
407 2007-02-01  Roger Sayle  <roger@eyesopen.com>
408
409         * trans-array.c (gfc_conv_expr_descriptor): We don't need to use
410         a temporary array to pass a constant non-character array constructor.
411         Generalize the descriptor generation code to handle scalarizer
412         "info" without an array reference.
413
414 2007-02-01  Roger Sayle  <roger@eyesopen.com>
415
416         * dependency.c (gfc_check_dependency) <EXPR_ARRAY>: Implement
417         dependency checking for array constructors.
418
419 2007-02-01  Roger Sayle  <roger@eyesopen.com>
420
421         * trans-stmt.c (compute_overall_iter_number): Document function
422         arguments.  Generalize "unconditional forall nest with constant
423         bounds" optimization to eliminate unconditional inner loops with
424         constant bounds.
425
426 2007-01-31  Tobias Burnus  <burnus@net-b.de>
427
428         PR fortran/30520
429         * interface.c (compare_actual_formal): Check conformance between
430           actual and VOLATILE dummy arguments.
431         * symbol.c (gfc_add_volatile): Allow setting of VOLATILE
432           multiple times in different scopes.
433         * decl.c (gfc_match_volatile): Search symbol in host association.
434
435 2007-01-31  Kazu Hirata  <kazu@codesourcery.com>
436
437         * simplify.c, trans-array.c: Fix comment typos.
438
439 2007-01-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
440
441         * invoke.texi (Code Gen Options): Fix abbreviation typo.
442         * intrinsic.texi (ACCESS, LSHIFT, RSHIFT): Fix typos.
443
444 2007-01-30  Steve Ellcey  <sje@cup.hp.com>
445
446         PR fortran/30432
447         * trans-types.c (gfc_get_function_type): Do not add void_type_node
448         to empty arg list.
449         * trans-decl.c (create_function_arglist): Change assert.
450
451 2007-01-29  Paul Thomas  <pault@gcc.gnu.org>
452
453         PR fortran/30554
454         * module.c (read_module): If a symbol is excluded by an ONLY
455         clause, check to see if there is a symtree already loaded. If
456         so, attach the symtree to the pointer_info.
457
458 2007-01-28  Thomas Koenig  <Thomas.Koenig@online.de>
459
460         PR libfortran/30389
461         * gfortran.h: Remove gfc_simplify_init_1.
462         * arith.h: Remove third argument from gfc_compare_string.
463         * arith.c (gfc_compare_expression): Remove third argument
464         from call to gfc_compare_string.
465         (gfc_compare_string): Remove third argument xcoll_table.
466         Remove use of xcoll_table.
467         * misc.c (gfc_init_1): Remove call to gfc_simplify_init_1.
468         * simplify.c (ascii_table): Remove.
469         (xascii_table): Likewise.
470         (gfc_simplify_achar): ICE if extract_int fails.  Remove use of
471         ascii_table.  Warn if -Wsurprising and value < 0 or > 127.
472         (gfc_simplify_char): ICE if extract_int fails. Error if
473         value < 0 or value > 255.
474         (gfc_simplify_iachar): Remove use of xascii_table.
475         Char values outside of 0..255 are an ICE.
476         (gfc_simplify_lge): Remove use of xascii_table.
477         (gfc_simplify_lgt): Likewise.
478         (gfc_simplify_lle): Likewise.
479         (gfc_simplify_llt): Likewise.
480         (invert_table): Remove.
481         (gfc_simplify_init_1): Remove.
482
483 2007-01-27  Roger Sayle  <roger@eyesopen.com>
484
485         * trans-stmt.c (forall_info): Replace the next_nest and outer
486         fields that previously implemented a doubly-linked list with a
487         single prev_nest field (singly-linked list).
488         (gfc_trans_nested_forall_loop): The nested_forall_info argument
489         now denotes the innermost FORALL in the loop nest.
490         (compute_overall_iter_number): Use prev_nest instead of next_nest.
491         (gfc_trans_forall_1): Link/cons the new "info" to the head of the
492         nested_forall_info linked list.  Free the current "info" when done.
493
494 2007-01-27  Paul Thomas  <pault@gcc.gnu.org>
495
496         PR fortran/30407
497         * trans-expr.c (gfc_conv_operator_assign): New function.
498         * trans.h : Add prototype for gfc_conv_operator_assign.
499         * trans-stmt.c (gfc_trans_where_assign): Add a gfc_symbol for
500         a potential operator assignment subroutine.  If it is non-NULL
501         call gfc_conv_operator_assign instead of the first assignment.
502         ( gfc_trans_where_2): In the case of an operator assignment,
503         extract the argument expressions from the code for the
504         subroutine call and pass the symbol to gfc_trans_where_assign.
505         resolve.c (resolve_where, gfc_resolve_where_code_in_forall,
506         gfc_resolve_forall_body): Resolve the subroutine call for
507         operator assignments.
508
509 2007-01-26  Steven Bosscher  <stevenb.gcc@gmail.com>
510             Steven G. Kargl <kargl@gcc.gnu.org>
511
512         PR fortran/30278
513         * fortran/io.c (next_char): Deal with backslash escaped characters.
514         Issue warnings in non -std=gnu cases.
515         * fortran/primary.c (next_string_char): Issue warnings in non
516
517 2007-01-26  Tobias Burnus  <burnus@net-b.de>
518
519         * lang-specs.h: Add support for .f03 and .F03 extensions.
520         * gfortran.texi: Document .f03 extension.
521         * options.c (form_from_filename): Recognize .f03.
522
523 2007-01-25  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
524
525         PR fortran/30437
526         * lang.opt (Wall): Remove RejectNegative.
527         * options.c (gfc_handle_option): Wall can be disabled.
528         (set_Wall): Add a parameter for disabling Wall.
529         
530 2007-01-23  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
531
532         PR fortran/30532
533         * scanner.c (load_line): Remove check fot ctrl-z and don't gobble.
534         
535 2007-01-23  Paul Thomas  <pault@gcc.gnu.org>
536
537         PR fortran/30481
538         * match.c (gfc_match_namelist): Add check for assumed size character
539         in namelist and provide error if found.
540
541 2007-01-21  Brooks Moses  <brooks.moses@codesourcery.com>
542
543         * intrinsic.texi (ACHAR): Added cross-references.
544         (CHAR): Put cross-references in alphabetical order.
545         (IACHAR): Added cross-references.
546         (ICHAR): Added cross-references.
547
548 2007-01-20  Brooks Moses  <brooks.moses@codesourcery.com>
549
550         * intrinsic.texi: Edited all "Syntax" examples to a consistent form.
551         (MAXVAL): Corrected description of result characteristics.
552         (MINVAL): Same.
553         (UMASK): Added documentation.
554
555 2007-01-20  Steven G. Kargl  <kargl@gcc.gnu.org>
556
557         * openmp.c, matchexp.c, module.c, scanner.c, resolve.c, st.c,
558         parse.c, primary.c, options.c, misc.c, simplify.c: Next installment
559         in the massive whitespace patch.
560
561 2007-01-20  Roger Sayle  <roger@eyesopen.com>
562
563         * module.c (mio_array_ref): The dimen_type fields of an array ref
564         are an enumerated type and can't be read/written directly with a
565         call to mio_integer.  Instead loop over and cast each element.
566
567 2007-01-20  Roger Sayle  <roger@eyesopen.com>
568
569         * dependency.c (gfc_full_array_ref_p): Check that ref->next is NULL,
570         i.e. that the ARRAY_REF doesn't mention components.
571         * trans-array.c (gfc_constant_array_constructor_p): Export external
572         function renamed from constant_array_constructor_p.
573         (gfc_build_constant_array_constructor): Export.
574         (gfc_trans_array_constructor): Update call to the renamed function
575         constant_array_constructor_p.
576         * trans-array.h (gfc_constant_array_constructor_p): Prototype here.
577         (gfc_build_constant_array_constructor): Likewise.
578         * trans-expr.c (gfc_build_memcpy_call): New helper function split
579         out from gfc_trans_array_copy.
580         (gfc_trans_array_copy): Use gfc_build_memcpy_call.
581         (gfc_trans_array_constructor_copy): New function to optimize
582         assigning an entire array from a constant array constructor.
583         (gfc_trans_assignment): Call gfc_trans_array_constructor_copy
584         when appropriate.
585
586 2007-01-20  Roger Sayle  <roger@eyesopen.com>
587
588         * trans-intrinsic.c (gfc_conv_intrinsic_sign): New branchless
589         implementation for the SIGN intrinsic with integral operands.
590         (gfc_conv_intrinsic_minmax): Fix whitespace.
591
592 2007-01-20  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
593
594         * gfortran.h (gfc_options_t): Add flag_allow_leading_underscore.
595         * lang.opt: Add -fallow-leading-underscore.
596         * match.c (gfc_match_name): Allow leading underscore in symbol
597         name if -fallow-leading-underscore is used.
598         * symbol.c (gfc_get_default_type): Add special case for symbol
599         names beginning with an underscore.
600         * trans-decl.c (gfc_get_extern_function_decl,
601         gfc_build_intrinsic_function_decls): Add _gfortran prefix to
602         library symbols selected_int_kind, selected_real_kind and 
603         all specifics.
604         * options.c (gfc_init_options, gfc_handle_option): Handle the
605         new -fallow-leading-underscore option.
606
607 2007-01-20  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
608
609         PR fortran/30446
610         * options.c (gfc_handle_module_path_options): Path used in -J
611         option is now added to the module search path.
612
613 2007-01-20  Richard Guenther  <rguenther@suse.de>
614
615         PR fortran/30223
616         * f95-lang.c (gfc_init_builtin_functions): Provide cbrt and
617         cexpi builtins if we have TARGET_C99_FUNCTIONS.  Provide
618         sincos builtins if the target has sincos.
619
620 2007-01-19  Brooks Moses  <brooks.moses@codesourcery.com>
621
622         * intrinsic.texi (MATMUL): Corrected a typo.
623         (MAX): Separated @var arguments.
624         (MIN): Separated @var arguments.
625
626 2007-01-19  Brooks Moses  <brooks.moses@codesourcery.com>
627
628         * intrinsic.texi: general whitespace cleanup.
629         (menu): Added TIME8, removed UNMASK.
630         (AINT): Clarified argument requirement.
631         (ANINT): Clarified argument requirement.
632         (CEILING): Clarified argument requirement.
633         (CHAR): Clarified argument requirement.
634         (CMPLX): Clarified argument requirement.
635         (DCMPLX): Clarified argument requirement.
636         (FGET): Line rewrapping.
637         (FLOOR): Clarified argument requirement.
638         (GMTIME): Added documentation.
639         (IAND): Added cross-reference.
640         (IBCLR): Added cross-reference.
641         (IBSET): Added cross-reference.
642         (IEOR): Added cross-reference.
643         (INT): Collapsed examples, clarified argument requirement.
644         (IOR): Added cross-references.
645         (LEN_TRIM): Corrected result kind.
646         (LINK): Added cross-reference.
647         (LLT): Removed "documentation pending".
648         (LOGICAL): Added documentation.
649         (LSHIFT): Added documentation.
650         (LTIME): Added documentation.
651         (MATMUL): Added documentation.
652         (MAX): Added documentation.
653         (MAXLOC): Added documentation.
654         (MAXVAL): Added documentation.
655         (MERGE): Added documentation.
656         (MIN): Added documentation.
657         (MINLOC): Added documentation.
658         (MINVAL): Added documentation.
659         (MVBITS): Moved to correct place, added documentation.
660         (NOT): Added documentation.
661         (PERROR): Added documentation.
662         (RAN): Moved to correct place, added documentation.
663         (REAL): Clarified argument requirement.
664         (RENAME): Added documentation.
665         (RSHIFT): Clarified argument requirement.
666         (SIGN): Corrected table specification.
667         (SYMLNK): Added documentation.
668         (SYSTEM): Added documentation.
669         (TIME): Added documentation.
670         (TIME8): Added section and documentation.
671         (UNMASK): Removed erroneous section.
672
673 2007-01-18  H.J. Lu  <hongjiu.lu@intel.com>
674
675         * trans-stmt.c (compute_overall_iter_number): Fix a typo.
676
677 2007-01-18  Roger Sayle  <roger@eyesopen.com>
678
679         * trans-expr.c (copyable_array_p): Consider user derived types without
680         allocatable components to be copyable.
681
682 2007-01-18  Roger Sayle  <roger@eyesopen.com>
683
684         * trans-stmt.c (compute_overall_iter_number): Enhance to precompute
685         the number of interations in unconditional FORALL nests with constant
686         bounds.
687
688 2007-01-18  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
689             Tobias Burnus  <burnus@net-b.de>
690
691         PR libfortran/29649
692         * gfortran.h (gfc_option_t): Add flag_dump_core.
693         * lang.opt: Add -fdump-core option.
694         * invoke.texi: Document the new options.
695         * trans-decl.c (gfc_build_builtin_function_decls): Add new
696           options to the call to set_std.
697         * options.c (gfc_init_options, gfc_handle_option): Set the
698           new options.
699
700 2007-01-17  Paul Thomas  <pault@gcc.gnu.org>
701
702         PR fortran/30476
703         * module.c (load_generic_interfaces): Make the marking of the
704         symbol as ambiguous conditional on the module names being
705         different.
706         (write_generic): Ensure that the generic interface has a
707         non-NULL module field.
708
709 2007-01-16  Roger Sayle  <roger@eyesopen.com>
710
711         PR fortran/30404
712         * trans-stmt.c (forall_info): Remove pmask field.
713         (gfc_trans_forall_loop): Remove NVAR argument, instead assume that
714         NVAR covers all the interation variables in the current forall_info.
715         Add an extra OUTER parameter, which specified the loop header in
716         which to place mask index initializations.
717         (gfc_trans_nested_forall_loop): Remove NEST_FLAG argument.
718         Change the semantics of MASK_FLAG to only control the mask in the
719         innermost loop.
720         (compute_overall_iter_number): Optimize the trivial case of a
721         top-level loop having a constant number of iterations.  Update
722         call to gfc_trans_nested_forall_loop.  Calculate the number of
723         times the inner loop will be executed, not to size of the 
724         iteration space.
725         (allocate_temp_for_forall_nest_1): Reuse SIZE as BYTESIZE when
726         sizeof(type) == 1.  Tidy up.
727         (gfc_trans_assign_need_temp): Remove NEST_FLAG argument from calls
728         to gfc_trans_nested_forall_loop.
729         (gfc_trans_pointer_assign_need_temp): Likewise.
730         (gfc_trans_forall_1): Remove unused BYTESIZE, TMPVAR, SIZEVAR and
731         LENVAR local variables.  Split mask allocation into a separate
732         hunk/pass from mask population.  Use allocate_temp_for_forall_nest
733         to allocate the FORALL mask with the correct size.  Update calls
734         to gfc_trans_nested_forall_loop.
735         (gfc_evaluate_where_mask): Update call to
736         gfc_trans_nested_forall_loop.
737         (gfc_trans_where_2): Likewise.
738
739 2007-01-15  Paul Thomas  <pault@gcc.gnu.org>
740
741         PR fortran/28172
742         * trans-stmt.c (gfc_trans_call): If it does not have one, get
743         a backend_decl for an alternate return.
744
745         PR fortran/29389
746         * resolve.c (pure_function): Statement functions are pure. Note
747         that this will have to recurse to comply fully with F95.
748
749         PR fortran/29712
750         * resolve.c (resolve_function): Only a reference to the final
751         dimension of an assumed size array is an error in an inquiry
752         function.
753
754         PR fortran/30283
755         * resolve.c (resolve_function): Make sure that the function
756         expression has a type.
757
758 2007-01-14  Paul Thomas  <pault@gcc.gnu.org>
759
760         PR fortran/30410
761         * trans-decl.c (gfc_sym_mangled_function_id): Module, external
762         symbols must not have the module name prepended.
763
764 2007-01-11  Thomas Koenig  <Thomas.Koenig@online.de>
765
766         PR libfortran/30415
767         * iresolve.c (gfc_resolve_maxloc): If the rank
768         of the return array is nonzero and we process an
769         integer array smaller than default kind, coerce
770         the array to default integer.
771         * iresolve.c (gfc_resolve_minloc): Likewise.
772
773 2007-01-11  Brooks Moses  <brooks.moses@codesourcery.com>
774
775         * simplify.c: Update copyright to 2007.
776         * scanner.c: Same.
777
778 2007-01-11  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
779
780         PR fortran/30430
781         * scanner.c (gfc_release_include_path): Free gfc_option.module_dir
782         only once!
783
784 2007-01-09  Brooks Moses  <brooks.moses@codesourcery.com>
785
786         * simplify.c (gfc_simplify_ibclr): Fix POS comparison.
787         (gfc_simplify_ibset): Same.
788
789 2007-01-09  Brooks Moses  <brooks.moses@codesourcery.com>
790
791         PR 30381
792         PR 30420
793         * simplify.c (convert_mpz_to_unsigned): New function.
794         (convert_mpz_to_signed): New function, largely based on
795         twos_complement().
796         (twos_complement): Removed.
797         (gfc_simplify_ibclr): Add conversions to and from an
798         unsigned representation before bit-twiddling.
799         (gfc_simplify_ibset): Same.
800         (gfc_simplify_ishftc): Add checks for overly large
801         constant arguments, only check the third argument if
802         it's present, carry over high bits into the result as
803         appropriate, and perform the final conversion back to
804         a signed representation using the correct sign bit.
805         (gfc_simplify_not): Removed unnecessary masking.
806
807 2007-01-09  Paul Thomas  <pault@gcc.gnu.org>
808
809         PR fortran/30408
810         * resolve.c (resolve_code): Use the code->expr character length
811         directly to set length of llen.
812
813 2007-01-09  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
814
815         PR fortran/30408
816         * lang.opt: Add Wcharacter_truncation option.
817         * options.c (gfc_init_options): Initialize
818         gfc_option.warn_character_truncation to zero.
819         (gfc_handle_option): Add case for OPT_Wcharacter_truncation.
820
821 2007-01-08  Steven G. Kargl  <kargl@gcc.gnu.org>
822
823         * interface.c, intrinsic.c, gfortranspec.c, io.c, f95-lang.c,
824         iresolve.c, match.c: Update Copyright years.  Whitespace.
825
826 2007-01-08  Richard Guenther  <rguenther@suse.de>
827
828         * trans-io.c (transfer_array_desc): Use build_int_cst instead
829         of build_int_cstu.
830
831 2007-01-08  Roger Sayle  <roger@eyesopen.com>
832
833         * trans-array.c (constant_array_constructor_p): New function to
834         determine whether an array constructor consists only of constant
835         elements, and if so return it's size.
836         (gfc_build_constant_array_constructor): Construct a statically
837         initialized gfortran array for a given EXPR_ARRAY.
838         (gfc_trans_constant_array_constructor): Efficiently scalarize
839         a constant array constructor.
840         (gfc_trans_array_constructor): Tidy up use of CONST_STRING.
841         Special case scalarization of constant array constructors, all of
842         whose elements are specified, using constant_array_constructor_p 
843         and gfc_trans_constant_array_constructor.
844         (gfc_conv_scalarized_array_ref): Check whetger info->offset is zero
845         before adding it to index, to avoid creating a NON_LVALUE_EXPR.
846
847 2007-01-08  Kazu Hirata  <kazu@codesourcery.com>
848
849         gfortran.texi: Fix typos.
850
851 2007-01-07  Steven G. Kargl  <kargl@gcc.gnu.org>
852
853         * decl.c, dump-parse-tree.c, error.c, data.c, expr.c, dependency.c,
854         convert.c: Update Copyright dates.  Fix whitespace.
855
856 2007-01-07  Bernhard Fischer  <aldot@gcc.gnu.org>
857
858         * data.c (gfc_assign_data_value): Fix whitespace.
859
860 2007-01-07  Bernhard Fischer  <aldot@gcc.gnu.org>
861
862         * trans-array.c (gfc_trans_create_temp_array, gfc_array_init_size):
863         Commentary typo fix.
864
865 2007-01-07  Bernhard Fischer  <aldot@gcc.gnu.org>
866
867         PR fortran/27698
868         * match.c (gfc_match_name): Print diagnostics for invalid
869         character in names.
870
871 2007-01-06  Steven G. Kargl  <kargl@gcc.gnu.org>
872
873         * array.c: Fix whitespace in comment table.
874
875 2007-01-06  Steven G. Kargl  <kargl@gcc.gnu.org>
876
877         * array.c, bbt.c, check.c: Update copyright years.  Whitespace.
878
879 2007-01-06  Steven G. Kargl  <kargl@gcc.gnu.org>
880
881         * arith.c: Update copyright years.  Whitespace.
882
883 2007-01-05  Roger Sayle  <roger@eyesopen.com>
884
885         * trans-expr.c (gfc_trans_assignment_1): New subroutine to scalarize
886         array assignments split out from gfc_trans_assignment.
887         (gfc_trans_array_copy): New function to implement array to array
888         copies via calls to __builtin_memcpy.
889         (copyable_array_p): New helper function to identify an array of
890         simple/POD types, that may be copied/assigned using memcpy.
891         (gfc_trans_assignment): Use gfc_trans_array_copy to handle simple
892         whole array assignments considered suitable by copyable_array_p.
893         Invoke gfc_trans_assignment_1 to perform the fallback scalarization.
894
895 2007-01-05  Roger Sayle  <roger@eyesopen.com>
896
897         * trans-array.c (gfc_trans_array_constructor_value): Make the
898         static const "data" array as TREE_READONLY.
899         * trans-stmt.c (gfc_trans_character_select): Likewise.
900
901 2007-01-05  Roger Sayle  <roger@eyesopen.com>
902
903         * trans-array.c (gfc_conv_loop_setup): Test whether the loop
904         stride is one, to avoid fold_build2 introducing a useless
905         NON_LVALUE_EXPR node.
906
907 2007-01-05  Tobias Burnus  <burnus@net-b.de>
908
909         * symbol.c (check_conflict): Fix error message.
910
911 2007-01-05  Paul Thomas  <pault@gcc.gnu.org>
912
913         PR fortran/23232
914         * decl.c (gfc_in_match_data, gfc_set_in_match_data): New
915         functions to signal that a DATA statement is being matched.
916         (gfc_match_data): Call gfc_set_in_match_data on entry and on
917         exit.
918         * gfortran.h : Add prototypes for above.
919         * expr.c (check_init_expr): Avoid check on parameter or
920         variable if gfc_in_match_data is true.
921         (gfc_match_init_expr): Do not call error on non-reduction of
922         expression if gfc_in_match_data is true.
923
924         PR fortran/27996
925         PR fortran/27998
926         * decl.c (gfc_set_constant_character_len): Add boolean arg to
927         flag array constructor resolution.  Warn if string is being
928         truncated.  Standard dependent error if string is padded. Set
929         new arg to false for all three calls to
930         gfc_set_constant_character_len.
931         * match.h : Add boolean arg to prototype for
932         gfc_set_constant_character_len.
933         * gfortran.h : Add warn_character_truncation to gfc_options.
934         * options.c (set_Wall): Set warn_character_truncation if -Wall
935         is set.
936         * resolve.c (resolve_code): Warn if rhs string in character
937         assignment has to be truncated.
938         * array.c (gfc_resolve_character_array_constructor): Set new
939         argument to true for call to gfc_set_constant_character_len.
940
941 2007-01-05  Tobias Burnus  <burnus@net-b.de>
942
943         PR fortran/29624
944         * interface.c (compare_parameter_intent): New function.
945           (check_intents): Support pointer intents.
946         * symbol.c (check_conflict): Support pointer intents,
947           better conflict_std message.
948         * expr.c (gfc_check_assign,gfc_check_pointer_assign):
949           Support pointer intents.
950         * resolve.c (resolve_deallocate_expr,resolve_allocate_expr):
951           Support pointer intents.
952
953 2007-01-03  Brooks Moses  <brooks.moses@codesourcery.com>
954
955         PR 30371
956         * check.c (gfc_check_kill_sub): Add checks for non-scalar
957         arguments.
958
959 2007-01-04  Brooks Moses  <brooks.moses@codesourcery.com>
960
961         * intrinsic.texi: Minor cleanup, reflowing overlong
962         paragraphs, and correcting whitespace.
963
964 2007-01-04  Brooks Moses  <brooks.moses@codesourcery.com>
965
966         * intrinsic.texi (LBOUND): Add documentation.
967         (LGE): Add documentation.
968         (LGT): Add documentation.
969         (LINK): Add documentation.
970         (LLE): Add documentation.
971         (LLT): Add documentation.
972         (LNBLNK): Add documentation.
973         (UBOUND): Add documentation.
974         (UNLINK): Add documentation.
975
976 2007-01-04  Brooks Moses  <brooks.moses@codesourcery.com>
977
978         * intrinsic.texi (IAND): Clarify argument specifications.
979         (IBCLR): Add documentation.
980         (IBITS): Add documentation.
981         (IBSET): Add documentation.
982         (IEOR): Add documentation.
983         (IERRNO): Add documentation.
984         (INDEX): Add documentation.
985         (IOR): Add documentation.
986         (ISHFT): Add documentation.
987         (ISHFTC): Add documentation.
988         (KILL): Add documentation.
989         (LEN_TRIM): Add documentation.
990
991 2007-01-04  Brooks Moses  <brooks.moses@codesourcery.com>
992
993         PR 30235
994         * interface.c (compare_actual_formal): check for
995         alternate returns when iterating over non-present
996         arguments.
997
998 2007-01-04  Brooks Moses  <brooks.moses@codesourcery.com>
999
1000         * invoke.texi: Update manpage copyright to include 2007.
1001
1002 2007-01-04  Brooks Moses  <brooks.moses@codesourcery.com>
1003
1004         * gfortran.texi: Update copyright to include 2007.
1005         * intrinsic.texi: Update copyright to include 2007.
1006         * invoke.texi: Update copyright to include 2007.
1007
1008 2007-01-02  Tobias Burnus  <burnus@net-b.de>
1009             Jakub Jelinek  <jakub@redhat.com>
1010
1011         PR fortran/30276
1012         * scanner.c (open_included_file): Revert patch.
1013           (gfc_open_included_file): Support absolute pathnames.
1014           (gfc_open_intrinsic_module): Support absolute pathnames.
1015
1016 2007-01-03  Brooks Moses  <brooks.moses@codesourcery.com>
1017
1018         * gfortran.texi (GNU Fortran and GCC): Rewrite
1019
1020 2007-01-03  Brooks Moses  <brooks.moses@codesourcery.com>
1021
1022         * gfortran.texi (Introduction): Lower "Part I:
1023         Introduction" to a chapter, renumber Parts II and III to
1024         Parts I and II.
1025         * intrinsic.texi (Introduction): Rename to "Introduction
1026         to Intrinsics" to avoid conflict with the new chapter.
1027
1028 2007-01-03  Brooks Moses  <brooks.moses@codesourcery.com>
1029
1030         * intrinsic.texi (Introduction): Rewrite first paragraph.
1031
1032 2007-01-03  Brooks Moses  <brooks.moses@codesourcery.com>
1033
1034         * invoke.texi (OpenMP): Added index entry.
1035         * gfortran.texi (title page): Removed erroneous '*'.
1036
1037 2007-01-03  Brooks Moses  <brooks.moses@codesourcery.com>
1038
1039         * gfortran.texi (GFORTRAN_DEFAULT_RECL): Added units
1040         to description.
1041         (Extensions): Miscellaneous minor rewriting and copyediting.
1042         (BOZ-literal constants): Renamed from Hexadecimal constants.
1043         (Hollerith constants support): Added explanation and 
1044         suggestions for standard-conforming modern equivalents.
1045
1046 2007-01-03  Brooks Moses  <brooks.moses@codesourcery.com>
1047
1048         * intrinsic.texi: Improvements to index entries; change
1049         @findex entries to @cindex entries.
1050         * invoke.texi: Standardize and improve index entries.
1051         * gfortran.texi: Fix @code in one index entry.
1052
1053 2007-01-03  Brooks Moses  <brooks.moses@codesourcery.com>
1054
1055         * invoke.texi: Change @code-type macros to appropriate
1056         variants (@command, @option, etc.)
1057         * gfortran.texi: Same.
1058
1059 2007-01-03  Brooks Moses  <brooks.moses@codesourcery.com>
1060
1061         * intrinsic.texi: Various minor cleanups.
1062
1063 2007-01-02  Steven G. Kargl  <kargls@comcast.net>
1064
1065         * trans-intrinsic.c (gfc_conv_intrinsic_ibits): Fix call to
1066         build_int_cst.
1067
1068 2007-01-02  Tobias Burnus  <burnus@net-b.de>
1069
1070         PR fortran/30276
1071         * scanner.c (open_included_file): Support full-path filenames.
1072
1073 2007-01-02  Paul Thomas  <pault@gcc.gnu.org>
1074
1075         PR fortran/20896
1076         * interface.c (check_sym_interfaces): Remove call to
1077         resolve_global_procedure.
1078         gfortran.h : Remove prototype for resolve_global_procedure.
1079         resolve.c (resolve_global_procedure): Add static attribute
1080         to function declaration.
1081
1082 2007-01-01  Steven G. Kargl  <kargls@comcast.net>
1083
1084         * ChangeLog: Copy to ...
1085         * ChangeLog-2006: here.