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