]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/fortran/ChangeLog
* Makefile.in: Rename to htmldir to build_htmldir to avoid
[thirdparty/gcc.git] / gcc / fortran / ChangeLog
CommitLineData
85690e4d 12006-06-06 Mike Stump <mrs@apple.com>
2
3 * Make-lang.in: Rename to htmldir to build_htmldir to avoid
4 installing during build.
5
ad82e588 62006-06-06 Paul Thomas <pault@gcc.gnu.org>
7
8 PR fortran/27897
9 * match.c (gfc_match_common): Fix code typo. Remove
10 sym->name, since sym is NULL, and replace with name.
11
dd94eeca 122006-06-05 Francois-Xavier Coudert <coudert@clipper.ens.fr>
13
14 PR libfortran/27895
15 * resolve.c (compute_last_value_for_triplet): New function.
16 (check_dimension): Correctly handle zero-sized array sections.
17 Add checking on last element of array sections.
18
28778287 192006-06-05 Steven G. Kargl <kargls@comcast.net>
20
21 * data.c (gfc_assign_data_value): Fix comment typo. Remove
22 a spurious return.
23
e0cff9dc 242006-06-05 Paul Thomas <pault@gcc.gnu.org>
25
26 PR fortran/14067
27 * data.c (create_character_intializer): Add warning message
28 for truncated string.
29
30 PR fortran/16943
31 * symbol.c : Include flags.h.
32 (gfc_add_type): If a procedure and types are the same do not
33 throw an error unless standard is less than gnu or pedantic.
34
ad82e588 35 PR fortran/20839
e0cff9dc 36 * parse.c (parse_do_block): Error if named block do construct
37 does not have a named enddo.
38
39 PR fortran/27655
40 * check.c (gfc_check_associated): Pick up EXPR_NULL for pointer
41 as well as target and put error return at end of function.
42
97c2a00c 432006-06-03 Francois-Xavier Coudert <coudert@clipper.ens.fr>
44
45 * trans.c (gfc_msg_bounds, gfc_msg_fault, gfc_msg_wrong_return):
46 Add strings for common runtime error messages.
47 (gfc_trans_runtime_check): Add a locus argument, use a string
48 and not a string tree for the message.
49 * trans.h (gfc_trans_runtime_check): Change prototype accordingly.
50 (gfc_msg_bounds, gfc_msg_fault, gfc_msg_wrong_return): Add proto.
51 * trans-const.c (gfc_strconst_bounds, gfc_strconst_fault,
52 gfc_strconst_wrong_return, gfc_strconst_current_filename): Remove.
53 (gfc_init_constants): Likewise.
54 * trans-const.h: Likewise.
55 * trans-decl.c (gfc_build_builtin_function_decls): Call to
56 _gfortran_runtime_error has only one argument, the message string.
57 * trans-array.h (gfc_conv_array_ref): Add a symbol argument and a
58 locus.
59 * trans-array.c (gfc_trans_array_bound_check): Build precise
60 error messages.
61 (gfc_conv_array_ref): Use the new symbol argument and the locus
62 to build more precise error messages.
63 (gfc_conv_ss_startstride): More precise error messages.
64 * trans-expr.c (gfc_conv_variable): Give symbol reference and
65 locus to gfc_conv_array_ref.
66 (gfc_conv_function_call): Use the new prototype for
67 gfc_trans_runtime_check.
68 * trans-stmt.c (gfc_trans_goto): Build more precise error message.
69 * trans-io.c (set_string): Likewise.
70 * trans-intrinsic.c (gfc_conv_intrinsic_bound): Use new prototype
71 for gfc_trans_runtime_check.
72
031c3cd8 732006-06-01 Thomas Koenig <Thomas.Koenig@online.de>
74
75 PR fortran/27715
76 * arith.c: Cast the characters from the strings to unsigned
77 char to avoid values less than 0 for extended ASCII.
78
00b9f416 792006-06-01 Per Bothner <bothner@bothner.com>
80
81 * data.c (gfc_assign_data_value): Handle USE_MAPPED_LOCATION.
82 * scanner.c (gfc_gobble_whitespace): Likewise.
83
e815d37d 842006-06-01 Paul Thomas <pault@gcc.gnu.org>
85
86 PR fortran/25098
87 PR fortran/25147
88 * interface.c (compare_parameter): Return 1 if the actual arg
89 is external and the formal is a procedure.
90 (compare_actual_formal): If the actual argument is a variable
91 and the formal a procedure, this an error. If a gsymbol exists
92 for a procedure of the same name, this is not yet resolved and
93 the error is cleared.
94
95 * trans-intrinsic.c (gfc_conv_associated): Make provision for
96 zero array length or zero string length contingent on presence
97 of target, for consistency with standard.
98
a7c1e504 992006-05-30 Asher Langton <langton2@llnl.gov>
100
101 * symbol.c (check_conflict): Allow external, function, and
102 subroutine attributes with Cray pointees.
103 * trans-expr.c (gfc_conv_function_val): Translate Cray pointees
104 that point to procedures.
105 * gfortran.texi: Document new feature.
106
b6bf0502 1072006-05-29 Jerry DeLisle <jvdelisle@gcc.gnu.org>
108
109 PR fortran/27634
110 * io.c (check_format): Add error for missing period in format
111 specifier unless -std=legacy.
112 * gfortran.texi: Add description of expanded namelist read and
113 missing period in format extensions.
114
81ad3bc7 1152006-05-29 Francois-Xavier Coudert <coudert@clipper.ens.fr>
116
117 PR fortran/19777
118 * trans-array.c (gfc_conv_array_ref): Perform out-of-bounds
119 checking for assumed-size arrrays for all but the last dimension.
120
e5a0d2e2 1212006-05-29 Francois-Xavier Coudert <coudert@clipper.ens.fr>
122
123 * invoke.texi: Change -fpackderived into -fpack-derived.
124
b71883de 1252006-05-29 Kazu Hirata <kazu@codesourcery.com>
126
127 * options.c, primary.c, resolve.c, trans-common.c: Fix typos
128 in error messages.
129
8e2caf1e 1302006-05-28 Kazu Hirata <kazu@codesourcery.com>
131
132 * check.c, expr.c, resolve.c, trans-common.c,
133 trans-intrinsic.c, trans-stmt.c, trans-types.c: Fix comment typos.
134
7f4898ce 1352006-05-27 Francois-Xavier Coudert <coudert@clipper.ens.fr>
136
137 PR fortran/19777
138 * trans-array.c (gfc_conv_array_ref): Don't perform out-of-bounds
139 checking for assumed-size arrrays.
140
d9963cc2 1412006-05-27 Paul Thomas <pault@gcc.gnu.org>
142
143 * trans-intrinsic.c (gfc_conv_associated): If pointer in first
144 arguments has zero array length of zero string length, return
145 false.
146
f6f5efdc 1472006-05-26 Francois-Xavier Coudert <coudert@clipper.ens.fr>
148
149 PR fortran/27524
150 * trans-array.c (gfc_trans_dummy_array_bias): Don't use stride as
151 a temporary variable when -fbounds-check is enabled, since its
152 value will be needed later.
153
e9b8ed17 1542006-05-26 Thomas Koenig <Thomas.Koenig@online.de>
155
156 PR fortran/23151
157 * io.c (match_io): print (1,*) is an error.
158
7544787a 1592006-05-26 Paul Thomas <pault@gcc.gnu.org>
160
161 PR fortran/27709
162 * resolve.c (find_array_spec): Add gfc_symbol, derived, and
163 use to track repeated component references.
164
165 PR fortran/27155
166 PR fortran/27449
167 * trans-intrinsic.c (gfc_conv_intrinsic_array_transfer): Use
168 se->string_length throughout and use memcpy to populate the
169 expression returned to the scalarizer.
170 (gfc_size_in_bytes): New function.
171
84c27833 1722006-05-21 Paul Thomas <pault@gcc.gnu.org>
173
174 PR fortran/27613
175 * primary.c (gfc_match_rvalue): Test if symbol represents a
176 direct recursive function reference. Error if array valued,
177 go to function0 otherwise.
178
9960dc89 1792006-05-21 Paul Thomas <pault@gcc.gnu.org>
180
181 PR fortran/25746
182 * interface.c (gfc_extend_assign): Use new EXEC_ASSIGN_CALL.
183 * gfortran.h : Put EXEC_ASSIGN_CALL in enum.
184 * trans-stmt.c (gfc_conv_elemental_dependencies): New function.
185 (gfc_trans_call): Call it. Add new boolian argument to flag
186 need for dependency checking. Assert intent OUT and IN for arg1
187 and arg2.
188 (gfc_trans_forall_1): Use new code EXEC_ASSIGN_CALL.
189 trans-stmt.h : Modify prototype of gfc_trans_call.
190 trans.c (gfc_trans_code): Add call for EXEC_ASSIGN_CALL.
191 st.c (gfc_free_statement): Free actual for EXEC_ASSIGN_CALL.
192 * dependency.c (gfc_check_fncall_dependency): Don't check other
193 against itself.
194
195 PR fortran/25090
196 * resolve.c : Remove resolving_index_expr.
197 (entry_parameter): Remove.
198 (gfc_resolve_expr, resolve_charlen, resolve_fl_variable): Lift
199 calls to entry_parameter and references to resolving_index_expr.
200
201 PR fortran/27584
202 * check.c (gfc_check_associated): Replace NULL assert with an
203 error message, since it is possible to generate bad code that
204 has us fall through to here..
205
206 PR fortran/19015
207 * iresolve.c (maxloc, minloc): If DIM is not present, pass the
208 rank of ARRAY as the shape of the result. Otherwise, pass the
209 shape of ARRAY, less the dimension DIM.
210 (maxval, minval): The same, when DIM is present, otherwise no
211 change.
212
97f99a6c 2132006-05-19 H.J. Lu <hongjiu.lu@intel.com>
214
215 PR fortran/27662
3b5f7660 216 * trans-array.c (gfc_conv_expr_descriptor): Don't zero the
97f99a6c 217 first stride to indicate a temporary.
218 * trans-expr.c (gfc_conv_function_call): Likewise.
219
0170f107 2202006-05-18 Francois-Xavier Coudert <coudert@clipper.ens.fr>
221 Feng Wang <fengwang@nudt.edu.cn>
222
223 PR fortran/27552
224 * dump-parse-tree.c (gfc_show_expr): Deal with Hollerith constants.
225 * data.c (create_character_intializer): Set from_H flag if character is
226 initialized by Hollerith constant.
227
ff9cd459 2282006-05-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
229
230 PR fortran/26551
231 * resolve.c (resolve_call, resolve_function): Issue an error
232 if a function or subroutine call is recursive but the function or
233 subroutine wasn't declared as such.
234
2352006-05-07 Francois-Xavier Coudert <coudert@clipper.ens.fr>
236
237 PR fortran/26551
238 * gfortran.dg/recursive_check_1.f: New test.
239
240
c094ccab 2412006-05-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
242
243 PR fortran/27320
244 * dump-parse-tree.c (gfc_show_code_node): Try harder to find the
245 called procedure name.
246
87f7c31e 2472006-05-17 Jakub Jelinek <jakub@redhat.com>
248
249 PR middle-end/27415
250 * trans-openmp.c (gfc_trans_omp_parallel_do,
251 gfc_trans_omp_parallel_sections, gfc_trans_omp_parallel_workshare): Set
252 OMP_PARALLEL_COMBINED flag.
253
a1baa5f1 2542006-05-16 H.J. Lu <hongjiu.lu@intel.com>
255
256 PR driver/26885
257 * Make-lang.in (GFORTRAN_D_OBJS): Replace gcc.o with
258 $(GCC_OBJS).
259
947f2aa1 2602006-05-15 Paul Thomas <pault@gcc.gnu.org>
261
262 PR fortran/25090
263 * resolve.c: Static resolving_index_expr initialized.
264 (entry_parameter): New function to emit errors for variables
265 that are not entry parameters.
266 (gfc_resolve_expr): Call entry_parameter, when resolving
267 variables, if the namespace has entries and resolving_index_expr
268 is set.
269 (resolve_charlen): Set resolving_index_expr before the call to
270 resolve_index_expr and reset it afterwards.
271 (resolve_fl_variable): The same before and after the call to
272 is_non_constant_shape_array, which ultimately makes a call to
273 gfc_resolve_expr.
274
275 PR fortran/25082
276 * resolve.c (resolve_code): Add error condition that the return
277 expression must be scalar.
278
9960dc89 279 PR fortran/27411
947f2aa1 280 * matchexp.c (gfc_get_parentheses): New function.
281 (match_primary): Remove inline code and call above.
282 * gfortran.h: Provide prototype for gfc_get_parentheses.
283 * resolve.c (resolve_array_ref): Call the above, when start is a
284 derived type variable array reference.
285
48080ae7 2862006-05-15 Jakub Jelinek <jakub@redhat.com>
287
288 PR fortran/27446
289 * trans-openmp.c (gfc_trans_omp_array_reduction): Ensure
290 OMP_CLAUSE_REDUCTION_{INIT,MERGE} are set to BIND_EXPR.
291
49b338fd 2922006-05-14 H.J. Lu <hongjiu.lu@intel.com>
293
294 * Make-lang.in (fortran/options.o): Depend on $(TARGET_H).
295
e484bfb4 2962006-05-11 Francois-Xavier Coudert <coudert@clipper.ens.fr>
297
298 PR fortran/27553
299 * parse.c (next_free): Return instead of calling decode_statement
300 upon error.
301
2fe6eed9 3022005-05-10 Thomas Koenig <Thomas.Koenig@online.de>
303
304 PR fortran/27470
305 * trans-array.c(gfc_array_allocate): If ref->next exists
306 that is if there is a statement like ALLOCATE(foo%bar(2)),
307 F95 rules require that bar should be a pointer.
308
783304dc 3092006-05-10 Francois-Xavier Coudert <coudert@clipper.ens.fr>
310
311 PR fortran/20460
312 * resolve.c (gfc_resolve_index): Make REAL array indices a
313 GFC_STD_LEGACY feature.
314
508e5093 3152006-05-10 Francois-Xavier Coudert <coudert@clipper.ens.fr>
316
317 PR fortran/24549
318 * parse.c (reject_statement): Clear gfc_new_block.
319
750e985b 3202006-05-09 Steven G. Kargl <kargls@comcast.net>
321
322 * invoke.texi: Missed file in previous commit. Update
323 description of -fall-intrinsics
324
cde01ea2 3252006-05-07 Steven Boscher <steven@gcc.gnu.org>
74ae7593 326
327 PR fortran/27378
328 * parse.c (next_statement): Add check to avoid an ICE when
329 gfc_current_locus.lb is not set.
330
dab19f01 331