OSDN Git Service

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