OSDN Git Service

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