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