OSDN Git Service

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