]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/fortran/ChangeLog
re PR fortran/31202 (Incorrect rounding generated for NINT)
[thirdparty/gcc.git] / gcc / fortran / ChangeLog
CommitLineData
3d97b1af
FXC
12007-08-05 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
2 Tobias Burnus <burnus@gcc.gnu.org>
3
4 PR fortran/32979
5 * intrinsic.h (gfc_check_isnan): Add prototype.
6 * gfortran.h (gfc_isym_id): Add GFC_ISYM_ISNAN.
7 * intrinsic.c (add_functions): Add ISNAN intrinsic.
8 * check.c (gfc_check_isnan): New function.
9 * trans-intrinsic.c (gfc_conv_intrinsic_isnan): New function.
10 (gfc_conv_intrinsic_function): Call gfc_conv_intrinsic_isnan
11 to translate ISNAN.
12 * intrinsic.texi: Document ISNAN.
13
aa84a9a5
PT
142007-08-04 Paul Thomas <pault@gcc.gnu.org>
15
16 PR fortran/31214
cbef3aa2
PT
17 * symbol.c (get_unique_symtree): Moved from module.c.
18 * module.c (get_unique_symtree): Moved to symbol.c.
19 * decl.c (get_proc_name): Transfer the typespec from the local
20 symbol to the module symbol, in the case that an entry is also
21 a module procedure. Ensure the local symbol is cleaned up by
22 pointing to it with a unique symtree.
aa84a9a5 23
cbef3aa2 24 * dump_parse_tree (gfc_show_code_node): Add EXEC_ASSIGN_CALL.
aa84a9a5 25
26ef8a2c
SK
262008-08-04 Steven G. Kargl <kargl@gcc.gnu.org>
27
28 PR fortran/32969
29 * iresolve.c (gfc_resolve_rrspacing): Convert argument(s) to
30 expected KIND.
31 (gfc_resolve_scale): Ditto.
32 (gfc_resolve_set_exponent): Ditto.
33 (gfc_resolve_spacing): Ditto.
34
35 PR fortran/32968
36 * trans-intrinsic.c (gfc_conv_intrinsic_si_kind,
37 gfc_conv_intrinsic_sr_kind): Convert the argument(s) to the
38 expected KIND, and fold the result to the expected KIND.
39
94f548c2
FXC
402007-08-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
41
42 PR fortran/31202
43 * f95-lang.c (gfc_init_builtin_functions): Defin builtins for
44 lround{f,,l} and llround{f,,l}.
45 * trans-intrinsic.c (build_fix_expr): Generate calls to the
46 {l,}round{f,,l} functions.
47
870c06b9
TK
482007-08-01 Thomas Koenig <tkoenig@gcc.gnu.org>
49
50 PR libfortran/32954
51 * intrinsic.c (resolve_mask_arg): New function.
52 (gfc_resolve_maxloc): Use resolve_mask_arg for mask resolution.
53 (gfc_resolve_maxval): Likewise.
54 (gfc_resolve_minloc): Likewise.
55 (gfc_resolve_minval): Likewise.
56 (gfc_resolve_pack): Likewise.
57 (gfc_resolve_product): Likewise.
58 (gfc_resolve_sum): Likewise.
59 (gfc_resolve_unpack): Likewise.
60
b8a0d3cf
TB
612007-08-01 Tobias Burnus <burnus@net-b.de>
62
63 PR fortran/32936
64 * match.c (gfc_match_allocate): Better check that STAT is
65 a variable.
66
67 * check.c (gfc_check_allocated): Reorder checks to improve
68 error message.
69
d234d788
NC
702007-08-01 Nick Clifton <nickc@redhat.com>
71
72 * arith.c: Change copyright header to refer to version 3 of the
73 GNU General Public License and to point readers at the COPYING3
74 file and the FSF's license web page.
75 * openmp.c, interface.c, intrinsic.c, trans-array.c, trans-expr.c,
76 symbol.c, iso-fortran-env.def, intrinsic.h, decl.c, trans-array.h,
77 matchexp.c, dump-parse-tree.c, trans-common.c, array.c,
78 Make-lang.in, trans-openmp.c, gfortran.h, error.c,
79 iso-c-binding.def, lang.opt, data.c, trans-const.c, trans-stmt.c,
80 expr.c, trans-const.h, trans-stmt.h, module.c, trans.c, scanner.c,
81 trans-types.c, trans.h, gfortranspec.c, trans-types.h,
82 lang-specs.h, io.c, bbt.c, resolve.c, f95-lang.c, st.c,
83 iresolve.c, match.c, trans-decl.c, trans-io.c, target-memory.c,
84 match.h, target-memory.h, parse.c, arith.h, check.c, dependency.c,
85 parse.h, types.def, convert.c, dependency.h, primary.c,
86 trans-intrinsic.c, options.c, misc.c, simplify.c: Likewise.
87
d92693b4
DF
882007-08-01 Daniel Franke <franke.daniel@gmail.com>
89
90 * trans-decl.c (generate_local_decl): Emit warning on unused parameter
91 on "-Wall -Wextra" or "-Wunused-parameter" but not on "-Wall", changed
92 messages that start with lower case to upper case.
93 * invoke.texi (-Wparameter-unused): Document differences between gcc
94 and gfortran regarding this option.
95
d05360a6
DF
962007-08-01 Daniel Franke <franke.daniel@gmail.com>
97
98 PR fortran/32945
99 * expr.c (check_specification_function): Skip check if no symtree
100 is available.
101
08ee9e85
PT
1022007-08-01 Paul Thomas <pault@gcc.gnu.org>
103
104 PR fortran/31609
105 * resolve.c (resolve_entries): Entries declared to be module
106 procedures must point to the function namespace.
107
7d520b9b
FXC
1082007-07-31 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
109
110 PR fortran/32938
111 * trans-stmt.c (gfc_trans_return): Convert to correct type.
112
14b1261a
SK
1132007-07-31 Steven G. Kargl <kargl@gcc.gnu.org>
114
115 PR fortran/32942
8db6f545 116 * trans-intrinsic.c (gfc_conv_intrinsic_exponent): Convert to correct
14b1261a
SK
117 type.
118
0483c79f
JD
1192007-07-29 Jerry DeLisle <jvdelisle@gcc.gnu.org>
120
121 * invoke.texi: Document -fsign-zero flag.
122
6a56381b
PT
1232007-07-29 Paul Thomas <pault@gcc.gnu.org>
124
125 PR fortran/31211
126 * trans-expr.c (gfc_conv_expr_reference): Add block for case of
127 scalar pointer functions so that NULL result is correctly
128 handled.
129
130 PR fortran/32682
8db6f545 131 * trans-array.c (gfc_trans_array_constructor): On detecting a
6a56381b
PT
132 multi-dimensional parameter array, set the loop limits.
133
c317bc40
DF
1342007-07-29 Daniel Franke <franke.daniel@gmail.com>
135
136 PR fortran/32906
137 * resolve.c (resolve_fl_parameter): Check for constant shape arrays,
138 adjusted error message.
139
5a2197e9
DF
1402007-07-29 Daniel Franke <franke.daniel@gmail.com>
141
142 * invoke.texi: Removed -w from option summary.
143
4cb3c8fc
DF
1442007-07-29 Daniel Franke <franke.daniel@gmail.com>
145
146 PR fortran/32879
147 * intrinsic.texi (IRAND, RAND, RANDOM_NUMBER): Document algorithm
148 used for random number generator.
149
1207ac67
KH
1502007-07-28 Kazu Hirata <kazu@codesourcery.com>
151
152 * gfortran.h, interface.c, resolve.c, symbol.c: Fix comment
153 typos.
154 * intrinsic.texi, invoke.texi: Fix typos.
155
6d023ec5
JD
1562007-07-28 Jerry DeLisle <jvdelisle@gcc.gnu.org>
157
158 PR fortran/31609
159 * resolve.c (generic_sym): Check for a same symbol and if so, return to
160 avoid infinite recursion.
161
5cca320d
DF
1622007-07-28 Daniel Franke <franke.daniel@gmail.com>
163
164 PR fortran/31818
165 PR fortran/32876
166 PR fortran/32905
f86b898d
DF
167 * gfortran.h (symbol_attribute): Added bits for pointer_comp,
168 private_comp.
169 * parse.c (parse_derived): Set pointer_comp/private_comp bits if
170 the derived type ultimately contains pointer components or private
171 components.
5cca320d
DF
172 * module.c (ab_attribute): New values AB_POINTER_COMP, AB_PRIVATE_COMP.
173 (attr_bits): Added names for new ab_attributes.
174 (mio_symbol_attribute): Save/restore new attribute bits in modules.
f86b898d
DF
175 * match.c (gfc_match_namelist): Removed check for namelist objects
176 of assumed shape.
177 * resolve.c (resolve_fl_namelist): Added check for pointer or
178 private components in nested types. Added check for namelist objects
179 of assumed shape.
5cca320d 180
b8247b13
PT
1812007-07-28 Paul Thomas <pault@gcc.gnu.org>
182
183 PR fortran/32880
184 * trans-expr.c (gfc_trans_scalar_assign): Revert to fixed order
185 for lse and rse pre expressions, for derived types with
186 allocatable components. Instead, assign the lhs to a temporary
187 and deallocate after the assignment.
188
dd52ecb0
JB
1892007-07-28 Janne Blomqvist <jb@gcc.gnu.org>
190
191 PR fortran/32909
192 * trans-stmt.c (gfc_trans_character_select): Replace occurrences
193 of gfc_c_int_type_node with integer_type_node.
194 * trans-decl.c (gfc_build_intrinsic_function_decls): Likewise.
195 (gfc_build_builtin_function_decls): Likewise.
196 (gfc_generate_function_code): Likewise.
197 * trans-io.c (gfc_build_io_library_fndecls): Likewise.
198
4e27018f
JB
1992007-07-27 Janne Blomqvist <jb@gcc.gnu.org>
200
201 * trans-decl.c (gfc_build_builtin_function_decls): Use existing
202 gfc_array_index_type rather than creating another typenode for
203 gfc_index_integer_kind.
204
6520ecac
JB
2052007-07-27 Janne Blomqvist <jb@gcc.gnu.org>
206
207 * trans-io.c (gfc_build_io_library_fndecls): Change to use
208 gfc_array_index_type for array descriptor triplets instead of
209 gfc_int4_type_node.
210
b8475dd6
SK
2112007-07-26 Steven G. Kargl <kargl@gcc.gnu.org>
212
213 PR fortran/32899
214 * resolve.c (resolve_operator): Add INTRINSIC_EQ_OS comparison.
215
4958f4ee
JD
2162007-07-27 Jerry DeLisle <jvdelisle@gcc.gnu.org>
217 Daniel Franke <franke.daniel@gmail.com>
218
219 PR fortran/32760
220 * primary.c (match_variable): Do not call gfc_add_flavor if symbol has
221 attribute of ACCESS_PUBLIC or ACCESS_PRIVATE already marked.
222
2b8327ce
FXC
2232007-07-27 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
224
225 PR fortran/32035
226 * trans-stmt.c (gfc_trans_character_select): Replace the
227 mechanism with labels by a SWITCH_EXPR.
228 * trans-decl.c (gfc_build_builtin_function_decls): Change
229 return type for select_string.
230
55ed891f
PT
2312007-07-27 Paul Thomas <pault@gcc.gnu.org>
232
233 PR fortran/32903
234 * trans-decl.c (gfc_trans_deferred_vars): Set intent(out)
235 derived types as referenced, if they have the the default
236 initializer set.
237
741ac903
KG
2382007-07-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
239
240 * gfortran.h (generate_isocbinding_symbol): Constify.
241 * symbol.c (gen_special_c_interop_ptr, gen_cptr_param,
242 generate_isocbinding_symbol): Likewise.
243
55ed891f 2442007-07-24 Paul Thomas <pault@gcc.gnu.org>
08113c73
PT
245
246 PR fortran/31205
247 PR fortran/32842
248 * trans-expr.c (gfc_conv_function_call): Remove the default
249 initialization of intent(out) derived types.
250 * symbol.c (gfc_lval_expr_from_sym): New function.
251 * matchexp.c (gfc_get_parentheses): Return argument, if it is
252 character and posseses a ref.
253 * gfortran.h : Add prototype for gfc_lval_expr_from_sym.
254 * resolve.c (has_default_initializer): Move higher up in file.
255 (resolve_code): On detecting an interface assignment, check
256 if the rhs and the lhs are the same symbol. If this is so,
257 enclose the rhs in parenetheses to generate a temporary and
258 prevent any possible aliasing.
259 (apply_default_init): Remove code making the lval and call
260 gfc_lval_expr_from_sym instead.
261 (resolve_operator): Give a parentheses expression a type-
262 spec if it has no type.
263 * trans-decl.c (gfc_trans_deferred_vars): Apply the a default
264 initializer, if any, to an intent(out) derived type, using
265 gfc_lval_expr_from_sym and gfc_trans_assignment. Check if
266 the dummy is present.
267
fd8e2796
DF
2682007-07-24 Daniel Franke <franke.daniel@gmail.com>
269
270 PR fortran/32867
271 * expr.c (check_init_expr): Simplify matched functions.
272
3f2286f2
DF
2732007-07-24 Daniel Franke <franke.daniel@gmail.com>
274
275 PR fortran/32778
276 * intrinsic.c (add_sym): Do not exclude any symbols, even if not part
277 of the selected standard.
278 (make generic): Likewise.
279 (make alias): Likewise, set standard the alias belongs to.
280 (add_subroutines): Call make_noreturn unconditionally.
281 (check_intrinsic_standard): Change return value to try.
282 (gfc_intrinsic_func_interface): Check return value of above function.
283 (gfc_intrinsic_sub_interface): Likewise.
284
18fe404f
TK
2852007-07-24 Thomas Koenig <tkoenig@gcc.gnu.org>
286
287 PR fortran/30814
bdcfceb4
TB
288 * trans-decl.c (generate_function_code): Add argument
289 for flag_bounds_check to the array for set_options.
290 * invoke.texi (-fbounds-check): Document new libarary run-time
291 behaviour.
18fe404f 292
5ab0eadf
DF
2932007-07-23 Daniel Franke <franke.daniel@gmail.com>
294
295 PR fortran/25104
296 PR fortran/31639
297 * expr.c (check_transformational): Reject valid transformational
298 intrinsics to avoid ICE.
299 (check_inquiry): Report error for assumed character lengths for
300 all supported standards.
301 (check_init_expr): Whitespace fix.
302
d8fa96e0
CR
3032007-07-23 Christopher D. Rickett <crickett@lanl.gov>
304
305 PR fortran/32797
306 PR fortran/32800
307 * decl.c (verify_bind_c_sym): Use the result symbol for functions
308 with a result clause. Warn if implicitly typed. Verify the type
309 and rank of the SHAPE argument, if given.
310 * resolve.c (gfc_iso_c_sub_interface): Use gfc_procedure_use to
311 check the actual args against the formal, sorting them if
312 necessary.
313 * symbol.c (gen_shape_param): Initialize type of SHAPE param to
314 BT_VOID.
315
8b16d231
CR
3162007-07-23 Christopher D. Rickett <crickett@lanl.gov>
317
318 PR fortran/32732
319 * trans-decl.c (generate_local_decl): Convert the TREE_TYPE for by
320 value character dummy args of BIND(C) procedures.
321 * trans-expr.c (gfc_conv_variable): Do not build address
322 expression for BT_CHARACTER dummy args.
323
089db47d
CR
3242007-07-23 Christopher D. Rickett <crickett@lanl.gov>
325 Tobias Burnus <burnus@net-b.de>
326
327 PR fortran/32600
328 * trans-expr.c (gfc_conv_function_call): Handle c_funloc.
329 * trans-types.c: Add pfunc_type_node.
330 (gfc_init_types,gfc_typenode_for_spec): Use it.
331 * resolve.c (gfc_iso_c_func_interface): Fix whitespace and
332 improve error message.
333
eec14ce5
DF
3342007-07-22 Daniel Franke <franke.daniel@gmail.com>
335
336 PR fortran/32710
337 * parse.c (gfc_fixup_sibling_symbols): No replacement of symbols if
338 the current is a namelist.
339
26677eb8
DF
3402007-07-22 Daniel Franke <franke.daniel@gmail.com>
341
342 PR fortran/29962
343 PR fortran/31253
344 PR fortran/31265
345 PR fortran/31639
346 * gfortran.h (gfc_intrinsic_sym): Changed members elemental, pure,
347 generic, specific, actual_ok, noreturn into bits of a bitfield,
348 added bits for inquiry, transformational, conversion.
349 * check.c (non_init_transformational): Removed, removed all callers.
350 * intrinsic.c (enum class): New.
351 (add_sym*): Replaced argument elemetal by enum class. Changed all
352 callers.
353 (add_functions): Assign appropriate classes to intrinsic functions.
354 (add_subroutines): Assign appropriate classes to intrinsic subroutines.
355 (add_conv): Set conversion attribute.
356 (gfc_init_expr_extensions): Removed, removed all callers.
357 (gfc_intrinsic_func_interface): Reimplemented check for non-standard
358 initializatione expressions.
359 * expr.c (check_specification_function): New.
360 (gfc_is_constant_expr): Added check for specification functions.
361 (check_init_expr_arguments): New.
362 (check_inquiry): Changed return value to MATCH, added checks for
363 inquiry functions defined by F2003.
364 (check_transformational): New.
365 (check_null): New.
366 (check_elemental): New.
367 (check_conversion): New.
368 (check_init_expr): Call new check functions, add more specific error
369 messages.
370
6ad5cf72
CR
3712007-07-21 Christopher D. Rickett <crickett@lanl.gov>
372
373 PR fortran/32627
374 * resolve.c (set_name_and_label): Set kind number for character
375 version of c_f_pointer.
376 (gfc_iso_c_sub_interface): Set the kind of the SHAPE formal arg to
377 that of the actual SHAPE arg.
378 * symbol.c (gen_shape_param): Initialize kind for SHAPE arg.
379
21a77227
CR
3802007-07-21 Christopher D. Rickett <crickett@lanl.gov>
381
382 PR fortran/32801
383 * symbol.c (generate_isocbinding_symbol): Remove unnecessary
384 conditional.
385
386 PR fortran/32804
387 * resolve.c (gfc_iso_c_func_interface): Reject assumed-shape and
388 deferred-shape arrays as args to C_LOC. Fix bug in testing
389 character args to C_LOC.
390
ffd82975
LM
3912007-07-21 Lee Millward <lee.millward@gmail.com>
392
393 PR fortran/32823
394 * trans-intrinsic.c (gfc_conv_intrinsic_int): Evaluate all
395 arguments passed, not just the first one. Adjust code to
396 refer to "args[0]" instead of "arg" as a result.
397
972345f2
CR
3982007-07-19 Christopher D. Rickett <crickett@lanl.gov>
399
400 PR fortran/32600
401 * trans-expr.c (gfc_conv_function_call): Inline C_LOC.
402
c00a2e6b
CR
4032007-07-18 Christopher D. Rickett <crickett@lanl.gov>
404
405 PR fortran/32801
406 * symbol.c (generate_isocbinding_symbol): Fix bug where
407 ISOCBINDING_FUNPTR was generated for C_LOC instead of the needed
408 ISOCBINDING_PTR.
409
4665abc4
JW
4102007-07-17 Janus Weil <jaydub66@gmail.com>
411
412 PR fortran/32535
413 * resolve.c (resolve_fl_namelist): Check for namelist private
414 components in contained subprograms.
415
28114dad
PT
4162007-07-17 Paul Thomas <pault@gcc.gnu.org>
417
418 PR fortran/31320
419 PR fortran/32665
420 * trans-expr.c (gfc_trans_subcomponent_assign): Ensure that
421 renormalization unity base is done independently of existing
422 lbound value.
423 (gfc_trans_scalar_assign): If rhs is not a variable, put
424 lse->pre after rse->pre to ensure that de-allocation of lhs
425 occurs after evaluation of rhs.
426
55637e51
LM
4272007-07-16 Lee Millward <lee.millward@gmail.com>
428
429 PR fortran/32222
430 PR fortran/32238
431 PR fortran/32242
432 * trans-intrinsic.c (gfc_conv_intrinsic_function_args): Adjust
433 to operate on a stack allocated array for the intrinsic arguments
434 instead of creating a TREE_LIST. Add two new parameters for the
435 array and the number of elements. Update all callers to allocate
436 an array of the correct length to pass in. Update comment.
437 (gfc_intrinsic_argument_list_length): New function.
438 (gfc_conv_intrinsic_conversion): Call it.
439 (gfc_conv_intrinsic_mnimax): Likewise.
440 (gfc_conv_intrinsic_merge): Likewise.
441 (gfc_conv_intrinsic_lib_function): Call it. Use new CALL_EXPR
442 constructors.
443 (gfc_conv_intrinsic_cmplx): Likewise.
444 (gfc_conv_intrinsic_ctime): Likewise.
445 (gfc_covn_intrinsic_fdate): Likewise.
446 (gfc_conv_intrinsic_ttynam): Likewise.
447 (gfc_conv_intrinsic_ishftc): Likewise.
448 (gfc_conv_intrinsic_index): Likewise.
449 (gfc_conv_intrinsic_scan): Likewise.
450 (gfc_conv_intrinsic_verify): Likewise.
451 (gfc_conv_intrinsic_trim): Likewise.
452 (gfc_conv_intrinsic_aint): Use new CALL_EXPR constructors.
453 (gfc_conv_intrinsic_exponent): Likewise.
454 (gfc_conv_intrinsic_bound): Likewise.
455 (gfc_conv_intrinsic_abs): Likewise.
456 (gfc_conv_intrinsic_mod): Likewise.
457 (gfc_conv_intrinsic_sign): Likewise.
458 (gfc_conv_intrinsic_len): Likewise.
459 (gfc_conv_intrinsic_adjust): Likewise.
460 (gfc_conv_intrinsic_si_kind): Likewise.
461
75ef384e
JB
4622007-07-16 Janne Blomqvist <jb@gcc.gnu.org>
463
464 PR fortran/32748
465 * trans-decl.c (gfc_build_builtin_function_decls): Remove
466 DECL_IS_MALLOC attribute from internal_realloc, thus reverting
467 part of my 2007-07-03 patch.
468
68d2e027
JD
4692007-07-15 Jerry DeLisle <jvdelisle@gcc.gnu.org>
470 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
471
472 PR fortran/32611
473 * gfortran.h (gfc_option_t): Add flag_sign_zero field.
474 * lang.opt (-fsign-zero): New option.
475 * trans.h: Rename gfor_fndecl_set_std into gfor_fndecl_set_options.
476 * trans-decl.c (gfc_build_builtin_function_decls): Build the function
477 declaration to pass an array containing the options to be used by the
478 runtime library. (gfc_generate_function_code): Build an array that
479 contains option values to be passed to the runtime library and the call
480 to the function.
481 * options.c (gfc_init_options): Initialize the flag_sign_zero field.
482 (gfc_handle_option): Handle the -fsign-zero option.
483
a90552d5
FXC
4842007-07-15 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
485
486 PR fortran/32036
487 * trans-array.c (gfc_conv_array_ref): Only evaluate index once.
488
37058415
FXC
4892007-07-15 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
490
491 PR fortran/32357
492 * iresolve.c (gfc_resolve_mvbits): Convert FROMPOS, LEN and TOPOS
493 to C int.
494
3b3620db
TK
4952007-07-14 Thomas Koenig <tkoenig@gcc.gnu.org>
496
497 PR libfortran/32731
498 * iresolve.c(gfc_resolve_pack): A scalar mask has
499 to be kind=4, an array mask with kind<4 is converted
500 to gfc_default_logical_kind automatically.
501 (gfc_resolve_unpack): Convert mask to gfc_default_lotical_kind
502 if it has a kind<4.
503
dec9e22d
DF
5042007-07-14 Paul Thomas <pault@gcc.gnu.org>
505
506 PR fortran/32724
507 * parse.c (parse_spec): Emit error on unexpected statement
508 function.
509
a2bef74c
DF
5102007-07-13 Daniel Franke <franke.daniel@gmail.com>
511
512 * invoke.texi: Unified upper- and lower-case in menus.
513 (-w, -W): Removed, documented by gcc.
514 * intrinsic.texi: Unified Class-section entries, added
515 subroutine/function warning where appropiate.
516
f8faa85e
DF
5172007-07-12 Daniel Franke <franke.daniel@gmail.com>
518
519 PR fortran/31639
520 * decl.c (gfc_match_suffix): Removed surplus general error that hides
521 a more specific message.
522 * resolve.c (resolve_fl_variable): Reject illegal initializiers only
523 if not already done.
524 (resolve_fl_procedure): Added check for initializers of functions.
525
70263321
DF
5262007-07-12 Daniel Franke <franke.daniel@gmail.com>
527
528 PR fortran/32704
529 * invoke.texi (-static-libgfortran): Document new option.
530
5fb70d2e
PT
5312007-07-12 Paul Thomas <pault@gcc.gnu.org>
532
533 PR fortran/32634
534 PR fortran/32727
535 * module.c (write_generic): Restore patch of 2007-07-10 and use
536 symbol name if there are no use names.
537
aa5e22f0
CR
5382007-07-12 Christopher D. Rickett <crickett@lanl.gov>
539
540 PR fortran/32599
541 * decl.c (verify_c_interop_param): Require character string dummy
542 args to BIND(C) procedures to have length 1.
543 * resolve.c (resolve_fl_procedure): Modify parameter checking for
544 BIND(C) procedures.
545
546 PR fortran/32601
547 * resolve.c (gfc_iso_c_func_interface): Verify that a valid
548 expression is given as an argument to C_LOC and C_ASSOCIATED.
549 * trans-io.c (transfer_expr): Add argument for code block. Add
550 standards check to determine if an error message should be
551 reported for printing C_PTR or C_FUNPTR.
552 (transfer_array_component): Update arguments to transfer_expr.
553 (gfc_trans_transfer): Ditto.
554
555 * symbol.c (gen_cptr_param): Fix whitespace.
556
e1c82219
JJ
5572007-07-12 Jakub Jelinek <jakub@redhat.com>
558
559 PR fortran/32550
560 * trans.h (GFC_POINTER_TYPE_P): Define.
561 * trans-types.c (gfc_sym_type): Set it for types on attr->sym.pointer.
562 * trans-openmp.c (gfc_omp_privatize_by_reference): Return false
563 if GFC_POINTER_TYPE_P is set on the type.
564
553b66ad
RG
5652007-07-12 Richard Guenther <rguenther@suse.de>
566
567 * trans-intrinsic.c (gfc_conv_intrinsic_repeat): Convert
568 arguments to gfc_charlen_type_node.
569 * trans-io.c (gfc_convert_array_to_string): Convert type
570 size to gfc_array_index_type.
571
56b6a5fe
DF
5722007-07-12 Daniel Franke <franke.daniel@gmail.com>
573
574 PR fortran/32634
575 PR fortran/32727
576 * module.c: Reverted Paul's patch from 2007-07-10.
577
cbb2b813
RG
5782007-07-11 Richard Guenther <rguenther@suse.de>
579
580 * trans-array.c (gfc_conv_array_parameter): Use correct
581 types for comparison.
582 * trans-intrinsic.c (gfc_conv_intrinsic_repeat): Use
583 correct types for POINTER_PLUS_EXPR.
584 * trans-stmt.c (gfc_trans_forall_loop): Use correct type
585 for integer one constant.
586
e7c8ff56
PT
5872007-07-10 Paul Thomas <pault@gcc.gnu.org>
588
589 PR fortran/32157
590 * resolve.c (is_external_proc): New function. Adds test that
591 the symbol is not an intrinsic procedure.
592 * (resolve_function, resolve_call): Replace logical statements
593 with call to is_external_proc.
594
595 PR fortran/32689
596 * simplify.c (gfc_simplify_transfer): If mold has rank, the
597 result is an array.
598
599 PR fortran/32634
600 * module.c (write_generic): Write the local name of the
601 interface.
602
01306727
FXC
6032007-07-09 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
604
605 PR fortran/29459
606 * trans-array.c (gfc_trans_array_constructor): Mark offset field
607 with TREE_NO_WARNING.
608 * trans-decl.c (gfc_build_qualified_array): Mark lbound, ubound,
609 stride and size variables with TREE_NO_WARNING.
610
e1cc194c
SK
6112007-07-09 Steven G. Kargl <kargl@gcc.gnu.org>
612
613 * trans-decl.c (set_tree_decl_type_code): Remove function.
614 (generate_local_decl): Remove reference to set_tree_decl_type_code.
615
33c0c5e9
DF
6162007-07-09 Daniel Franke <franke.daniel@gmail.com>
617
618 PR fortran/31129
619 * trans-decl.c (generate_local_decl) Emit a warning if an unused
620 parameter is found.
621
090b4ea8
DF
6222007-07-08 Daniel Franke <franke.daniel@gmail.com>
623
624 PR fortran/29876
625 * module.c (gfc_match_use): Do not set an non-existant
626 intrinsic operator if a user-defined operator is found.
627
534fd534
DF
6282007-07-08 Daniel Franke <franke.daniel@gmail.com>
629
630 PR fortran/24784
631 PR fortran/28004
632 * trans-decl.c (generate_local_decl): Adjusted warning on unused
633 dummy arguments, tell middle-end not to emit additional warnings.
634
3bed9dd0
DF
6352007-07-08 Daniel Franke <franke.daniel@gmail.com>
636