OSDN Git Service

09084fba1c169a419cd83e6257cf1b742d468a35
[pf3gnuchains/gcc-fork.git] / gcc / fortran / ChangeLog
1 2009-03-27  Richard Guenther  <rguenther@suse.de>
2
3         * trans-array.c (gfc_conv_descriptor_data_addr): Use
4         gfc_build_addr_expr instead of build_fold_addr_expr.
5         (gfc_trans_allocate_array_storage, gfc_trans_array_constructor_value,
6         gfc_trans_constant_array_constructor, gfc_conv_array_data,
7         gfc_conv_expr_descriptor, gfc_conv_array_parameter): Likewise.
8         * trans-expr.c (gfc_conv_missing_dummy, gfc_conv_variable,
9         gfc_conv_function_val, gfc_conv_operator_assign,
10         gfc_conv_subref_array_arg, gfc_conv_function_call,
11         gfc_conv_expr_reference, gfc_trans_scalar_assign): Likewise.
12         * trans-intrinsic.c (gfc_conv_intrinsic_exponent,
13         gfc_conv_intrinsic_ctime, gfc_conv_intrinsic_fdate,
14         gfc_conv_intrinsic_ttynam, gfc_conv_intrinsic_minmax_char,
15         gfc_conv_intrinsic_fraction, gfc_conv_intrinsic_spacing,
16         gfc_conv_intrinsic_rrspacing, gfc_conv_intrinsic_set_exponent,
17         gfc_conv_intrinsic_array_transfer, gfc_conv_intrinsic_transfer,
18         gfc_conv_intrinsic_si_kind, gfc_conv_intrinsic_trim): Likewise.
19         * trans-io.c (gfc_trans_io_runtime_check, set_parameter_ref,
20         gfc_convert_array_to_string, gfc_trans_open, gfc_trans_close,
21         build_filepos, gfc_trans_inquire, gfc_trans_wait,
22         nml_get_addr_expr, transfer_namelist_element, build_dt,
23         gfc_trans_dt_end, transfer_array_component, transfer_expr,
24         transfer_array_desc, gfc_trans_transfer): Likewise.
25         * trans-stmt.c (gfc_trans_allocate, gfc_trans_deallocate): Likewise.
26         * trans.c (gfc_build_addr_expr): Mark the base of the address
27         TREE_ADDRESSABLE.
28
29 2009-03-27  Tobias Burnus  <burnus@net-b.de>
30
31         * gfortran.h (enum init_local_real.): Add GFC_INIT_REAL_SNAN.
32         (gfc_expr): Add is_snan.
33         * trans-const.c (gfc_conv_mpfr_to_tree): Support SNaN.
34         (gfc_conv_constant_to_tree): Update call to gfc_conv_mpfr_to_tree.
35         * trans-const.h (gfc_conv_mpfr_to_tree): Update prototype.
36         * resolve.c (build_default_init_expr): Update call.
37         * target-memory.c (encode_float): Ditto.
38         * trans-intrinsic.c (gfc_conv_intrinsic_aint,gfc_conv_intrinsic_mod,
39
40 2009-03-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41
42         * lang.opt: Unify help texts for -I, -Wconversion, -d, -fopenmp,
43         and -fpreprocessed.
44
45 2009-03-06  Alexandre Oliva <aoliva@redhat.com>
46
47         * simplify.c (gfc_simplify_transfer): Zero-initialize the
48         buffer.
49
50 2009-02-27  Tobias Burnus  <burnus@net-b.de>
51
52         PR fortran/39309
53         * module.c (read_md5_from_module_file): Add missing quote.
54
55 2009-02-27  Tobias Burnus  <burnus@net-b.de>
56
57         PR fortran/39309
58         * module.c (read_md5_from_module_file): Include mod version
59         in had-changed test.
60
61 2009-02-26  Paul Thomas  <pault@gcc.gnu.org>
62
63         PR fortran/39295
64         * interface.c (compare_type_rank_if): Return 1 if the symbols
65         are the same and deal with external procedures where one is
66         identified to be a function or subroutine by usage but the
67         other is not.
68
69 2009-02-26  Paul Thomas  <pault@gcc.gnu.org>
70
71         PR fortran/39292
72         * trans-array.c (gfc_conv_array_initializer): Convert all
73         expressions rather than ICEing.
74
75 2009-02-21  Thomas Koenig  <tkoenig@gcc.gnu.org>
76
77         PR fortran/38914
78         * array.c (ref_dimen_size):  Rename to gfc_ref_dimen_size,
79         make global.  Change function name in error messages.
80         (ref_size):  Change ref_dimen_size to gfc_ref_dimen_size.
81         (gfc_array_ref_shape):  Likewise.
82         * gfortran.h:  Add prototype for gfc_ref_dimen_size.
83         * simplify.c (simplify_bound_dim):  Add ref argument.
84         If the reference isn't a full array, return one for
85         the lower bound and the extent for the upper bound.
86         (simplify_bound):  For array sections, take as from the
87         argument.  Add reference to all to simplify_bound_dim.
88
89 2009-02-19  Daniel Franke  <franke.daniel@gmail.com>
90
91         * scanner.c (load_line): At end of line, skip '\r' without setting
92         the truncation flag.
93
94 2009-02-18  Daniel Kraft  <d@domob.eu>
95
96         * gfortran.texi: New chapter about compiler characteristics.
97         (Compiler Characteristics): Document KIND type parameters here.
98
99 2009-02-18  Tobias Burnus  <burnus@net-b.de>
100
101         * intrinsic.texi (MALLOC): Make example more portable.
102
103 2009-02-13  Mikael Morin  <mikael.morin@tele2.fr>
104
105         PR fortran/38259
106         * module.c (gfc_dump_module,gfc_use_module): Add module
107         version number.
108
109 2009-02-13  Paul Thomas  <pault@gcc.gnu.org>
110
111         PR fortran/36703
112         PR fortran/36528
113         * trans-expr.c (gfc_conv_function_val): Stabilize Cray-pointer
114         function references to ensure that a valid expression is used.
115         (gfc_conv_function_call): Pass Cray pointers to procedures.
116
117 2009-02-03  Jakub Jelinek  <jakub@redhat.com>
118
119         * gfortranspec.c (lang_specific_driver): Update copyright notice
120         dates.
121
122 2009-01-28  Paul Thomas  <pault@gcc.gnu.org>
123
124         PR fortran/38852
125         PR fortran/39006
126         * trans-intrinsic.c (gfc_conv_intrinsic_bound): Use the array
127         descriptor ubound for UBOUND, when the array lbound == 1.
128
129 2009-01-27  Daniel Kraft  <d@domob.eu>
130
131         PR fortran/38883
132         * trans-stmt.c (gfc_conv_elemental_dependencies):  Create temporary
133         for the real type needed to make it work for subcomponent-references.
134
135 2009-01-21  Daniel Kraft  <d@domob.eu>
136
137         * trans-stmt.c (gfc_conv_elemental_dependencies):  Cleaned up comment.
138
139 2009-01-20  Paul Thomas  <pault@gcc.gnu.org>
140
141         PR fortran/38907
142         * resolve.c (check_host_association): Remove the matching to
143         correct an incorrect host association and use manipulation of
144         the expression instead.
145
146 2009-01-20  Tobias Burnus  <burnus@net-b.de>
147
148         * invoke.texi (RANGE): RANGE also takes INTEGER arguments.
149
150 2009-01-19  Mikael Morin  <mikael.morin@tele2.fr>
151
152         PR fortran/38859
153         * simplify.c (simplify_bound): Don't use array specification
154         if variable or component has subsequent references.
155
156 2009-01-17  Paul Thomas  <pault@gcc.gnu.org>
157
158         PR fortran/38657
159         * module.c (write_common_0): Add argument 'this_module' and
160         check that non-use associated common blocks are written first.
161         (write_common): Call write_common_0 twice, once with true and
162         then with false.
163
164 2009-01-17  Paul Thomas  <pault@gcc.gnu.org>
165
166         PR fortran/34955
167         * trans-intrinsic.c (gfc_conv_intrinsic_array_transfer): Has
168         been absorbed into gfc_conv_intrinsic_transfer. All
169         references to it in trans-intrinsic.c have been changed
170         accordingly.  PR fixed by using a temporary for scalar
171         character transfer, when the source is shorter than the
172         destination.
173
174 2009-01-17  Paul Thomas  <pault@gcc.gnu.org>
175
176         PR fortran/38657
177         * module.c (write_common_0): Revert patch of 2009-01-05.
178
179 2009-01-16  Janus Weil  <janus@gcc.gnu.org>
180
181         PR fortran/38152
182         * expr.c (gfc_check_pointer_assign): Allow use-associated procedure
183         pointers as lvalue.
184         * trans-decl.c (get_proc_pointer_decl,gfc_create_module_variable):
185         Enable procedure pointers as module variables.
186
187 2009-01-14  Steven G. Kargl  <kargl@gcc.gnu.org>
188
189         * ChangeLog-2007: Clean out svn merge droppings.
190
191 2009-01-10  Paul Thomas  <pault@gcc.gnu.org>
192
193         PR fortran/38763
194         * target-memory.c (encode_derived): Encode NULL.
195
196 2009-01-10  Paul Thomas  <pault@gcc.gnu.org>
197
198         PR fortran/38765
199         * resolve.c (check_host_association): Use the symtree name to
200         search for a potential contained procedure, since this is the
201         name by which it would be referenced.
202
203 2009-01-06  Thomas Koenig  <tkoenig@gcc.gnu.org>
204
205         PR fortran/38220
206         * interface.c (gfc_procedure_use):  Don't warn about functions
207         from ISO_C_BINDING.
208         * symbol.c (generate_isocbinding_symbol):  Mark c_loc and
209         c_funloc as pure.
210
211 2009-01-05  Paul Thomas  <pault@gcc.gnu.org>
212
213         PR fortran/38657
214         * module.c (write_common_0): Use the name of the symtree rather
215         than the common block, to determine if the common has been
216         written.
217
218 2009-01-05  Daniel Franke  <franke.daniel@gmail.com>
219
220         PR fortran/37159
221         * check.c (gfc_check_random_seed): Added size check for GET
222         dummy argument, reworded error messages to follow common pattern.
223
224 2009-01-05  Thomas Koenig  <tkoenig@gcc.gnu.org>
225
226         PR fortran/38672
227         * trans-types.c (gfc_get_derived_type):  Check for the
228         presence of derived->ns->proc_name before
229         accessing derived->ns->proc_name->attr.flavor .
230         * resolve.c (resolve_symbol):  Likewise.
231
232 2009-01-05  Paul Thomas  <pault@gcc.gnu.org>
233
234         PR fortran/38665
235         * gfortran.h : Add bit to gfc_expr 'user_operator'
236         * interface.c (gfc_extend_expr): Set the above if the operator
237         is substituted by a function. 
238         * resolve.c (check_host_association): Return if above is set.
239
240 2009-01-04  Mikael Morin  <mikael.morin@tele2.fr>
241
242         PR fortran/35681
243         * ChangeLog-2008: Fix function name.
244
245         PR fortran/38487
246         * dependency.c (gfc_check_argument_var_dependency):
247         Move the check for pointerness inside the if block
248         so that it doesn't affect the return value.
249
250         PR fortran/38669
251         * trans-stmt.c (gfc_trans_call):
252         Add the dependency code after the loop bounds calculation one.
253
254 2009-01-04  Daniel Franke  <franke.daniel@gmail.com>
255
256         * intrinsic.c (do_simplify): Removed already implemented TODO.
257
258 2009-01-04  Daniel Franke  <franke.daniel@gmail.com>
259
260         PR fortran/38718
261         * simplify.c (gfc_simplify_merge): New.
262         * intrinsic.h (gfc_simplify_merge): New prototype.
263         * intrinsic.c (add_functions): Added simplification for MERGE.
264
265 2009-01-04  Mikael Morin  <mikael.morin@tele2.fr>
266
267         PR fortran/38536
268         * gfortran.h (gfc_is_data_pointer): Added prototype
269         * resolve.c (gfc_iso_c_func_interface):
270         Use gfc_is_data_pointer to test for pointer attribute.
271         * dependency.c (gfc_is_data_pointer):
272         Support pointer-returning functions.
273
274 2009-01-03  Daniel Franke  <franke.daniel@gmail.com>
275
276         * symbol.c (save_symbol): Don't SAVE function results.
277
278 2009-01-03  Paul Thomas  <pault@gcc.gnu.org>
279
280         PR fortran/38594
281         * resolve.c (resolve_call): When searching for proper host
282         association, use symtree rather than symbol.  For everything
283         except generic subroutines, substitute the symtree in the call
284         rather than the symbol.