2011-01-17 Tobias Burnus <burnus@net-b.de>
[official-gcc.git] / gcc / fortran / ChangeLog
blob40167d1eda549482e8c5534683e0960ebd3a7517
1 2011-01-17  Tobias Burnus  <burnus@net-b.de>
3         PR fortran/47327
4         * invoke.texi (Options to request or suppress errors
5         and warnings): Fix cross link.
7 2011-01-15  Tobias Burnus  <burnus@net-b.de>
9         * gfortran.texi: Update Fortran 2003 Status section.
11         PR fortran/47177
12         * invoke.texi: Add missing "-E" to the -dM example.
14 2011-01-13  Tobias Burnus  <burnus@net-b.de>
16         PR fortran/47268
17         * intrinsic.texi (get_command_argument, get_environment_variable):
18         Mark arguments as optional in the Arguments section.
20 2011-01-13  Kai Tietz  <kai.tietz@onevision.com>
21             Tobias Burnus  <burnus@net-b.de>
23         PR fortran/47260
24         * trans-decl.c (gfc_get_extern_function_decl,
25         build_function_decl): Set TREE_PUBLIC/TREE_EXTERNAL before
26         calling decl_attributes.
28 2011-01-13  Tobias Burnus  <burnus@net-b.de>
29             Mikael Morin  <mikael@gcc.gnu.org>
31         PR fortran/45848
32         PR fortran/47204
33         * gfortran.h (gfc_code): Move union ext's case_list into
34         the struct block.
35         * dump-parse-tree.c (show_code_node): Adapt by prefixing case_list
36         by "block.".
37         * frontend-passes.c (gfc_code_walker): Ditto.
38         * match.c (gfc_match_goto, gfc_match_call, gfc_match_case,
39         gfc_match_type_is, gfc_match_class_is): Ditto.
40         * resolve.c (resolve_select, resolve_select_type): Ditto.
41         * st.c (gfc_free_statement): Ditto.
42         * trans-stmt.c (gfc_trans_integer_select, gfc_trans_logical_select,
43         gfc_trans_character_select): Ditto.
44         * parse.c (resolve_all_program_units): For error recovery, avoid
45         segfault is proc_name is NULL.
47 2011-01-11  Paul Thomas  <pault@gcc.gnu.org>
49         PR fortran/47051
50         * trans-array.c (gfc_alloc_allocatable_for_assignment): Change
51         to be standard compliant by testing for shape rather than size
52         before skipping reallocation. Improve comments.
54 2011-01-09  Janus Weil  <janus@gcc.gnu.org>
56         PR fortran/47224
57         * resolve.c (resolve_actual_arglist): Remove unneeded and buggy piece
58         of code.
60 2011-01-09  Thomas Koenig  <tkoenig@gcc.gnu.org>
62         PR fortran/38536
63         * resolve.c (is_scalar_expr_ptr):  For a substring reference,
64         use gfc_dep_compare_expr to compare start and end expession.
65         Add FIXME for using gfc_deb_compare_expr elsewhere.
67 2011-01-09  Janus Weil  <janus@gcc.gnu.org>
69         PR fortran/46313
70         * class.c (get_unique_type_string): Make type name start with upper
71         case letter.
73 2011-01-08  Thomas Koenig  <tkoenig@gcc.gnu.org>
75         PR fortran/46405
76         * invoke.texi:  Mention -ffree-line-length-none and
77         -ffixed-line-length-none for preprocessing.
79 2011-01-08  Paul Thomas  <pault@gcc.gnu.org>
81         PR fortran/46896
82         * trans-expr.c (gfc_conv_procedure_call): With a non-copying
83         procedure argument (eg TRANSPOSE) use a temporary if there is
84         any chance of aliasing due to host or use association.
85         (arrayfunc_assign_needs_temporary): Correct logic for function
86         results and do not use a temporary for implicitly PURE
87         variables.  Use a temporary for Cray pointees.
88         * symbol.c (gfc_add_save): Explicit SAVE not compatible with
89         implicit pureness of containing procedure.
90         * decl.c (match_old_style_init, gfc_match_data): Where decl
91         would fail in PURE procedure, set implicit_pure to zero.
92         * gfortran.h : Add implicit_pure to structure symbol_attr and
93         add prototype for function gfc_implicit_pure.
94         * expr.c (gfc_check_pointer_assign, gfc_check_vardef_context):
95         Where decl would fail in PURE procedure, reset implicit_pure.
96         * io.c (match_vtag, gfc_match_open, gfc_match_close,
97         gfc_match_print, gfc_match_inquire, gfc_match_wait): The same.
98         * match.c (gfc_match_critical, gfc_match_stopcode,
99         sync_statement, gfc_match_allocate, gfc_match_deallocate): The
100         same.
101         * parse.c (decode_omp_directive): The same.
102         (parse_contained): If not PURE, set implicit pure attribute.
103         * resolve.c (resolve_formal_arglist, resolve_structure_cons,
104         resolve_function, resolve_ordinary_assign) : The same.
105         (gfc_implicit_pure): New function.
106         * module.c (mio_symbol_attribute): Introduce AB_IMPLICIT_PURE
107         to ab_attribute enum and use it in this function.
109 2011-01-08  Thomas Koenig  <tkoenig@gcc.gnu.org>
111         PR fortran/45777
112         * symbol.c (gfc_symbols_could_alias):  Strip gfc_ prefix,
113         make static and move in front of its only caller, to ...
114         * trans-array.c (symbols_could_alias): ... here.
115         Pass information about pointer and target status as
116         arguments.  Allocatable arrays don't alias anything
117         unless they have the POINTER attribute.
118         (gfc_could_be_alias):  Keep track of pointer and target
119         status when following references.  Also check if typespecs
120         of components match those of other components or symbols.
122 2011-01-07  Tobias Burnus  <burnus@net-b.de>
124         PR fortran/41580
125         * class.c (gfc_build_class_symbol): Mark __vtab as attr.vtab.
126         * intrinsic.c (add_functions): Use simplify functions for
127         EXTENDS_TYPE_OF and SAME_TYPE_AS.
128         * intrinsic.h (gfc_simplify_extends_type_of,
129         gfc_simplify_same_type_as): New prototypes.
130         * simplify.c (is_last_ref_vtab, gfc_simplify_extends_type_of,
131         gfc_simplify_same_type_as): New functions.
133 2011-01-07  Janus Weil  <janus@gcc.gnu.org>
135         PR fortran/47189
136         PR fortran/47194
137         * gfortran.h (gfc_lval_expr_from_sym): Moved prototype.
138         * class.c (gfc_class_null_initializer): Initialize _vptr to declared
139         type.
140         * expr.c (gfc_lval_expr_from_sym): Moved here from symbol.c.
141         * resolve.c (resolve_deallocate_expr): _data component will be added
142         at translation stage.
143         * symbol.c (gfc_lval_expr_from_sym): Moved to expr.c.
144         * trans-stmt.c (gfc_trans_deallocate): Reset _vptr to declared type.
146 2011-01-06  Daniel Franke  <franke.daniel@gmail.com>
148         PR fortran/33117
149         PR fortran/46478
150         * parse.c (parse_interface): Remove check for procedure types.
151         * interface.c (check_interface0): Verify that procedures are
152         either all SUBROUTINEs or all FUNCTIONs.
154 2011-01-05  Janus Weil  <janus@gcc.gnu.org>
156         PR fortran/47180
157         * trans-expr.c (gfc_trans_class_assign): Bugfix for r168524 (make sure
158         'vtab' is initialized).
160 2011-01-05  Janus Weil  <janus@gcc.gnu.org>
162         PR fortran/47180
163         * trans-expr.c (gfc_trans_class_assign): For a polymorphic NULL pointer
164         assignment, set the _vptr component to the declared type.
166 2011-01-05  Thomas Koenig  <tkoenig@gcc.gnu.org>
168         PR fortran/46017
169         * resolve.c (resolve_allocate_deallocate): Follow references to
170         check for duplicate occurence of allocation/deallocation objects.
172 2011-01-05  Janus Weil  <janus@gcc.gnu.org>
174         PR fortran/47024
175         * trans-decl.c (gfc_trans_deferred_vars): Initialize the _vpr component
176         of polymorphic allocatables according to their declared type.
178 2011-01-04  Janus Weil  <janus@gcc.gnu.org>
180         PR fortran/46448
181         * class.c (gfc_find_derived_vtab): Set the module field for the copying
182         routine to make sure it receives module name mangling.
184 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
186         * gfortranspec.c (lang_specific_driver): Update copyright notice
187         dates.
189 2011-01-03  Janus Weil  <janus@gcc.gnu.org>
191         * intrinsic.texi (LEADZ): Fix example.
193 2011-01-02  Janus Weil  <janus@gcc.gnu.org>
195         PR fortran/46408
196         * class.c (gfc_find_derived_vtab): Use EXEC_INIT_ASSIGN for __copy_
197         routine.
200 Copyright (C) 2011 Free Software Foundation, Inc.
202 Copying and distribution of this file, with or without modification,
203 are permitted in any medium without royalty provided the copyright
204 notice and this notice are preserved.