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