OSDN Git Service

PR bootstrap/42812
[pf3gnuchains/gcc-fork.git] / gcc / fortran / ChangeLog
1 2010-01-20  Joern Rennecke  <amylaar@spamcop.net>
2
3         * module.c (mio_f2k_derived): Use enumerator as initializer of
4         enum variable.
5
6         PR bootstrap/42812
7         * gfortran.h  (struct gfc_namespace) <resolved>: Change to signed
8         bitfield of width 2.
9
10 2010-01-19  Janus Weil  <janus@gcc.gnu.org>
11
12         PR fortran/42804
13         * resolve.c (extract_compcall_passed_object): Set locus for
14         passed-object argument.
15         (extract_ppc_passed_object): Set locus and correctly remove PPC
16         reference.
17
18 2010-01-19  Paul Thomas  <pault@gcc.gnu.org>
19
20         PR fortran/42783
21         * trans-decl.c (add_argument_checking): Do not use the backend
22         decl directly to test for the presence of an optional dummy
23         argument.  Use gfc_conv_expr_present, remembering to set the
24         symbol referenced.
25
26         PR fortran/42772
27         * trans-decl.c (gfc_generate_function_code): Small white space
28         changes. If 'recurcheckvar' is NULL do not try to reset it.
29
30 2010-01-19  Janus Weil  <janus@gcc.gnu.org>
31
32         PR fortran/42545
33         * resolve.c (resolve_fl_derived): Set the accessibility of the parent
34         component for extended types.
35         * symbol.c (gfc_find_component): Remove a wrongly-worded error message
36         and take care of parent component accessibility.
37
38 2010-01-17  Janus Weil  <janus@gcc.gnu.org>
39
40         PR fortran/42677
41         * gfortran.h (symbol_attribute): Remove 'ambiguous_interfaces'.
42         * interface.c (check_interface1): Move a warning message here from
43         resolve_fl_procedure.
44         (check_sym_interfaces): Removed 'attr.ambiguous_interfaces'.
45         * module.c (read_module): Remove call to gfc_check_interfaces, since
46         this comes too early here.
47         * resolve.c (resolve_fl_procedure): Move warning message to
48         check_interface1.
49
50 2010-01-14 Jerry DeLisle <jvdelisle@gcc.gnu.org>
51
52         PR fortran/42684
53         * interface.c (check_interface1): Pass symbol name rather than NULL to
54         gfc_compare_interfaces. (gfc_compare_interfaces): Add assert to
55         trap MULL.
56         * resolve.c (check_generic_tbp_ambiguity): Pass symbol name rather
57         than NULL to gfc_compare_interfaces.
58
59 2010-01-14  Paul Thomas  <pault@gcc.gnu.org>
60
61         PR fortran/41478
62         * trans-array.c (duplicate_allocatable):  Static version of
63         gfc_duplicate_allocatable with provision to handle scalar
64         components. New boolean argument to switch off call to malloc
65         if true.
66         (gfc_duplicate_allocatable): New function to call above with
67         new argument false.
68         (gfc_copy_allocatable_data): New function to call above with
69         new argument true.
70         (structure_alloc_comps): Do not apply indirect reference to
71         scalar pointers. Add new section to copy allocatable components
72         of arrays. Extend copying of allocatable components to include
73         scalars.
74         (gfc_copy_only_alloc_comp): New function to copy allocatable
75         component derived types, without allocating the base structure.
76         * trans-array.h : Add primitive for gfc_copy_allocatable_data.
77         Add primitive for gfc_copy_only_alloc_comp.
78         * trans-expr.c (gfc_conv_procedure_call): After calls to
79         transformational functions with results that are derived types
80         with allocatable components, copy the components in the result.
81         (gfc_trans_arrayfunc_assign): Deallocate allocatable components
82         of lhs derived types before allocation.
83         
84 2010-01-14  Paul Thomas  <pault@gcc.gnu.org>
85
86         PR fortran/42481
87         * module.c (load_generic_interfaces): If a procedure that is
88         use associated but not generic is given an interface that
89         includes itself, then make it generic.
90
91 2010-01-11  Joseph Myers  <joseph@codesourcery.com>  
92             Shujing Zhao  <pearly.zhao@oracle.com>
93
94         PR translation/42469
95         * lang.opt (fblas-matmul-limit=, finit-character=, finit-integer=,
96         finit-logical=, finit-real=, fmax-array-constructor=): Use tab
97         character between option name and help text.
98
99 2010-01-09 Jerry DeLisle <jvdelisle@gcc.gnu.org>
100
101         PR fortran/20923
102         PR fortran/32489
103         * trans-array.c (gfc_conv_array_initializer): Change call to
104         gfc_error_now to call to gfc_fatal_error.
105         * array.c (count_elements): Whitespace. (extract_element): Whitespace.
106         (is_constant_element): Changed name from constant_element.
107         (gfc_constant_ac): Only use expand_construuctor for expression
108         types of EXPR_ARRAY.  If expression type is EXPR_CONSTANT, no need to
109         call gfc_is_constant_expr.
110         * expr.c (gfc_reduce_init_expr): Adjust conditionals and delete error
111         message.
112         * resolve.c (gfc_is_expandable_expr): New function that determiners if
113         array expressions should have their constructors expanded.
114         (gfc_resolve_expr): Use new function to determine whether or not to call
115         gfc_expand_constructor.
116
117 2010-01-09  Tobias Burnus  <burnus@net-b.de>
118
119         PR fortran/41298
120         * trans-expr.c (gfc_trans_structure_assign): Handle
121         c_null_(fun)ptr.
122         * symbol.c (gen_special_c_interop_ptr): Add NULL_EXPR
123         to the constructor for c_null_(fun)ptr.
124         * resolve.c (resolve_structure_cons): Add special case
125         for c_null_(fun)ptr.
126
127 2010-01-09  Jakub Jelinek  <jakub@redhat.com>
128
129         * gfortranspec.c (lang_specific_driver): Update copyright notice
130         dates.
131
132 2010-01-08  Tobias Burnus  <burnus@net-b.de>
133
134         PR/fortran 25829
135         * symbol.c (check_conflict, gfc_copy_attr): Add
136         ASYNCHRONOUS support.
137         (gfc_add_asynchronous): New function.
138         * decl.c (match_attr_spec): Add ASYNCHRONOUS support.
139         (gfc_match_asynchronous): New function.
140         * dump-parse-tree.c (show_attr): Add ASYNCHRONOUS support.
141         * gfortran.h (symbol_attribute): New ASYNCHRONOUS bit.
142         (gfc_add_asynchronous): New Prototype.
143         * module.c (ab_attribute, mio_symbol_attribute): Add
144         ASYNCHRONOUS support.
145         * resolve.c (was_declared): Ditto.
146         * match.h (gfc_match_asynchronous): New prototype.
147         * parse.c (decode_specification_statement,decode_statement):
148         Add ASYNCHRONOUS support.
149
150 2010-01-07  Tobias Burnus  <burnus@net-b.de>
151
152         PR fortran/42597
153         * trans-decl.c (get_proc_pointer_decl): Fix call to
154         gfc_conv_initializer for array-valued proc-pointer funcs.
155
156 2010-01-07  Tobias Burnus  <burnus@net-b.de>
157
158         PR fortran/41872
159         * trans-decl.c (gfc_trans_deferred_vars): Don't initialize
160         allocatable scalars with SAVE attribute.
161
162 2010-01-05  Tobias Burnus  <burnus@net-b.de>
163
164         PR fortran/42517
165         * options.c (gfc_post_options): Set -frecursion
166         when -fopenmp is used.
167
168 2010-01-05  Tobias Burnus  <burnus@net-b.de>
169
170         PR fortran/41872
171         * trans-expr.c (gfc_conv_procedure_call): Nullify
172         return value for allocatable-scalar character functions.
173
174 2010-01-04  Tobias Burnus  <burnus@net-b.de>
175
176         PR fortran/36161
177         * error.c (error_printf, gfc_warning, gfc_notify_std,
178         gfc_warning_now, gfc_error, gfc_error_now,
179         gfc_fatal_error): Change argument name from nocmsgid to
180         gmsgid to enable (x)gettext's % checking.
181
182 2010-01-04  Tobias Burnus  <burnus@net-b.de>
183         
184         * trans-decl.c (gfc_trans_deferred_vars): Fix spelling.
185
186 2010-01-04  Tobias Burnus  <burnus@net-b.de>
187
188         PR fortran/41872
189         * trans-expr.c (gfc_conv_procedure_call): Add indirect ref
190         for functions returning allocatable scalars.
191         * trans-stmt.c (gfc_trans_allocate): Emmit error when
192         reallocating an allocatable scalar.
193         * trans.c (gfc_allocate_with_status): Fix pseudocode syntax
194         in comment.
195         * trans-decl.c (gfc_trans_deferred_vars): Nullify local
196         allocatable scalars.
197         (gfc_generate_function_code): Nullify result variable for
198         allocatable scalars.
199         
200         PR fortran/40849
201         * module.c (gfc_use_module): Fix warning string to allow
202         for translation.
203
204         PR fortran/42517
205         * invoke.texi (-fcheck=recursion): Mention that the checking
206         is also disabled for -frecursive.
207         * trans-decl.c (gfc_generate_function_code): Disable
208         -fcheck=recursion when -frecursive is used.
209
210         * intrinsic.texi (iso_c_binding): Improve wording.
211
212 \f
213 Copyright (C) 2010 Free Software Foundation, Inc.
214
215 Copying and distribution of this file, with or without modification,
216 are permitted in any medium without royalty provided the copyright
217 notice and this notice are preserved.