annotate gcc/fortran/ChangeLog-2008 @ 143:76e1cf5455ef

add cbc_gc test
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Sun, 23 Dec 2018 19:24:05 +0900
parents 04ced10e8804
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 2008-12-31 Daniel Franke <franke.daniel@gmail.com>
kono
parents:
diff changeset
2
kono
parents:
diff changeset
3 * check.c (dim_rank_check): Fixed checking of dimension argument
kono
parents:
diff changeset
4 if array is of type EXPR_ARRAY.
kono
parents:
diff changeset
5
kono
parents:
diff changeset
6 2008-12-22 Paul Thomas <pault@gcc.gnu.org>
kono
parents:
diff changeset
7
kono
parents:
diff changeset
8 PR fortran/38602
kono
parents:
diff changeset
9 * trans-decl.c (init_intent_out_dt): Allow for optional args.
kono
parents:
diff changeset
10
kono
parents:
diff changeset
11 2008-12-21 Jerry DeLisle <jvdelisle@gcc.gnu.org>
kono
parents:
diff changeset
12
kono
parents:
diff changeset
13 PR fortran/38398
kono
parents:
diff changeset
14 * io.c: Add error checks for g0 formatting and provide adjustment of
kono
parents:
diff changeset
15 error loci for improved error messages.
kono
parents:
diff changeset
16
kono
parents:
diff changeset
17 2008-12-21 Arjen Markus <arjen.markus@wldelft.nl>
kono
parents:
diff changeset
18 Daniel Kraft <d@domob.eu>
kono
parents:
diff changeset
19
kono
parents:
diff changeset
20 PR fortran/37605
kono
parents:
diff changeset
21 * gfortran.texi: Fixed some typos and some minor style improvements.
kono
parents:
diff changeset
22 * intrinsic.texi: Some clarifications and typo-fixes.
kono
parents:
diff changeset
23 * invoke.texi: Better documenation of the behaviour of the
kono
parents:
diff changeset
24 -fdefault-*-8 options and some other fixes.
kono
parents:
diff changeset
25
kono
parents:
diff changeset
26 2008-12-18 Daniel Kraft <d@domob.eu>
kono
parents:
diff changeset
27
kono
parents:
diff changeset
28 PR fortran/31822
kono
parents:
diff changeset
29 * gfortran.h (gfc_check_same_strlen): Made public.
kono
parents:
diff changeset
30 * trans.h (gfc_trans_same_strlen_check): Made public.
kono
parents:
diff changeset
31 * check.c (gfc_check_same_strlen): Made public and adapted error
kono
parents:
diff changeset
32 message output to be useful not only for intrinsics.
kono
parents:
diff changeset
33 (gfc_check_merge): Adapt to gfc_check_same_strlen change.
kono
parents:
diff changeset
34 * expr.c (gfc_check_pointer_assign): Use gfc_check_same_strlen for
kono
parents:
diff changeset
35 string length compile-time check.
kono
parents:
diff changeset
36 * trans-expr.c (gfc_trans_pointer_assignment): Add runtime-check for
kono
parents:
diff changeset
37 equal string lengths using gfc_trans_same_strlen_check.
kono
parents:
diff changeset
38 * trans-intrinsic.c (gfc_trans_same_strlen_check): Renamed and made
kono
parents:
diff changeset
39 public from conv_same_strlen_check.
kono
parents:
diff changeset
40 (gfc_conv_intrinsic_merge): Adapted accordingly.
kono
parents:
diff changeset
41
kono
parents:
diff changeset
42 2008-12-17 Daniel Kraft <d@domob.eu>
kono
parents:
diff changeset
43
kono
parents:
diff changeset
44 PR fortran/38137
kono
parents:
diff changeset
45 * trans-intrinsic.c (conv_same_strlen_check): New method.
kono
parents:
diff changeset
46 (gfc_conv_intrinsic_merge): Call it here to actually do the check.
kono
parents:
diff changeset
47
kono
parents:
diff changeset
48 2008-12-15 Mikael Morin <mikael@gcc.gnu.org>
kono
parents:
diff changeset
49
kono
parents:
diff changeset
50 PR fortran/38487
kono
parents:
diff changeset
51 * dependency.c (gfc_is_data_pointer): New function.
kono
parents:
diff changeset
52 (gfc_check_argument_var_dependency): Disable the warning
kono
parents:
diff changeset
53 in the pointer case.
kono
parents:
diff changeset
54 (gfc_check_dependency): Use gfc_is_data_pointer.
kono
parents:
diff changeset
55
kono
parents:
diff changeset
56 2008-12-15 Mikael Morin <mikael@gcc.gnu.org>
kono
parents:
diff changeset
57
kono
parents:
diff changeset
58 PR fortran/38113
kono
parents:
diff changeset
59 * error.c (show_locus): Start counting columns at 0.
kono
parents:
diff changeset
60 * primary.c (match_actual_arg): Eat spaces
kono
parents:
diff changeset
61 before copying the current locus.
kono
parents:
diff changeset
62 (match_variable): Copy the locus before matching.
kono
parents:
diff changeset
63
kono
parents:
diff changeset
64 2008-12-14 Paul Thomas <pault@gcc.gnu.org>
kono
parents:
diff changeset
65
kono
parents:
diff changeset
66 PR fortran/35937
kono
parents:
diff changeset
67 * trans-expr.c (gfc_finish_interface_mapping): Fold convert the
kono
parents:
diff changeset
68 character length to gfc_charlen_type_node.
kono
parents:
diff changeset
69
kono
parents:
diff changeset
70 2008-12-12 Daniel Franke <franke.daniel@gmail.com>
kono
parents:
diff changeset
71
kono
parents:
diff changeset
72 PR fortran/36355
kono
parents:
diff changeset
73 * check.c (gfc_check_matmul): Fixed error message for invalid
kono
parents:
diff changeset
74 types to correctly identify the offending argument, added check
kono
parents:
diff changeset
75 for mismatching types.
kono
parents:
diff changeset
76
kono
parents:
diff changeset
77 2008-12-11 Richard Guenther <rguenther@suse.de>
kono
parents:
diff changeset
78
kono
parents:
diff changeset
79 * Make-lang.in (install-finclude-dir): Use correct mode argument
kono
parents:
diff changeset
80 for mkinstalldirs.
kono
parents:
diff changeset
81
kono
parents:
diff changeset
82 2008-12-09 Daniel Franke <franke.daniel@gmail.com>
kono
parents:
diff changeset
83
kono
parents:
diff changeset
84 PR fortran/36376
kono
parents:
diff changeset
85 PR fortran/37468
kono
parents:
diff changeset
86 * lang-specs.h: Pass on -i* options to f951 to (probably) report
kono
parents:
diff changeset
87 them as unknown. Duplicate gcc.c (cpp_options), but omit
kono
parents:
diff changeset
88 -fpch-preprocess on -save-temps.
kono
parents:
diff changeset
89
kono
parents:
diff changeset
90 2008-12-09 Daniel Franke <franke.daniel@gmail.com>
kono
parents:
diff changeset
91
kono
parents:
diff changeset
92 PR fortran/36457
kono
parents:
diff changeset
93 * lang.opt: Added option idirafter.
kono
parents:
diff changeset
94 * cpp.h (gfc_cpp_add_include_path_after): New prototype.
kono
parents:
diff changeset
95 * cpp.c (gfc_cpp_handle_option): Recognize and handle OPT_dirafter.
kono
parents:
diff changeset
96 (gfc_cpp_add_include_path_after): New, adds user-defined search path
kono
parents:
diff changeset
97 after any other paths.
kono
parents:
diff changeset
98 * invoke.texi (idirafter): New.
kono
parents:
diff changeset
99 (no-range-check): Fixed entry in option-index.
kono
parents:
diff changeset
100
kono
parents:
diff changeset
101 2008-12-09 Mikael Morin <mikael@gcc.gnu.org>
kono
parents:
diff changeset
102
kono
parents:
diff changeset
103 PR fortran/37469
kono
parents:
diff changeset
104 * expr.c (find_array_element): Simplify array bounds.
kono
parents:
diff changeset
105 Assert that both bounds are constant expressions.
kono
parents:
diff changeset
106
kono
parents:
diff changeset
107 2008-12-09 Mikael Morin <mikael@gcc.gnu.org>
kono
parents:
diff changeset
108
kono
parents:
diff changeset
109 PR fortran/35983
kono
parents:
diff changeset
110 * trans-expr.c (gfc_trans_subcomponent_assign):
kono
parents:
diff changeset
111 Add se's pre and post blocks to current block.
kono
parents:
diff changeset
112 (gfc_trans_structure_assign): Remove specific handling
kono
parents:
diff changeset
113 of C_NULL_PTR and C_NULL_FUNPTR.
kono
parents:
diff changeset
114
kono
parents:
diff changeset
115 2008-12-06 Jerry DeLisle <jvdelisle@gcc.gnu.org>
kono
parents:
diff changeset
116
kono
parents:
diff changeset
117 PR fortran/38425
kono
parents:
diff changeset
118 * io.c (check_io_constraints): Check constraints on REC=, POS=, and
kono
parents:
diff changeset
119 internal unit with POS=. Fix punctuation on a few error messages.
kono
parents:
diff changeset
120
kono
parents:
diff changeset
121 2008-12-06 Janus Weil <janus@gcc.gnu.org>
kono
parents:
diff changeset
122
kono
parents:
diff changeset
123 PR fortran/38415
kono
parents:
diff changeset
124 * expr.c (gfc_check_pointer_assign): Added a check for abstract
kono
parents:
diff changeset
125 interfaces in procedure pointer assignments, removed check involving
kono
parents:
diff changeset
126 gfc_compare_interfaces until PR38290 is fixed completely.
kono
parents:
diff changeset
127
kono
parents:
diff changeset
128 2008-12-05 Jerry DeLisle <jvdelisle@gcc.gnu.org>
kono
parents:
diff changeset
129
kono
parents:
diff changeset
130 PR fortran/38291
kono
parents:
diff changeset
131 * io.c (match_dt_element): Use dt->pos in matcher.
kono
parents:
diff changeset
132 (gfc_free_dt): Free dt->pos after use.
kono
parents:
diff changeset
133 (gfc_resolve_dt): Use dt->pos in resolution of stream position tag.
kono
parents:
diff changeset
134
kono
parents:
diff changeset
135 2008-12-05 Sebastian Pop <sebastian.pop@amd.com>
kono
parents:
diff changeset
136
kono
parents:
diff changeset
137 PR bootstrap/38262
kono
parents:
diff changeset
138 * Make-lang.in (f951): Add BACKENDLIBS, remove GMPLIBS.
kono
parents:
diff changeset
139
kono
parents:
diff changeset
140 2008-12-02 Jakub Jelinek <jakub@redhat.com>
kono
parents:
diff changeset
141 Diego Novillo <dnovillo@google.com>
kono
parents:
diff changeset
142
kono
parents:
diff changeset
143 * Make-lang.in (install-finclude-dir): Use mkinstalldirs
kono
parents:
diff changeset
144 and don't remove the finclude directory beforehand.
kono
parents:
diff changeset
145
kono
parents:
diff changeset
146 2008-12-02 Janus Weil <janus@gcc.gnu.org>
kono
parents:
diff changeset
147
kono
parents:
diff changeset
148 PR fortran/36704
kono
parents:
diff changeset
149 PR fortran/38290
kono
parents:
diff changeset
150 * decl.c (match_result): Result may be a standard variable or a
kono
parents:
diff changeset
151 procedure pointer.
kono
parents:
diff changeset
152 * expr.c (gfc_check_pointer_assign): Additional checks for procedure
kono
parents:
diff changeset
153 pointer assignments.
kono
parents:
diff changeset
154 * primary.c (gfc_match_rvalue): Bugfix for procedure pointer
kono
parents:
diff changeset
155 assignments.
kono
parents:
diff changeset
156 * resolve.c (resolve_function): Check for attr.subroutine.
kono
parents:
diff changeset
157 * symbol.c (check_conflict): Addtional checks for RESULT statements.
kono
parents:
diff changeset
158 * trans-types.c (gfc_sym_type,gfc_get_function_type): Support procedure
kono
parents:
diff changeset
159 pointers as function result.
kono
parents:
diff changeset
160
kono
parents:
diff changeset
161 2008-12-01 Mikael Morin <mikael@gcc.gnu.org>
kono
parents:
diff changeset
162
kono
parents:
diff changeset
163 PR fortran/38252
kono
parents:
diff changeset
164 * parse.c (parse_spec): Skip statement order check in case
kono
parents:
diff changeset
165 of a CONTAINS statement.
kono
parents:
diff changeset
166
kono
parents:
diff changeset
167 2008-11-30 Daniel Kraft <d@domob.eu>
kono
parents:
diff changeset
168
kono
parents:
diff changeset
169 PR fortran/37779
kono
parents:
diff changeset
170 * gfortran.h (struct gfc_entry_list): Fixed typo in comment.
kono
parents:
diff changeset
171 * resolve.c (is_illegal_recursion): New method.
kono
parents:
diff changeset
172 (resolve_procedure_expression): Use new is_illegal_recursion instead of
kono
parents:
diff changeset
173 direct check and handle function symbols correctly.
kono
parents:
diff changeset
174 (resolve_actual_arglist): Removed useless recursion check.
kono
parents:
diff changeset
175 (resolve_function): Use is_illegal_recursion instead of direct check.
kono
parents:
diff changeset
176 (resolve_call): Ditto.
kono
parents:
diff changeset
177
kono
parents:
diff changeset
178 2008-11-29 Eric Botcazou <ebotcazou@adacore.com>
kono
parents:
diff changeset
179
kono
parents:
diff changeset
180 * trans-array.c (gfc_conv_array_parameter): Guard union access.
kono
parents:
diff changeset
181
kono
parents:
diff changeset
182 2008-11-29 Janus Weil <janus@gcc.gnu.org>
kono
parents:
diff changeset
183 Mikael Morin <mikael@gcc.gnu.org>
kono
parents:
diff changeset
184
kono
parents:
diff changeset
185 PR fortran/38289
kono
parents:
diff changeset
186 PR fortran/38290
kono
parents:
diff changeset
187 * decl.c (match_procedure_decl): Handle whitespaces.
kono
parents:
diff changeset
188 * resolve.c (resolve_specific_s0): Bugfix in check for intrinsic
kono
parents:
diff changeset
189 interface.
kono
parents:
diff changeset
190
kono
parents:
diff changeset
191 2008-11-25 H.J. Lu <hongjiu.lu@intel.com>
kono
parents:
diff changeset
192
kono
parents:
diff changeset
193 * module.c (gfc_dump_module): Report error on unlink only if
kono
parents:
diff changeset
194 errno != ENOENT.
kono
parents:
diff changeset
195
kono
parents:
diff changeset
196 2008-11-25 Mikael Morin <mikael@gcc.gnu.org>
kono
parents:
diff changeset
197
kono
parents:
diff changeset
198 PR fortran/36463
kono
parents:
diff changeset
199 * expr.c (replace_symbol): Don't replace the symtree
kono
parents:
diff changeset
200 if the expresion is an intrinsic function. Don't create
kono
parents:
diff changeset
201 non-existent symtrees. Use symbol's name instead of symtree's,
kono
parents:
diff changeset
202 different in case of module procedure dummy arguments.
kono
parents:
diff changeset
203
kono
parents:
diff changeset
204 2008-11-25 Jan Kratochvil <jan.kratochvil@redhat.com>
kono
parents:
diff changeset
205
kono
parents:
diff changeset
206 PR fortran/38248
kono
parents:
diff changeset
207 * module.c (gfc_dump_module): Check rename/unlink syscalls errors.
kono
parents:
diff changeset
208
kono
parents:
diff changeset
209 2008-11-25 Eric Botcazou <ebotcazou@adacore.com>
kono
parents:
diff changeset
210
kono
parents:
diff changeset
211 PR fortran/37319
kono
parents:
diff changeset
212 * parse.c (match_deferred_characteristics): Make sure 'name' is
kono
parents:
diff changeset
213 initialized before reading it.
kono
parents:
diff changeset
214
kono
parents:
diff changeset
215 2008-11-24 Jerry DeLisle <jvdelisle@gcc.gnu.org>
kono
parents:
diff changeset
216
kono
parents:
diff changeset
217 PR fortran/37803
kono
parents:
diff changeset
218 * arith.c (gfc_check_real_range): Add mpfr_check_range.
kono
parents:
diff changeset
219 * simplify.c (gfc_simplify_nearest): Add mpfr_check_range.
kono
parents:
diff changeset
220
kono
parents:
diff changeset
221 2008-11-24 Mikael Morin <mikael@gcc.gnu.org>
kono
parents:
diff changeset
222
kono
parents:
diff changeset
223 PR fortran/38184
kono
parents:
diff changeset
224 * simplify.c (is_constant_array_expr): Return true instead of false
kono
parents:
diff changeset
225 if the array constructor is empty.
kono
parents:
diff changeset
226
kono
parents:
diff changeset
227 2008-11-24 Daniel Kraft <d@domob.eu>
kono
parents:
diff changeset
228
kono
parents:
diff changeset
229 PR fortran/37779
kono
parents:
diff changeset
230 * resolve.c (resolve_procedure_expression): New method.
kono
parents:
diff changeset
231 (resolve_variable): Call it.
kono
parents:
diff changeset
232 (resolve_actual_arglist): Call gfc_resolve_expr for procedure arguments.
kono
parents:
diff changeset
233
kono
parents:
diff changeset
234 2008-11-24 Paul Thomas <pault@gcc.gnu.org>
kono
parents:
diff changeset
235
kono
parents:
diff changeset
236 PR fortran/34820
kono
parents:
diff changeset
237 * trans-expr.c (gfc_conv_function_call): Remove all code to
kono
parents:
diff changeset
238 deallocate intent out derived types with allocatable
kono
parents:
diff changeset
239 components.
kono
parents:
diff changeset
240 (gfc_trans_assignment_1): An assignment from a scalar to an
kono
parents:
diff changeset
241 array of derived types with allocatable components, requires
kono
parents:
diff changeset
242 a deep copy to each array element and deallocation of the
kono
parents:
diff changeset
243 converted rhs expression afterwards.
kono
parents:
diff changeset
244 * trans-array.c : Minor whitespace.
kono
parents:
diff changeset
245 * trans-decl.c (init_intent_out_dt): Add code to deallocate
kono
parents:
diff changeset
246 allocatable components of derived types with intent out.
kono
parents:
diff changeset
247 (generate_local_decl): If these types are unused, set them
kono
parents:
diff changeset
248 referenced anyway but allow the uninitialized warning.
kono
parents:
diff changeset
249
kono
parents:
diff changeset
250 PR fortran/34143
kono
parents:
diff changeset
251 * trans-expr.c (gfc_trans_subcomponent_assign): If a conversion
kono
parents:
diff changeset
252 expression has a null data pointer argument, nullify the
kono
parents:
diff changeset
253 allocatable component.
kono
parents:
diff changeset
254
kono
parents:
diff changeset
255 PR fortran/32795
kono
parents:
diff changeset
256 * trans-expr.c (gfc_trans_subcomponent_assign): Only nullify
kono
parents:
diff changeset
257 the data pointer if the source is not a variable.
kono
parents:
diff changeset
258
kono
parents:
diff changeset
259 2008-11-23 Paul Thomas <pault@gcc.gnu.org>
kono
parents:
diff changeset
260
kono
parents:
diff changeset
261 PR fortran/37735
kono
parents:
diff changeset
262 * trans-array.c (structure_alloc_comps): Do not duplicate the
kono
parents:
diff changeset
263 descriptor if this is a descriptorless array!
kono
parents:
diff changeset
264
kono
parents:
diff changeset
265 2008-11-12 Tobias Burnus <burnus@net-b.de>
kono
parents:
diff changeset
266
kono
parents:
diff changeset
267 PR fortran/38160
kono
parents:
diff changeset
268 * trans-types.c (gfc_validate_c_kind): Remove function.
kono
parents:
diff changeset
269 * decl.c (gfc_match_kind_spec): Add C kind parameter check.
kono
parents:
diff changeset
270 (verify_bind_c_derived_type): Remove gfc_validate_c_kind call.
kono
parents:
diff changeset
271 (verify_c_interop_param): Update call.
kono
parents:
diff changeset
272 * gfortran.h (verify_bind_c_derived_type): Update prototype.
kono
parents:
diff changeset
273 (gfc_validate_c_kind): Remove.
kono
parents:
diff changeset
274 * symbol.c (verify_bind_c_derived_type): Update verify_c_interop call.
kono
parents:
diff changeset
275 * resolve.c (gfc_iso_c_func_interface): Ditto.
kono
parents:
diff changeset
276
kono
parents:
diff changeset
277 2008-11-22 Jakub Jelinek <jakub@redhat.com>
kono
parents:
diff changeset
278
kono
parents:
diff changeset
279 PR libfortran/37839
kono
parents:
diff changeset
280 * trans-io.c (gfc_build_io_library_fndecls): Decrease pad size back
kono
parents:
diff changeset
281 to 16 pointers plus 32 integers. Don't use max integer kind
kono
parents:
diff changeset
282 alignment, only gfc_intio_kind's alignment.
kono
parents:
diff changeset
283 (gfc_trans_inquire): Only set flags2 if mask2 is non-zero.
kono
parents:
diff changeset
284 * ioparm.def: Fix order, bitmasks and types of inquire round, sign
kono
parents:
diff changeset
285 and pending fields. Move u in dt before id.
kono
parents:
diff changeset
286 * io.c (gfc_free_inquire): Free decimal and size exprs.
kono
parents:
diff changeset
287 (match_inquire_element): Match size instead of matching blank twice.
kono
parents:
diff changeset
288 (gfc_resolve_inquire): Resolve size.
kono
parents:
diff changeset
289
kono
parents:
diff changeset
290 2008-11-20 Jakub Jelinek <jakub@redhat.com>
kono
parents:
diff changeset
291
kono
parents:
diff changeset
292 PR middle-end/29215
kono
parents:
diff changeset
293 * trans-array.c (trans_array_constructor_value,
kono
parents:
diff changeset
294 gfc_build_constant_array_constructor): Fill in TREE_PURPOSE.
kono
parents:
diff changeset
295
kono
parents:
diff changeset
296 * trans-intrinsic.c (gfc_conv_intrinsic_minmaxloc): Use
kono
parents:
diff changeset
297 gfc_index_one_node.
kono
parents:
diff changeset
298 (gfc_conv_intrinsic_size): Use gfc_index_{zero,one}_node.
kono
parents:
diff changeset
299
kono
parents:
diff changeset
300 PR fortran/38181
kono
parents:
diff changeset
301 * trans-intrinsic.c (gfc_conv_intrinsic_size): Inline 2 argument
kono
parents:
diff changeset
302 size if the second argument is not optional and one argument size
kono
parents:
diff changeset
303 for rank 1 arrays.
kono
parents:
diff changeset
304
kono
parents:
diff changeset
305 2008-11-19 Paul Thomas <pault@gcc.gnu.org>
kono
parents:
diff changeset
306
kono
parents:
diff changeset
307 PR fortran/38171
kono
parents:
diff changeset
308 * module.c (load_equiv): Regression fix; check that equivalence
kono
parents:
diff changeset
309 members come from the same module only.
kono
parents:
diff changeset
310
kono
parents:
diff changeset
311 2008-11-16 Mikael Morin <mikael@gcc.gnu.org>
kono
parents:
diff changeset
312
kono
parents:
diff changeset
313 PR fortran/35681
kono
parents:
diff changeset
314 * dependency.c (gfc_check_argument_var_dependency): Add
kono
parents:
diff changeset
315 elemental check flag. Issue a warning if we find a dependency
kono
parents:
diff changeset
316 but don't generate a temporary. Add the case of an elemental
kono
parents:
diff changeset
317 function call as actual argument to an elemental procedure.
kono
parents:
diff changeset
318 Add the case of an operator expression as actual argument
kono
parents:
diff changeset
319 to an elemental procedure.
kono
parents:
diff changeset
320 (gfc_check_argument_dependency): Add elemental check flag.
kono
parents:
diff changeset
321 Update calls to gfc_check_argument_var_dependency.
kono
parents:
diff changeset
322 (gfc_check_fncall_dependency): Add elemental check flag.
kono
parents:
diff changeset
323 Update call to gfc_check_argument_dependency.
kono
parents:
diff changeset
324 * trans-stmt.c (gfc_trans_call): Make call to
kono
parents:
diff changeset
325 gfc_conv_elemental_dependencies unconditional, but with a flag
kono
parents:
diff changeset
326 whether we should check dependencies between variables.
kono
parents:
diff changeset
327 (gfc_conv_elemental_dependencies): Add elemental check flag.
kono
parents:
diff changeset
328 Update call to gfc_check_fncall_dependency.
kono
parents:
diff changeset
329 * trans-expr.c (gfc_trans_arrayfunc_assign): Update call to
kono
parents:
diff changeset
330 gfc_check_fncall_dependency.
kono
parents:
diff changeset
331 * resolve.c (find_noncopying_intrinsics): Update call to
kono
parents:
diff changeset
332 gfc_check_fncall_dependency.
kono
parents:
diff changeset
333 * dependency.h (enum gfc_dep_check): New enum.
kono
parents:
diff changeset
334 (gfc_check_fncall_dependency): Update prototype.
kono
parents:
diff changeset
335
kono
parents:
diff changeset
336 2008-11-16 Mikael Morin <mikael@gcc.gnu.org>
kono
parents:
diff changeset
337
kono
parents:
diff changeset
338 PR fortran/37992
kono
parents:
diff changeset
339 * gfortran.h (gfc_namespace): Added member old_cl_list,
kono
parents:
diff changeset
340 backup of cl_list.
kono
parents:
diff changeset
341 (gfc_free_charlen): Added prototype.
kono
parents:
diff changeset
342 * symbol.c (gfc_free_charlen): New function.
kono
parents:
diff changeset
343 (gfc_free_namespace): Use gfc_free_charlen.
kono
parents:
diff changeset
344 * parse.c (next_statement): Backup gfc_current_ns->cl_list.
kono
parents:
diff changeset
345 (reject_statement): Restore gfc_current_ns->cl_list.
kono
parents:
diff changeset
346 Free cl_list's elements before dropping them.
kono
parents:
diff changeset
347
kono
parents:
diff changeset
348 2008-11-16 Tobias Burnus <burnus@net-b.de>
kono
parents:
diff changeset
349
kono
parents:
diff changeset
350 PR fortran/38095
kono
parents:
diff changeset
351 * trans-expr.c (gfc_map_intrinsic_function): Fix pointer access.
kono
parents:
diff changeset
352
kono
parents:
diff changeset
353 2008-11-16 Paul Thomas <pault@gcc.gnu.org>
kono
parents:
diff changeset
354
kono
parents:
diff changeset
355 PR fortran/38119
kono
parents:
diff changeset
356 * trans-array.c (gfc_trans_create_temp_array): Set the
kono
parents:
diff changeset
357 loop->from to zero and the renormalisation of loop->to for all
kono
parents:
diff changeset
358 dimensions.
kono
parents:
diff changeset
359
kono
parents:
diff changeset
360 2008-11-16 Paul Thomas <pault@gcc.gnu.org>
kono
parents:
diff changeset
361
kono
parents:
diff changeset
362 PR fortran/37926
kono
parents:
diff changeset
363 * trans-expr.c (gfc_free_interface_mapping): Null sym->formal
kono
parents:
diff changeset
364 (gfc_add_interface_mapping): Copy the pointer to the formal
kono
parents:
diff changeset
365 arglist, rather than using copy_formal_args - fixes regression.
kono
parents:
diff changeset
366
kono
parents:
diff changeset
367 2008-11-15 Paul Thomas <pault@gcc.gnu.org>
kono
parents:
diff changeset
368
kono
parents:
diff changeset
369 PR fortran/37926
kono
parents:
diff changeset
370 * trans-expr.c (gfc_add_interface_mapping): Transfer the formal
kono
parents:
diff changeset
371 arglist and the always_explicit attribute if the dummy arg is a
kono
parents:
diff changeset
372 procedure.
kono
parents:
diff changeset
373
kono
parents:
diff changeset
374 2008-11-14 Jerry DeLisle <jvdelisle@gcc.gnu.org>
kono
parents:
diff changeset
375
kono
parents:
diff changeset
376 PR fortran/37988
kono
parents:
diff changeset
377 * io.c (enum format_token): For readability replace FMT_POS with FMT_T,
kono
parents:
diff changeset
378 FMT_TL, and FMT_TR. (format_lex): Use new enumerators. (check_format):
kono
parents:
diff changeset
379 Add check for missing positive integer.
kono
parents:
diff changeset
380
kono
parents:
diff changeset
381 2008-10-14 Paul Thomas <pault@gcc.gnu.org>
kono
parents:
diff changeset
382
kono
parents:
diff changeset
383 PR fortran/38033
kono
parents:
diff changeset
384 * trans-array.c (gfc_trans_create_temp_array): Stabilize the
kono
parents:
diff changeset
385 'to' expression.
kono
parents:
diff changeset
386 (gfc_conv_loop_setup): Use the end expression for the loop 'to'
kono
parents:
diff changeset
387 if it is available.
kono
parents:
diff changeset
388
kono
parents:
diff changeset
389 2008-11-12 Jakub Jelinek <jakub@redhat.com>
kono
parents:
diff changeset
390
kono
parents:
diff changeset
391 PR target/35366
kono
parents:
diff changeset
392 PR fortran/33759
kono
parents:
diff changeset
393 * trans-const.c (gfc_conv_constant_to_tree): Warn when
kono
parents:
diff changeset
394 converting an integer outside of LOGICAL's range to
kono
parents:
diff changeset
395 LOGICAL.
kono
parents:
diff changeset
396 * trans-intrinsic.c (gfc_conv_intrinsic_function,
kono
parents:
diff changeset
397 gfc_conv_intrinsic_array_transfer, gfc_conv_intrinsic_transfer):
kono
parents:
diff changeset
398 Use INTEGER_TYPE instead of BOOLEAN_TYPE for TRANSFER as
kono
parents:
diff changeset
399 argument of another TRANSFER.
kono
parents:
diff changeset
400
kono
parents:
diff changeset
401 2008-11-12 Tobias Burnus <burnus@net-b.de>
kono
parents:
diff changeset
402
kono
parents:
diff changeset
403 PR fortran/38065
kono
parents:
diff changeset
404 * resolve.c (resolve_fntype): Fix private derived type checking.
kono
parents:
diff changeset
405
kono
parents:
diff changeset
406 2008-11-09 Paul Thomas <pault@gcc.gnu.org>
kono
parents:
diff changeset
407
kono
parents:
diff changeset
408 PR fortran/37836
kono
parents:
diff changeset
409 * intrinsic.c (add_functions): Reference gfc_simplify._minval
kono
parents:
diff changeset
410 and gfc_simplify_maxval.
kono
parents:
diff changeset
411 * intrinsic.h : Add prototypes for gfc_simplify._minval and
kono
parents:
diff changeset
412 gfc_simplify_maxval.
kono
parents:
diff changeset
413 * simplify.c (min_max_choose): New function extracted from
kono
parents:
diff changeset
414 simplify_min_max.
kono
parents:
diff changeset
415 (simplify_min_max): Call it.
kono
parents:
diff changeset
416 (simplify_minval_maxval, gfc_simplify_minval,
kono
parents:
diff changeset
417 gfc_simplify_maxval): New functions.
kono
parents:
diff changeset
418
kono
parents:
diff changeset
419 2008-11-04 Paul Thomas <pault@gcc.gnu.org>
kono
parents:
diff changeset
420
kono
parents:
diff changeset
421 PR fortran/37597
kono
parents:
diff changeset
422 * parse.c (gfc_fixup_sibling_symbols ): Fixup contained, even
kono
parents:
diff changeset
423 when symbol not found.
kono
parents:
diff changeset
424
kono
parents:
diff changeset
425 2008-11-03 Tobias Burnus <burnus@net-b.de>
kono
parents:
diff changeset
426
kono
parents:
diff changeset
427 PR fortran/37821
kono
parents:
diff changeset
428 * cpp.c (gfc_cpp_add_include_path): Use BRACKET.
kono
parents:
diff changeset
429 * scanner.c (add_path_to_list): Argument to add at head.
kono
parents:
diff changeset
430 (gfc_add_include_path): Add new argument.
kono
parents:
diff changeset
431 (gfc_add_intrinsic_modules_path) Update call.
kono
parents:
diff changeset
432 (load_file): Print filename/line in the error message.
kono
parents:
diff changeset
433 * gfortran.h (gfc_add_include_path): Update prototype.
kono
parents:
diff changeset
434 * options.c (gfc_post_options,gfc_handle_module_path_options,
kono
parents:
diff changeset
435 gfc_handle_option): Update call.
kono
parents:
diff changeset
436 * lang-spec.h (F951_OPTIONS): Don't insert include path twice.
kono
parents:
diff changeset
437
kono
parents:
diff changeset
438 * arith.c (arith_error): Add -fno-range-error to the message.
kono
parents:
diff changeset
439
kono
parents:
diff changeset
440 2008-11-03 Paul Thomas <pault@gcc.gnu.org>
kono
parents:
diff changeset
441
kono
parents:
diff changeset
442 PR fortran/37445
kono
parents:
diff changeset
443 * resolve.c (resolve_actual_arglist ): Correct comparison of
kono
parents:
diff changeset
444 FL_VARIABLE with e->expr_type.
kono
parents:
diff changeset
445 (resolve_call): Check that host association is correct.
kono
parents:
diff changeset
446 (resolve_actual_arglist ): Remove return is old_sym is use
kono
parents:
diff changeset
447 associated. Only reparse expression if old and new symbols
kono
parents:
diff changeset
448 have different types.
kono
parents:
diff changeset
449
kono
parents:
diff changeset
450 PR fortran/PR35769
kono
parents:
diff changeset
451 * resolve.c (gfc_resolve_assign_in_forall): Change error to a
kono
parents:
diff changeset
452 warning.
kono
parents:
diff changeset
453
kono
parents:
diff changeset
454 2008-11-01 Janus Weil <janus@gcc.gnu.org>
kono
parents:
diff changeset
455
kono
parents:
diff changeset
456 PR fortran/36426
kono
parents:
diff changeset
457 * expr.c (replace_symbol): Replace all symbols which lie in the
kono
parents:
diff changeset
458 formal namespace of the interface and copy their attributes.
kono
parents:
diff changeset
459 * resolve.c (resolve_symbol): Add charlen to namespace.
kono
parents:
diff changeset
460
kono
parents:
diff changeset
461 2008-11-01 Steven G. Kargl <kargls@comcast.net>
kono
parents:
diff changeset
462
kono
parents:
diff changeset
463 PR fortran/19925
kono
parents:
diff changeset
464 * trans-array.c (gfc_trans_array_constructor_value): Fix comment.
kono
parents:
diff changeset
465 (gfc_conv_array_initializer): Convert internal_error() to gfc_error_now.
kono
parents:
diff changeset
466 * array.c: Remove GFC_MAX_AC_EXPAND macro.
kono
parents:
diff changeset
467 (gfc_expand_constructor): Use gfc_option.flag_max_array_constructor.
kono
parents:
diff changeset
468 * gfortran.h (gfc_option): Add flag_max_array_constructor member.
kono
parents:
diff changeset
469 * lang.opt: Add -fmax-array-constructor option.
kono
parents:
diff changeset
470 * expr.c (gfc_match_init_expr): Fix error message to mention new option.
kono
parents:
diff changeset
471 * invoke.texi: Document new option.
kono
parents:
diff changeset
472 * options.c (gfc_init_options): Set default value for new option.
kono
parents:
diff changeset
473 (gfc_handle_option): Deal with commandline.
kono
parents:
diff changeset
474
kono
parents:
diff changeset
475 2008-11-01 Daniel Kraft <d@domob.eu>
kono
parents:
diff changeset
476
kono
parents:
diff changeset
477 PR fortran/35681
kono
parents:
diff changeset
478 * gfortran.h (struct gfc_code): New field `resolved_isym'.
kono
parents:
diff changeset
479 * trans.h (gfc_build_memcpy_call): Made public.
kono
parents:
diff changeset
480 * trans-array.h (gfc_trans_create_temp_array): New argument `initial'.
kono
parents:
diff changeset
481 * intrinsic.c (gfc_intrinsic_sub_interface): Set resolved_isym.
kono
parents:
diff changeset
482 * iresolve.c (create_formal_for_intents): New helper method.
kono
parents:
diff changeset
483 (gfc_resolve_mvbits): Put dummy formal arglist on resolved_sym.
kono
parents:
diff changeset
484 * resolve.c (resolve_call): Initialize resolved_isym to NULL.
kono
parents:
diff changeset
485 * trans-array.c (gfc_trans_allocate_array_storage): New argument
kono
parents:
diff changeset
486 `initial' to allow initializing the allocated storage to some initial
kono
parents:
diff changeset
487 value copied from another array.
kono
parents:
diff changeset
488 (gfc_trans_create_temp_array): Allow initialization of the temporary
kono
parents:
diff changeset
489 with a copy of some other array by using the new extension.
kono
parents:
diff changeset
490 (gfc_trans_array_constructor): Pass NULL_TREE for initial argument.
kono
parents:
diff changeset
491 (gfc_conv_loop_setup): Ditto.
kono
parents:
diff changeset
492 * trans-intrinsic.c (gfc_conv_intrinsic_array_transfer): Ditto.
kono
parents:
diff changeset
493 * trans-expr.c (gfc_conv_function_call): Ditto.
kono
parents:
diff changeset
494 (gfc_build_memcpy_call): Made public.
kono
parents:
diff changeset
495 * trans-stmt.c (gfc_conv_elemental_dependencies): Initialize created
kono
parents:
diff changeset
496 temporary for INTENT(INOUT) arguments to the value of the mirrored
kono
parents:
diff changeset
497 array and clean up the temporary as very last intructions in the created
kono
parents:
diff changeset
498 block.
kono
parents:
diff changeset
499 * trans.c (gfc_trans_code): For EXEC_CALL, see if we have a MVBITS call
kono
parents:
diff changeset
500 and enable elemental dependency checking if we have.
kono
parents:
diff changeset
501
kono
parents:
diff changeset
502 2008-11-01 Janus Weil <janus@gcc.gnu.org>
kono
parents:
diff changeset
503
kono
parents:
diff changeset
504 PR fortran/36322
kono
parents:
diff changeset
505 PR fortran/36463
kono
parents:
diff changeset
506 * gfortran.h: New function gfc_expr_replace_symbols.
kono
parents:
diff changeset
507 * decl.c (match_procedure_decl): Increase reference count for interface.
kono
parents:
diff changeset
508 * expr.c: New functions replace_symbol and gfc_expr_replace_symbols.
kono
parents:
diff changeset
509 * resolve.c (resolve_symbol): Correctly copy array spec and char len
kono
parents:
diff changeset
510 of PROCEDURE declarations from their interface.
kono
parents:
diff changeset
511 * symbol.c (gfc_get_default_type): Enhanced error message.
kono
parents:
diff changeset
512 (copy_formal_args): Call copy_formal_args recursively for arguments.
kono
parents:
diff changeset
513 * trans-expr.c (gfc_conv_function_call): Bugfix.
kono
parents:
diff changeset
514
kono
parents:
diff changeset
515 2008-11-01 Dennis Wassel <dennis.wassel@gmail.com>
kono
parents:
diff changeset
516
kono
parents:
diff changeset
517 PR fortran/37159
kono
parents:
diff changeset
518 * fortran/check.c (gfc_check_random_seed): Check PUT size
kono
parents:
diff changeset
519 at compile time.
kono
parents:
diff changeset
520
kono
parents:
diff changeset
521 2008-10-31 Mikael Morin <mikael@gcc.gnu.org>
kono
parents:
diff changeset
522
kono
parents:
diff changeset
523 PR fortran/35840
kono
parents:
diff changeset
524 * expr.c (gfc_reduce_init_expr): New function, containing checking code
kono
parents:
diff changeset
525 from gfc_match_init_expr, so that checking can be deferred.
kono
parents:
diff changeset
526 (gfc_match_init_expr): Use gfc_reduce_init_expr.
kono
parents:
diff changeset
527 * io.c (check_io_constraints): Use gfc_reduce_init_expr instead of
kono
parents:
diff changeset
528 checking that the expression is a constant.
kono
parents:
diff changeset
529 * match.h (gfc_reduce_init_expr): Prototype added.
kono
parents:
diff changeset
530
kono
parents:
diff changeset
531 2008-10-31 Mikael Morin <mikael@gcc.gnu.org>
kono
parents:
diff changeset
532
kono
parents:
diff changeset
533 PR fortran/35820
kono
parents:
diff changeset
534 * resolve.c (gfc_count_forall_iterators): New function.
kono
parents:
diff changeset
535 (gfc_resolve_forall): Use gfc_count_forall_iterators to evaluate
kono
parents:
diff changeset
536 the needed memory amount to allocate. Don't forget to free allocated
kono
parents:
diff changeset
537 memory. Add an assertion to check for memory leaks.
kono
parents:
diff changeset
538
kono
parents:
diff changeset
539 2008-10-30 Steven G. Kargl <kargls@comcast.net>
kono
parents:
diff changeset
540
kono
parents:
diff changeset
541 PR fortran/37930
kono
parents:
diff changeset
542 * fortran/arith.c (gfc_mpfr_to_mpz): Test for NaN and Inf values.
kono
parents:
diff changeset
543 Remove stale comment and kludge code for MPFR 2.0.1 and older.
kono
parents:
diff changeset
544 (gfc_real2int): Error on conversion of NaN or Inf.
kono
parents:
diff changeset
545 (gfc_complex2int): Ditto.
kono
parents:
diff changeset
546 * fortran/arith.h: Update mpfr_to_mpz prototype.
kono
parents:
diff changeset
547 * fortran/simplify.c (gfc_simplify_ceiling, gfc_simplify_floor,
kono
parents:
diff changeset
548 gfc_simplify_ifix, gfc_simplify_idint, simplify_nint): Update function
kono
parents:
diff changeset
549 calls to include locus.
kono
parents:
diff changeset
550
kono
parents:
diff changeset
551 2008-10-30 Mikael Morin <mikael@gcc.gnu.org>
kono
parents:
diff changeset
552
kono
parents:
diff changeset
553 PR fortran/37903
kono
parents:
diff changeset
554 * trans-array.c (gfc_trans_create_temp_array): If n is less
kono
parents:
diff changeset
555 than the temporary dimension, assert that loop->from is
kono
parents:
diff changeset
556 zero (reverts to earlier versions). If there is at least one
kono
parents:
diff changeset
557 null loop->to[n], it is a callee allocated array so set the
kono
parents:
diff changeset
558 size to NULL and break.
kono
parents:
diff changeset
559 (gfc_trans_constant_array_constructor): Set the offset to zero.
kono
parents:
diff changeset
560 (gfc_trans_array_constructor): Remove loop shifting around the
kono
parents:
diff changeset
561 temporary creation.
kono
parents:
diff changeset
562 (gfc_conv_loop_setup): Prefer zero-based descriptors if
kono
parents:
diff changeset
563 possible. Calculate the translation from loop variables to
kono
parents:
diff changeset
564 array indices if an array constructor.
kono
parents:
diff changeset
565
kono
parents:
diff changeset
566 2008-10-30 Mikael Morin <mikael@gcc.gnu.org>
kono
parents:
diff changeset
567
kono
parents:
diff changeset
568 PR fortran/37749
kono
parents:
diff changeset
569 * trans-array.c (gfc_trans_create_temp_array): If size is NULL
kono
parents:
diff changeset
570 use the array bounds for loop->to.
kono
parents:
diff changeset
571
kono
parents:
diff changeset
572 2008-10-28 Tobias Burnus <burnus@net-b.de>
kono
parents:
diff changeset
573
kono
parents:
diff changeset
574 * intrinsic.texi: Update OpenMP section for OMPv3.
kono
parents:
diff changeset
575
kono
parents:
diff changeset
576 2008-10-24 Jakub Jelinek <jakub@redhat.com>
kono
parents:
diff changeset
577
kono
parents:
diff changeset
578 * Make-lang.in (check-f95-subtargets, check-fortran-subtargets): New
kono
parents:
diff changeset
579 aliases for check-gfortran-subtargets.
kono
parents:
diff changeset
580 (lang_checks_parallelized): Add check-gfortran.
kono
parents:
diff changeset
581 (check_gfortran_parallelize): New variable.
kono
parents:
diff changeset
582
kono
parents:
diff changeset
583 2008-10-19 Paul Thomas <pault@gcc.gnu.org>
kono
parents:
diff changeset
584
kono
parents:
diff changeset
585 PR fortran/37723
kono
parents:
diff changeset
586 * dependency.c (gfc_dep_resolver ): If we find equal array
kono
parents:
diff changeset
587 element references, go on to the next reference.
kono
parents:
diff changeset
588
kono
parents:
diff changeset
589 2008-10-16 Daniel Kraft <d@domob.eu>
kono
parents:
diff changeset
590
kono
parents:
diff changeset
591 * resolve.c (resolve_elemental_actual): Handle calls to intrinsic
kono
parents:
diff changeset
592 subroutines correctly.
kono
parents:
diff changeset
593
kono
parents:
diff changeset
594 2008-10-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
kono
parents:
diff changeset
595
kono
parents:
diff changeset
596 * simplify.c: Remove MPFR_VERSION_NUM(2,3,0) conditionals.
kono
parents:
diff changeset
597
kono
parents:
diff changeset
598 2008-10-12 Daniel Kraft <d@domob.eu>
kono
parents:
diff changeset
599
kono
parents:
diff changeset
600 PR fortran/37688
kono
parents:
diff changeset
601 * expr.c (gfc_expr_check_typed): Extend permission of untyped
kono
parents:
diff changeset
602 expressions to both top-level variable and basic arithmetic expressions.
kono
parents:
diff changeset
603
kono
parents:
diff changeset
604 2008-10-12 Paul Thomas <pault@gcc.gnu.org>
kono
parents:
diff changeset
605
kono
parents:
diff changeset
606 PR fortran/37787
kono
parents:
diff changeset
607 * dependency.c (gfc_are_equivalenced_arrays): Look in symbol
kono
parents:
diff changeset
608 namespace rather than current namespace, if it is available.
kono
parents:
diff changeset
609
kono
parents:
diff changeset
610 2008-10-12 Steven G. Kargl <kargls@comcast.net>
kono
parents:
diff changeset
611
kono
parents:
diff changeset
612 PR fortran/37792
kono
parents:
diff changeset
613 * fortran/resolve.c (resolve_fl_variable): Simplify the
kono
parents:
diff changeset
614 initializer if there is one.
kono
parents:
diff changeset
615
kono
parents:
diff changeset
616 2008-10-11 Paul Thomas <pault@gcc.gnu.org>
kono
parents:
diff changeset
617
kono
parents:
diff changeset
618 PR fortran/37794
kono
parents:
diff changeset
619 * module.c (check_for_ambiguous): Remove redundant code.
kono
parents:
diff changeset
620
kono
parents:
diff changeset
621 2008-10-09 Daniel Kraft <d@domob.eu>
kono
parents:
diff changeset
622
kono
parents:
diff changeset
623 PR fortran/35723
kono
parents:
diff changeset
624 * gfortran.h (gfc_suppress_error): Removed from header.
kono
parents:
diff changeset
625 (gfc_push_suppress_errors), (gfc_pop_suppress_errors): New methods.
kono
parents:
diff changeset
626 * array.c (gfc_array_size): Use new gfc_push/pop_suppress_errors
kono
parents:
diff changeset
627 instead of directly changing gfc_suppress_error.
kono
parents:
diff changeset
628 * intrinsic.c (gfc_intrinsic_func_interface): Ditto.
kono
parents:
diff changeset
629 (gfc_intrinsic_sub_interface): Ditto.
kono
parents:
diff changeset
630 * error.c (suppress_errors): Made static from `gfc_suppress_error'.
kono
parents:
diff changeset
631 (gfc_push_suppress_errors), (gfc_pop_suppress_errors): New methods.
kono
parents:
diff changeset
632 (gfc_notify_std), (gfc_error): Use new static name of global.
kono
parents:
diff changeset
633 * expr.c (check_arglist), (check_references): New methods.
kono
parents:
diff changeset
634 (check_restricted): Check arglists and references of EXPR_FUNCTIONs
kono
parents:
diff changeset
635 and EXPR_VARAIBALEs, respectively. Allow PARAMETER symbols.
kono
parents:
diff changeset
636
kono
parents:
diff changeset
637 2008-10-07 Jakub Jelinek <jakub@redhat.com>
kono
parents:
diff changeset
638
kono
parents:
diff changeset
639 * f95-lang.c (poplevel): Don't clear BLOCK_VARS if functionbody.
kono
parents:
diff changeset
640 * trans-decl.c (gfc_build_qualified_array): Build accurate debug type
kono
parents:
diff changeset
641 even if nest.
kono
parents:
diff changeset
642 (build_entry_thunks, gfc_generate_function_code,
kono
parents:
diff changeset
643 gfc_generate_constructors): Ensure DECL_SAVED_TREE is a BIND_EXPR
kono
parents:
diff changeset
644 with DECL_INITIAL as its BLOCK.
kono
parents:
diff changeset
645
kono
parents:
diff changeset
646 2008-10-05 Paul Thomas <pault@gcc.gnu.org>
kono
parents:
diff changeset
647
kono
parents:
diff changeset
648 PR fortran/35680
kono
parents:
diff changeset
649 * gfortran.h : Add 'error' bit field to gfc_expr structure.
kono
parents:
diff changeset
650 * expr.c (check_inquiry): When checking a restricted expression
kono
parents:
diff changeset
651 check that arguments are either variables or restricted.
kono
parents:
diff changeset
652 (check_restricted): Do not emit error if the expression has
kono
parents:
diff changeset
653 'error' set. Clean up detection of host-associated variable.
kono
parents:
diff changeset
654
kono
parents:
diff changeset
655 2008-10-05 Daniel Kraft <d@domob.eu>
kono
parents:
diff changeset
656
kono
parents:
diff changeset
657 PR fortran/37638
kono
parents:
diff changeset
658 * gfortran.h (struct gfc_typebound_proc): New flag `error'.
kono
parents:
diff changeset
659 * resolve.c (update_arglist_pass): Added assertion.
kono
parents:
diff changeset
660 (update_compcall_arglist): Fail early for erraneous procedures to avoid
kono
parents:
diff changeset
661 confusion later.
kono
parents:
diff changeset
662 (resolve_typebound_generic_call): Ignore erraneous specific targets
kono
parents:
diff changeset
663 and added assertions.
kono
parents:
diff changeset
664 (resolve_typebound_procedure): Set new `error' flag.
kono
parents:
diff changeset
665
kono
parents:
diff changeset
666 2008-10-04 Paul Thomas <pault@gcc.gnu.org>
kono
parents:
diff changeset
667
kono
parents:
diff changeset
668 PR fortran/37706
kono
parents:
diff changeset
669 * module.c (load_equiv): Check the module before negating the
kono
parents:
diff changeset
670 unused flag.
kono
parents:
diff changeset
671
kono
parents:
diff changeset
672 2008-10-02 Steven Bosscher <steven@gcc.gnu.org>
kono
parents:
diff changeset
673
kono
parents:
diff changeset
674 PR fortran/37635
kono
parents:
diff changeset
675 * intrinsic.c (add_functions): Add LEADZ and TRAILZ as generics.
kono
parents:
diff changeset
676 * intrinsic.h (gfc_simplify_leadz, gfc_simplify_trailz): New protos.
kono
parents:
diff changeset
677 * gfortran.h <enum gfc_isym_id>: (GFC_ISYM_LEADZ, GFC_ISYM_TRAILZ): New.
kono
parents:
diff changeset
678 * f95-lang (gfc_init_builtin_functions): Add BUILT_IN_CLZ,
kono
parents:
diff changeset
679 BUILT_IN_CLZL, BUILT_IN_CLZLL, BUILT_IN_CTZ, BUILT_IN_CTZL, and
kono
parents:
diff changeset
680 BUILT_IN_CTZLL.
kono
parents:
diff changeset
681 * trans-intrinsic.c (gfc_conv_intrinsic_leadz,
kono
parents:
diff changeset
682 gfc_conv_intrinsic_trails): New code-generation functions for LEADZ
kono
parents:
diff changeset
683 and TRAILZ intrinsics.
kono
parents:
diff changeset
684 (gfc_conv_intrinsic_function): Use them
kono
parents:
diff changeset
685 * intrinsic.texi: Add documentation for LEADZ and TRAILZ.
kono
parents:
diff changeset
686 * simplify.c (gfc_simplify_leadz, gfc_simplify_trailz): New functions.
kono
parents:
diff changeset
687
kono
parents:
diff changeset
688 2008-09-30 Janus Weil <janus@gcc.gnu.org>
kono
parents:
diff changeset
689
kono
parents:
diff changeset
690 PR fortran/36592
kono
parents:
diff changeset
691 * symbol.c (check_conflict): If a symbol in a COMMON block is a
kono
parents:
diff changeset
692 procedure, it must be a procedure pointer.
kono
parents:
diff changeset
693 (gfc_add_in_common): Symbols in COMMON blocks may be variables or
kono
parents:
diff changeset
694 procedure pointers.
kono
parents:
diff changeset
695 * trans-types.c (gfc_sym_type): Make procedure pointers in COMMON
kono
parents:
diff changeset
696 blocks work.
kono
parents:
diff changeset
697
kono
parents:
diff changeset
698 2008-09-25 Jerry DeLisle <jvdelisle@gcc.gnu.org
kono
parents:
diff changeset
699
kono
parents:
diff changeset
700 PR fortran/37498
kono
parents:
diff changeset
701 * trans-io.c (build_dt): Revert previous patch..
kono
parents:
diff changeset
702 * ioparm.def: Delete IOPARM_dt_f2003.
kono
parents:
diff changeset
703
kono
parents:
diff changeset
704 2008-09-25 Tobias Burnus <burnus@net-b.de>
kono
parents:
diff changeset
705
kono
parents:
diff changeset
706 PR fortran/37504
kono
parents:
diff changeset
707 * expr.c (gfc_check_pointer_assign): Allow assignment of
kono
parents:
diff changeset
708 protected pointers.
kono
parents:
diff changeset
709 * match.c (gfc_match_assignment,gfc_match_pointer_assignment):
kono
parents:
diff changeset
710 Remove unreachable code.
kono
parents:
diff changeset
711
kono
parents:
diff changeset
712 2008-09-24 Tobias Burnus <burnus@net-b.de>
kono
parents:
diff changeset
713
kono
parents:
diff changeset
714 * options.c (set_default_std_flags,gfc_init_options):
kono
parents:
diff changeset
715 Add comment: keep in sync with libgfortran.
kono
parents:
diff changeset
716
kono
parents:
diff changeset
717 2008-09-24 Tobias Burnus <burnus@net-b.de>
kono
parents:
diff changeset
718
kono
parents:
diff changeset
719 PR fortran/37626
kono
parents:
diff changeset
720 * trans-array.c (gfc_trans_deferred_array): Don't auto-deallocate
kono
parents:
diff changeset
721 result variables.
kono
parents:
diff changeset
722
kono
parents:
diff changeset
723 2008-09-23 Daniel Kraft <d@domob.eu>
kono
parents:
diff changeset
724
kono
parents:
diff changeset
725 PR fortran/37588
kono
parents:
diff changeset
726 * gfortran.h (gfc_compare_actual_formal): Removed, made private.
kono
parents:
diff changeset
727 (gfc_arglist_matches_symbol): New method.
kono
parents:
diff changeset
728 * interface.c (compare_actual_formal): Made static.
kono
parents:
diff changeset
729 (gfc_procedure_use): Use new name of compare_actual_formal.
kono
parents:
diff changeset
730 (gfc_arglist_matches_symbol): New method.
kono
parents:
diff changeset
731 (gfc_search_interface): Moved code partially to new
kono
parents:
diff changeset
732 gfc_arglist_matches_symbol.
kono
parents:
diff changeset
733 * resolve.c (resolve_typebound_generic_call): Resolve actual arglist
kono
parents:
diff changeset
734 before checking against formal and use new gfc_arglist_matches_symbol
kono
parents:
diff changeset
735 for checking.
kono
parents:
diff changeset
736 (resolve_compcall): Set type-spec of generated expression.
kono
parents:
diff changeset
737
kono
parents:
diff changeset
738 2008-09-23 Tobias Burnus <burnus@net-b.de>
kono
parents:
diff changeset
739
kono
parents:
diff changeset
740 PR fortran/37580
kono
parents:
diff changeset
741 * expr.c (gfc_check_pointer_assign): Add checks for pointer
kono
parents:
diff changeset
742 remapping.
kono
parents:
diff changeset
743
kono
parents:
diff changeset
744 2008-09-22 Jerry DeLisle <jvdelisle@gcc.gnu.org
kono
parents:
diff changeset
745
kono
parents:
diff changeset
746 PR fortran/37498
kono
parents:
diff changeset
747 * trans-io.c (gfc_build_io_library_fndecls): Bump pad size.
kono
parents:
diff changeset
748 (build_dt): Set mask bit for IOPARM_dt_f2003.
kono
parents:
diff changeset
749 * ioparm.def: Add IOPARM_dt_f2003.
kono
parents:
diff changeset
750
kono
parents:
diff changeset
751 2008-09-22 Janus Weil <janus@gcc.gnu.org>
kono
parents:
diff changeset
752
kono
parents:
diff changeset
753 PR fortran/37486
kono
parents:
diff changeset
754 * gfortran.h (gfc_option_t): New members flag_align_commons and
kono
parents:
diff changeset
755 warn_align_commons.
kono
parents:
diff changeset
756 * lang.opt: New options falign-commons and Walign-commons.
kono
parents:
diff changeset
757 * invoke.texi: Documentation for new options.
kono
parents:
diff changeset
758 * options.c (gfc_init_options): Initialize new options.
kono
parents:
diff changeset
759 (gfc_handle_options): Handle new options.
kono
parents:
diff changeset
760 * trans-common.c (translate_common): Implement new options.
kono
parents:
diff changeset
761 (gfc_trans_common): Set correct locus.
kono
parents:
diff changeset
762
kono
parents:
diff changeset
763 2008-09-21 Paul Thomas <pault@gcc.gnu.org>
kono
parents:
diff changeset
764
kono
parents:
diff changeset
765 PR fortran/37583
kono
parents:
diff changeset
766 * decl.c (scalarize_intrinsic_call): Both subroutines and
kono
parents:
diff changeset
767 functions can give a true for get_proc_mame's last argument so
kono
parents:
diff changeset
768 remove the &&gfc_current_ns->proc_name->attr.function.
kono
parents:
diff changeset
769 resolve.c (resolve_actual_arglist): Add check for recursion by
kono
parents:
diff changeset
770 reference to procedure as actual argument.
kono
parents:
diff changeset
771
kono
parents:
diff changeset
772 2008-09-21 Daniel Kraft <d@domob.eu>
kono
parents:
diff changeset
773
kono
parents:
diff changeset
774 PR fortran/35846
kono
parents:
diff changeset
775 * trans.h (gfc_conv_string_length): New argument `expr'.
kono
parents:
diff changeset
776 * trans-expr.c (flatten_array_ctors_without_strlen): New method.
kono
parents:
diff changeset
777 (gfc_conv_string_length): New argument `expr' that is used in a new
kono
parents:
diff changeset
778 special case handling if cl->length is NULL.
kono
parents:
diff changeset
779 (gfc_conv_subref_array_arg): Pass expr to gfc_conv_string_length.
kono
parents:
diff changeset
780 * trans-array.c (gfc_conv_expr_descriptor): Ditto.
kono
parents:
diff changeset
781 (gfc_trans_auto_array_allocation): Pass NULL as new expr.
kono
parents:
diff changeset
782 (gfc_trans_g77_array), (gfc_trans_dummy_array_bias): Ditto.
kono
parents:
diff changeset
783 (gfc_trans_deferred_array): Ditto.
kono
parents:
diff changeset
784 (gfc_trans_array_constructor): Save and restore old values of globals
kono
parents:
diff changeset
785 used for bounds checking.
kono
parents:
diff changeset
786 * trans-decl.c (gfc_trans_dummy_character): Ditto.
kono
parents:
diff changeset
787 (gfc_trans_auto_character_variable): Ditto.
kono
parents:
diff changeset
788
kono
parents:
diff changeset
789 2008-09-21 Daniel Kraft <d@domob.eu>
kono
parents:
diff changeset
790
kono
parents:
diff changeset
791 * decl.c (match_procedure_in_type): Changed misleading error message
kono
parents:
diff changeset
792 for not yet implemented PROCEDURE(interface) syntax.
kono
parents:
diff changeset
793
kono
parents:
diff changeset
794 2008-09-18 Paul Thomas <pault@gcc.gnu.org>
kono
parents:
diff changeset
795
kono
parents:
diff changeset
796 PR fortran/35945
kono
parents:
diff changeset
797 * resolve.c (resolve_fl_variable_derived): Remove derived type
kono
parents:
diff changeset
798 comparison for use associated derived types. Host association
kono
parents:
diff changeset
799 of a derived type will not arise if there is a local derived type
kono
parents:
diff changeset
800 whose use name is the same.
kono
parents:
diff changeset
801
kono
parents:
diff changeset
802 PR fortran/36700
kono
parents:
diff changeset
803 * match.c (gfc_match_call): Use the existing symbol even if
kono
parents:
diff changeset
804 it is a function.
kono
parents:
diff changeset
805
kono
parents:
diff changeset
806 2008-09-18 Daniel Kraft <d@domob.eu>
kono
parents:
diff changeset
807
kono
parents:
diff changeset
808 PR fortran/37507
kono
parents:
diff changeset
809 * trans.h (gfc_trans_runtime_error): New method.
kono
parents:
diff changeset
810 (gfc_trans_runtime_error_vararg): New method.
kono
parents:
diff changeset
811 (gfc_allocate_array_with_status): New argument `expr' for locus/varname.
kono
parents:
diff changeset
812 (gfc_deallocate_array_with_status): Ditto.
kono
parents:
diff changeset
813 * trans-array.h (gfc_array_deallocate): Ditto.
kono
parents:
diff changeset
814 * trans.c (gfc_trans_runtime_error): New method.
kono
parents:
diff changeset
815 (gfc_trans_runtime_error_vararg): New method, moved parts of the code
kono
parents:
diff changeset
816 from gfc_trans_runtime_check here.
kono
parents:
diff changeset
817 (gfc_trans_runtime_error_check): Moved code partly to new method.
kono
parents:
diff changeset
818 (gfc_call_malloc): Fix tab-indentation.
kono
parents:
diff changeset
819 (gfc_allocate_array_with_status): New argument `expr' and call
kono
parents:
diff changeset
820 gfc_trans_runtime_error for error reporting to include locus.
kono
parents:
diff changeset
821 (gfc_deallocate_with_status): Ditto.
kono
parents:
diff changeset
822 * trans-stmt.c (gfc_trans_deallocate): Pass expr as new argument.
kono
parents:
diff changeset
823 * trans-array.c (gfc_array_allocate): Ditto.
kono
parents:
diff changeset
824 (gfc_array_deallocate): New argument `expr', passed on.
kono
parents:
diff changeset
825 (gfc_trans_dealloc_allocated): Pass NULL for expr.
kono
parents:
diff changeset
826 * trans-openmp.c (gfc_omp_clause_default): Ditto.
kono
parents:
diff changeset
827
kono
parents:
diff changeset
828 2008-09-18 Paul Thomas <pault@gcc.gnu.org>
kono
parents:
diff changeset
829
kono
parents:
diff changeset
830 PR fortran/37274
kono
parents:
diff changeset
831 PR fortran/36374
kono
parents:
diff changeset
832 * module.c (check_for_ambiguous): New function to test loaded
kono
parents:
diff changeset
833 symbol for ambiguity with fixup symbol.
kono
parents:
diff changeset
834 (read_module): Call check_for_ambiguous.
kono
parents:
diff changeset
835 (write_symtree): Do not write the symtree for symbols coming
kono
parents:
diff changeset
836 from an interface body.
kono
parents:
diff changeset
837
kono
parents:
diff changeset
838 PR fortran/36374
kono
parents:
diff changeset
839 * resolve.c (count_specific_procs ): New function to count the
kono
parents:
diff changeset
840 number of specific procedures with the same name as the generic
kono
parents:
diff changeset
841 and emit appropriate errors for and actual argument reference.
kono
parents:
diff changeset
842 (resolve_assumed_size_actual): Add new argument no_formal_args.
kono
parents:
diff changeset
843 Correct logic around passing generic procedures as arguments.
kono
parents:
diff changeset
844 Call count_specific_procs from two locations.
kono
parents:
diff changeset
845 (resolve_function): Evaluate and pass no_formal_args.
kono
parents:
diff changeset
846 (resolve call): The same and clean up a bit by using csym more
kono
parents:
diff changeset
847 widely.
kono
parents:
diff changeset
848
kono
parents:
diff changeset
849 PR fortran/36454
kono
parents:
diff changeset
850 * symbol.c (gfc_add_access): Access can be updated if use
kono
parents:
diff changeset
851 associated and not private.
kono
parents:
diff changeset
852
kono
parents:
diff changeset
853 2008-09-17 Jakub Jelinek <jakub@redhat.com>
kono
parents:
diff changeset
854
kono
parents:
diff changeset
855 PR fortran/37536
kono
parents:
diff changeset
856 * trans-stmt.c (gfc_trans_do): Optimize integer type non-simple
kono
parents:
diff changeset
857 do loop initialization.
kono
parents:
diff changeset
858
kono
parents:
diff changeset
859 2008-09-14 Jerry DeLisle <jvdelisle@gcc.gnu.org>
kono
parents:
diff changeset
860 Tobias Burnus <burnus@net.b.de>
kono
parents:
diff changeset
861
kono
parents:
diff changeset
862 PR fortran/35840
kono
parents:
diff changeset
863 * io.c (match_vtag): Add tag name to error message.
kono
parents:
diff changeset
864 (match_out_tag): Cleanup whitespace.
kono
parents:
diff changeset
865 (gfc_resolve_dt): Resolve id and async tags.
kono
parents:
diff changeset
866
kono
parents:
diff changeset
867 2008-09-13 Daniel Kraft <d@domob.eu>
kono
parents:
diff changeset
868
kono
parents:
diff changeset
869 PR fortran/35770
kono
parents:
diff changeset
870 * primary.c (gfc_match_varspec): Added missing type-spec clearing
kono
parents:
diff changeset
871 after wrong implicit character typing.
kono
parents:
diff changeset
872
kono
parents:
diff changeset
873 2008-09-12 Richard Guenther <rguenther@suse.de>
kono
parents:
diff changeset
874
kono
parents:
diff changeset
875 * trans-intrinsic.c (gfc_conv_intrinsic_transfer): Use
kono
parents:
diff changeset
876 build_fold_addr_expr to properly mark the argument
kono
parents:
diff changeset
877 addressable.
kono
parents:
diff changeset
878
kono
parents:
diff changeset
879 2008-09-11 Daniel Kraft <d@domob.eu>
kono
parents:
diff changeset
880
kono
parents:
diff changeset
881 PR fortran/36214
kono
parents:
diff changeset
882 * simplify.c (simplify_cmplx): Added linebreak to long line.
kono
parents:
diff changeset
883 * target-memory.c (gfc_convert_boz): Fix indentation.
kono
parents:
diff changeset
884 (gfc_interpret_float): Set mpfr precision to right value before
kono
parents:
diff changeset
885 calling mpfr_init.
kono
parents:
diff changeset
886
kono
parents:
diff changeset
887 2008-09-10 H.J. Lu <hongjiu.lu@intel.com>
kono
parents:
diff changeset
888
kono
parents:
diff changeset
889 * expr.c (find_array_element): Reformat comment.
kono
parents:
diff changeset
890
kono
parents:
diff changeset
891 2008-09-10 H.J. Lu <hongjiu.lu@intel.com>
kono
parents:
diff changeset
892
kono
parents:
diff changeset
893 * expr.c (find_array_element): Reformat.
kono
parents:
diff changeset
894
kono
parents:
diff changeset
895 2008-09-10 Tobias Burnus <burnus@net-b.de>
kono
parents:
diff changeset
896
kono
parents:
diff changeset
897 PR fortran/37420
kono
parents:
diff changeset
898 * trans-decl.c (get_proc_pointer_decl): Fix -Wunused-variable.
kono
parents:
diff changeset
899
kono
parents:
diff changeset
900 2008-09-09 Daniel Kraft <d@domob.eu>
kono
parents:
diff changeset
901
kono
parents:
diff changeset
902 PR fortran/37429
kono
parents:
diff changeset
903 * resolve.c (expression_rank): Added assertion to guard against
kono
parents:
diff changeset
904 EXPR_COMPCALL expressions.
kono
parents:
diff changeset
905 (resolve_compcall): Set expression's rank from the target procedure's.
kono
parents:
diff changeset
906
kono
parents:
diff changeset
907 2008-09-09 Daniel Kraft <d@domob.eu>
kono
parents:
diff changeset
908
kono
parents:
diff changeset
909 PR fortran/37411
kono
parents:
diff changeset
910 * trans-array.c (gfc_conv_array_parameter): Added assertion that the
kono
parents:
diff changeset
911 symbol has an array spec.
kono
parents:
diff changeset
912
kono
parents:
diff changeset
913 2008-09-08 Daniel Kraft <d@domob.eu>
kono
parents:
diff changeset
914
kono
parents:
diff changeset
915 PR fortran/37199
kono
parents:
diff changeset
916 * trans-expr.c (gfc_add_interface_mapping): Set new_sym->as.
kono
parents:
diff changeset
917 (gfc_map_intrinsic_function): Added checks against NULL bounds in
kono
parents:
diff changeset
918 array specs.
kono
parents:
diff changeset
919
kono
parents:
diff changeset
920 2008-09-08 Tobias Burnus <burnus@net.b.de>
kono
parents:
diff changeset
921
kono
parents:
diff changeset
922 PR fortran/37400
kono
parents:
diff changeset
923 * symbol.c (gfc_set_default_type): Copy char len.
kono
parents:
diff changeset
924
kono
parents:
diff changeset
925 2008-09-06 Steven G. Kargl <kargls@comcast.net>
kono
parents:
diff changeset
926
kono
parents:
diff changeset
927 PR fortran/36153
kono
parents:
diff changeset
928 * fortran/resolve.c (resolve_function): Shortcircuit for SIZE and
kono
parents:
diff changeset
929 UBOUND if 2nd argument is KIND.
kono
parents:
diff changeset
930
kono
parents:
diff changeset
931 2008-09-06 Steven G. Kargl <kargls@comcast.net>
kono
parents:
diff changeset
932
kono
parents:
diff changeset
933 PR fortran/33229
kono
parents:
diff changeset
934 * resolve.c (resolve_function): An intrinsic subroutine should not be
kono
parents:
diff changeset
935 called as a function.
kono
parents:
diff changeset
936
kono
parents:
diff changeset
937 2008-09-05 Daniel Kraft <d@domob.eu>
kono
parents:
diff changeset
938
kono
parents:
diff changeset
939 PR fortran/35837
kono
parents:
diff changeset
940 * resolve.c (resolve_types): Restore gfc_current_ns on exit.
kono
parents:
diff changeset
941 * symbol.c (gfc_save_all): Removed blank line.
kono
parents:
diff changeset
942
kono
parents:
diff changeset
943 2008-09-05 Daniel Kraft <d@domob.eu>
kono
parents:
diff changeset
944
kono
parents:
diff changeset
945 PR fortran/36746
kono
parents:
diff changeset
946 * primary.c (gfc_match_rvalue): Removed logic to handle implicit
kono
parents:
diff changeset
947 typing to a derived-type if a component reference is found.
kono
parents:
diff changeset
948 (gfc_match_varspec): Moved it here.
kono
parents:
diff changeset
949
kono
parents:
diff changeset
950 2008-09-04 Richard Guenther <rguenther@suse.de>
kono
parents:
diff changeset
951
kono
parents:
diff changeset
952 * trans-array.c (gfc_conv_array_parameter): Use correct types
kono
parents:
diff changeset
953 in building COND_EXPRs.
kono
parents:
diff changeset
954 * trans-expr.c (gfc_conv_missing_dummy): Likewise.
kono
parents:
diff changeset
955 * trans-intrinsics.c (gfc_conv_intrinsic_merge): Likewise.
kono
parents:
diff changeset
956
kono
parents:
diff changeset
957 2008-09-04 Daniel Kraft <d@domob.eu>
kono
parents:
diff changeset
958
kono
parents:
diff changeset
959 * PR fortran/37099
kono
parents:
diff changeset
960 * expr.c (simplify_const_ref): Update expression's character length
kono
parents:
diff changeset
961 when pulling out a substring reference.
kono
parents:
diff changeset
962
kono
parents:
diff changeset
963 2008-09-04 Ian Lance Taylor <iant@google.com>
kono
parents:
diff changeset
964
kono
parents:
diff changeset
965 * symbol.c (generate_isocbinding_symbol): Compare
kono
parents:
diff changeset
966 gfc_notification_std with ERROR rather than FAILURE.
kono
parents:
diff changeset
967 * resolve.c (check_assumed_size_reference): Compare array type
kono
parents:
diff changeset
968 with AR_FULL rather than DIMEN_ELEMENT.
kono
parents:
diff changeset
969 (resolve_actual_arglist): Compare with EXPR_VARIABLE rather than
kono
parents:
diff changeset
970 FL_VARIABLE.
kono
parents:
diff changeset
971
kono
parents:
diff changeset
972 2008-09-01 Jerry DeLisle <jvdelisle@gcc.gnu.org>
kono
parents:
diff changeset
973
kono
parents:
diff changeset
974 PR fortran/37228
kono
parents:
diff changeset
975 * io.c (check_format): Allow specifying precision with g0 format.
kono
parents:
diff changeset
976
kono
parents:
diff changeset
977 2008-09-02 Daniel Kraft <d@domob.eu>
kono
parents:
diff changeset
978
kono
parents:
diff changeset
979 * gfortran.h (struct gfc_namespace): New member `implicit_loc'.
kono
parents:
diff changeset
980 (gfc_add_abstract): New method.
kono
parents:
diff changeset
981 * decl.c (gfc_get_type_attr_spec): Match ABSTRACT attribute.
kono
parents:
diff changeset
982 (gfc_match_derived_decl): Copy abstract attribute in derived symbol.
kono
parents:
diff changeset
983 * dump-parse-tree.c (show_attr): Show ABSTRACT attribute as `ABSTRACT'
kono
parents:
diff changeset
984 only to allow for ABSTRACT types.
kono
parents:
diff changeset
985 * parse.c (parse_interface): Use new gfc_add_abstract.
kono
parents:
diff changeset
986 * primary.c (gfc_match_structure_constructor): Check that no ABSTRACT
kono
parents:
diff changeset
987 type is constructed.
kono
parents:
diff changeset
988 * resolve.c (resolve_typespec_used): New method.
kono
parents:
diff changeset
989 (resolve_fl_derived): Check type in respect to ABSTRACT attribute and
kono
parents:
diff changeset
990 check that no component is of an ABSTRACT type.
kono
parents:
diff changeset
991 (resolve_symbol): Check that no symbol is of an ABSTRACT type.
kono
parents:
diff changeset
992 (resolve_types): Check IMPLICIT declarations for ABSTRACT types.
kono
parents:
diff changeset
993 * symbol.c (gfc_merge_new_implicit): Remember loci of IMPLICIT's.
kono
parents:
diff changeset
994 (gfc_add_abstract): New method.
kono
parents:
diff changeset
995
kono
parents:
diff changeset
996 2008-09-01 Daniel Kraft <d@domob.eu>
kono
parents:
diff changeset
997
kono
parents:
diff changeset
998 PR fortran/37193
kono
parents:
diff changeset
999 * module.c (read_module): Initialize use_only flag on used symbols.
kono
parents:
diff changeset
1000
kono
parents:
diff changeset
1001 2008-09-01 Daniel Kraft <d@domob.eu>
kono
parents:
diff changeset
1002
kono
parents:
diff changeset
1003 * gfc-internals.texi (F2003 OOP), (Type-bound Procedures): New chapter
kono
parents:
diff changeset
1004 and section to document the internals of type-bound procedures.
kono
parents:
diff changeset
1005 (gfc_expr): Document EXPR_COMPCALL.
kono
parents:
diff changeset
1006 * gfortran.h (struct gfc_expr): Remove unused `derived' from compcall.
kono
parents:
diff changeset
1007 * dump-parse-tree.c (show_compcall): New method.
kono
parents:
diff changeset
1008 (show_expr): Call it for EXPR_COMPCALL.
kono
parents:
diff changeset
1009 (show_typebound), (show_f2k_derived): New methods.
kono
parents:
diff changeset
1010 (show_symbol): Call show_f2k_derived.
kono
parents:
diff changeset
1011 (show_code_node): Handle EXEC_COMPCALL.
kono
parents:
diff changeset
1012 * primary.c (gfc_match_varspec): Don't initialize removed `derived' in
kono
parents:
diff changeset
1013 primary->value.compcall.
kono
parents:
diff changeset
1014
kono
parents:
diff changeset
1015 2008-08-31 Richard Guenther <rguenther@suse.de>
kono
parents:
diff changeset
1016
kono
parents:
diff changeset
1017 * trans-expr.c (gfc_trans_string_copy): Use the correct types
kono
parents:
diff changeset
1018 to compute slen and dlen.
kono
parents:
diff changeset
1019
kono
parents:
diff changeset
1020 2008-08-31 Daniel Kraft <d@domob.eu>
kono
parents:
diff changeset
1021
kono
parents:
diff changeset
1022 * gfortran.h (enum gfc_statement): New entry `ST_GENERIC'.
kono
parents:
diff changeset
1023 (struct gfc_tbp_generic): New type.
kono
parents:
diff changeset
1024 (struct gfc_typebound_proc): Removed `target' and added union with
kono
parents:
diff changeset
1025 `specific' and `generic' members; new members `overridden',
kono
parents:
diff changeset
1026 `subroutine', `function' and `is_generic'.
kono
parents:
diff changeset
1027 (struct gfc_expr): New members `derived' and `name' in compcall union
kono
parents:
diff changeset
1028 member and changed type of `tbp' to gfc_typebound_proc.
kono
parents:
diff changeset
1029 (gfc_compare_interfaces), (gfc_compare_actual_formal): Made public.
kono
parents:
diff changeset
1030 * match.h (gfc_typebound_default_access): New global.
kono
parents:
diff changeset
1031 (gfc_match_generic): New method.
kono
parents:
diff changeset
1032 * decl.c (gfc_match_generic): New method.
kono
parents:
diff changeset
1033 (match_binding_attributes): New argument `generic' and handle it.
kono
parents:
diff changeset
1034 (match_procedure_in_type): Mark matched binding as non-generic.
kono
parents:
diff changeset
1035 * interface.c (gfc_compare_interfaces): Made public.
kono
parents:
diff changeset
1036 (gfc_compare_actual_formal): Ditto.
kono
parents:
diff changeset
1037 (check_interface_1), (compare_parameter): Use new public names.
kono
parents:
diff changeset
1038 (gfc_procedure_use), (gfc_search_interface): Ditto.
kono
parents:
diff changeset
1039 * match.c (match_typebound_call): Set base-symbol referenced.
kono
parents:
diff changeset
1040 * module.c (binding_generic): New global array.
kono
parents:
diff changeset
1041 (current_f2k_derived): New global.
kono
parents:
diff changeset
1042 (mio_typebound_proc): Handle IO of GENERIC bindings.
kono
parents:
diff changeset
1043 (mio_f2k_derived): Record current f2k-namespace in current_f2k_derived.
kono
parents:
diff changeset
1044 * parse.c (decode_statement): Handle GENERIC statement.
kono
parents:
diff changeset
1045 (gfc_ascii_statement): Ditto.
kono
parents:
diff changeset
1046 (typebound_default_access), (set_typebound_default_access): Removed.
kono
parents:
diff changeset
1047 (gfc_typebound_default_access): New global.
kono
parents:
diff changeset
1048 (parse_derived_contains): New default-access implementation and handle
kono
parents:
diff changeset
1049 GENERIC statements encountered.
kono
parents:
diff changeset
1050 * primary.c (gfc_match_varspec): Adapted to new gfc_typebound_proc
kono
parents:
diff changeset
1051 structure and removed check for SUBROUTINE/FUNCTION from here.
kono
parents:
diff changeset
1052 * resolve.c (extract_compcall_passed_object): New method.
kono
parents:
diff changeset
1053 (update_compcall_arglist): Use it.
kono
parents:
diff changeset
1054 (resolve_typebound_static): Adapted to new gfc_typebound_proc structure.
kono
parents:
diff changeset
1055 (resolve_typebound_generic_call): New method.
kono
parents:
diff changeset
1056 (resolve_typebound_call): Check target is a SUBROUTINE and handle calls
kono
parents:
diff changeset
1057 to GENERIC bindings.
kono
parents:
diff changeset
1058 (resolve_compcall): Ditto (check for target being FUNCTION).
kono
parents:
diff changeset
1059 (check_typebound_override): Handle GENERIC bindings.
kono
parents:
diff changeset
1060 (check_generic_tbp_ambiguity), (resolve_typebound_generic): New methods.
kono
parents:
diff changeset
1061 (resolve_typebound_procedure): Handle GENERIC bindings and set new
kono
parents:
diff changeset
1062 attributes subroutine, function and overridden in gfc_typebound_proc.
kono
parents:
diff changeset
1063 (resolve_fl_derived): Ensure extended type is resolved before the
kono
parents:
diff changeset
1064 extending one is.
kono
parents:
diff changeset
1065 * st.c (gfc_free_statement): Fix bug with free'ing EXEC_COMPCALL's.
kono
parents:
diff changeset
1066 * symbol.c (gfc_find_typebound_proc): Adapt for GENERIC changes.
kono
parents:
diff changeset
1067
kono
parents:
diff changeset
1068 2008-08-29 Jan Hubicka <jh@suse.cz>
kono
parents:
diff changeset
1069
kono
parents:
diff changeset
1070 * parse.c (parse_interface): Silence uninitialized var warning.
kono
parents:
diff changeset
1071
kono
parents:
diff changeset
1072 2008-08-29 Jakub Jelinek <jakub@redhat.com>
kono
parents:
diff changeset
1073
kono
parents:
diff changeset
1074 * trans.h (struct lang_type): Add span.
kono
parents:
diff changeset
1075 (GFC_TYPE_ARRAY_SPAN): Define.
kono
parents:
diff changeset
1076 * trans-decl.c (gfc_get_symbol_decl): For subref array pointers,
kono
parents:
diff changeset
1077 copy TREE_STATIC from decl to span instead of setting it
kono
parents:
diff changeset
1078 unconditionally, set DECL_ARTIFICIAL, fix type of initializer
kono
parents:
diff changeset
1079 and set GFC_TYPE_ARRAY_SPAN on decl's type.
kono
parents:
diff changeset
1080 * trans-types.c (gfc_get_array_descr_info): If
kono
parents:
diff changeset
1081 GFC_TYPE_ARRAY_SPAN is non-NULL, use it as element size.
kono
parents:
diff changeset
1082
kono
parents:
diff changeset
1083 * trans-decl.c (check_constant_initializer,
kono
parents:
diff changeset
1084 gfc_emit_parameter_debug_info): New functions.
kono
parents:
diff changeset
1085 (gfc_generate_module_vars, gfc_generate_function_code): Emit
kono
parents:
diff changeset
1086 PARAMETERs and unreferenced variables with initializers into
kono
parents:
diff changeset
1087 debug info.
kono
parents:
diff changeset
1088
kono
parents:
diff changeset
1089 * gfortran.h (gfc_use_list): Add where field.
kono
parents:
diff changeset
1090 * module.c (use_locus): New static variable.
kono
parents:
diff changeset
1091 (gfc_match_use): Set it.
kono
parents:
diff changeset
1092 (gfc_use_module): Copy it to gfc_use_list's where field.
kono
parents:
diff changeset
1093 * trans-decl.c (gfc_generate_module_vars): Call gfc_trans_use_stmts.
kono
parents:
diff changeset
1094 (gfc_trans_use_stmts): Set backend locus before calling the debug
kono
parents:
diff changeset
1095 hook. Allow non-VAR_DECLs to be created even for non-external
kono
parents:
diff changeset
1096 module. Don't emit anything so far for renames from different
kono
parents:
diff changeset
1097 modules.
kono
parents:
diff changeset
1098
kono
parents:
diff changeset
1099 PR fortran/24790
kono
parents:
diff changeset
1100 * trans-decl.c (create_function_arglist): Set DECL_BY_REFERENCE on
kono
parents:
diff changeset
1101 PARM_DECLs with pointer or reference type.
kono
parents:
diff changeset
1102
kono
parents:
diff changeset
1103 * trans-decl.c (gfc_build_qualified_array): Build non-flat
kono
parents:
diff changeset
1104 array type for debug info purposes.
kono
parents:
diff changeset
1105
kono
parents:
diff changeset
1106 PR fortran/29635
kono
parents:
diff changeset
1107 PR fortran/23057
kono
parents:
diff changeset
1108 * f95-lang.c (gfc_init_ts): New function.
kono
parents:
diff changeset
1109 (LANG_HOOKS_INIT_TS): Define.
kono
parents:
diff changeset
1110 * gfortran.h (gfc_use_rename): New type, moved from module.c.
kono
parents:
diff changeset
1111 (gfc_get_use_rename): New macro, moved from module.c.
kono
parents:
diff changeset
1112 (gfc_use_list): New type.
kono
parents:
diff changeset
1113 (gfc_get_use_list): New macro.
kono
parents:
diff changeset
1114 (gfc_namespace): Add use_stmts field.
kono
parents:
diff changeset
1115 (gfc_free_use_stmts): New prototype.
kono
parents:
diff changeset
1116 * Make-lang.in (fortran/trans-decl.o): Depend on debug.h.
kono
parents:
diff changeset
1117 * module.c (gfc_use_rename, gfc_get_use_rename): Moved to
kono
parents:
diff changeset
1118 gfortran.h.
kono
parents:
diff changeset
1119 (gfc_use_module): Chain the USE statement info to
kono
parents:
diff changeset
1120 ns->use_stmts.
kono
parents:
diff changeset
1121 (gfc_free_use_stmts): New function.
kono
parents:
diff changeset
1122 * symbol.c (gfc_free_namespace): Call gfc_free_use_stmts.
kono
parents:
diff changeset
1123 * trans.h (struct module_htab_entry): New type.
kono
parents:
diff changeset
1124 (gfc_find_module, gfc_module_add_decl): New functions.
kono
parents:
diff changeset
1125 * trans.c (gfc_generate_module_code): Create NAMESPACE_DECL for
kono
parents:
diff changeset
1126 the module, adjust DECL_CONTEXTs of module procedures and
kono
parents:
diff changeset
1127 call gfc_module_add_decl for them.
kono
parents:
diff changeset
1128 * trans-common.c (build_common_decl): Set DECL_IGNORED_P
kono
parents:
diff changeset
1129 on the common variable.
kono
parents:
diff changeset
1130 (create_common): Set DECL_IGNORED_P for use associated vars.
kono
parents:
diff changeset
1131 * trans-decl.c: Include debug.h.
kono
parents:
diff changeset
1132 (gfc_get_symbol_decl): Set DECL_IGNORED_P on use_assoc vars from
kono
parents:
diff changeset
1133 modules.
kono
parents:
diff changeset
1134 (build_function_decl): Allow current_function_decl's context
kono
parents:
diff changeset
1135 to be a NAMESPACE_DECL.
kono
parents:
diff changeset
1136 (module_htab, cur_module): New variables.
kono
parents:
diff changeset
1137 (module_htab_do_hash, module_htab_eq, module_htab_decls_hash,
kono
parents:
diff changeset
1138 module_htab_decls_eq, gfc_find_module, gfc_module_add_decl): New
kono
parents:
diff changeset
1139 functions.
kono
parents:
diff changeset
1140 (gfc_create_module_variable): Adjust DECL_CONTEXTs of module
kono
parents:
diff changeset
1141 variables and types and call gfc_module_add_decl for them.
kono
parents:
diff changeset
1142 (gfc_generate_module_vars): Temporarily set cur_module.
kono
parents:
diff changeset
1143 (gfc_trans_use_stmts): New function.
kono
parents:
diff changeset
1144 (gfc_generate_function_code): Call it.
kono
parents:
diff changeset
1145 (gfc_generate_block_data): Set DECL_IGNORED_P on decl.
kono
parents:
diff changeset
1146 * trans-types.c (gfc_get_derived_type): Adjust DECL_CONTEXT
kono
parents:
diff changeset
1147 and TYPE_CONTEXT of module derived types.
kono
parents:
diff changeset
1148
kono
parents:
diff changeset
1149 2008-08-28 Daniel Kraft <d@domob.eu>
kono
parents:
diff changeset
1150
kono
parents:
diff changeset
1151 * gfortran.h (enum expr_t): New value `EXPR_COMPCALL'.
kono
parents:
diff changeset
1152 (gfc_get_typebound_proc): New macro.
kono
parents:
diff changeset
1153 (struct gfc_expr): New union-member `compcall' for EXPR_COMPCALL.
kono
parents:
diff changeset
1154 (enum gfc_exec_op): New value `EXEC_COMPCALL'.
kono
parents:
diff changeset
1155 (gfc_find_typebound_proc): New argument.
kono
parents:
diff changeset
1156 (gfc_copy_ref), (gfc_match_varspec): Made public.
kono
parents:
diff changeset
1157 * decl.c (match_procedure_in_type): Use gfc_get_typebound_proc.
kono
parents:
diff changeset
1158 * expr.c (free_expr0), (gfc_copy_expr): Handle EXPR_COMPCALL.
kono
parents:
diff changeset
1159 (gfc_copy_ref): Made public and use new name.
kono
parents:
diff changeset
1160 (simplify_const_ref): Use new name of gfc_copy_ref.
kono
parents:
diff changeset
1161 (simplify_parameter_variable): Ditto.
kono
parents:
diff changeset
1162 (gfc_simplify_expr): gcc_unreachable for EXPR_COMPCALL.
kono
parents:
diff changeset
1163 * match.c (match_typebound_call): New method.
kono
parents:
diff changeset
1164 (gfc_match_call): Allow for CALL's to typebound procedures.
kono
parents:
diff changeset
1165 * module.c (binding_passing), (binding_overriding): New variables.
kono
parents:
diff changeset
1166 (expr_types): Add EXPR_COMPCALL.
kono
parents:
diff changeset
1167 (mio_expr): gcc_unreachable for EXPR_COMPCALL.
kono
parents:
diff changeset
1168 (mio_typebound_proc), (mio_typebound_symtree): New methods.
kono
parents:
diff changeset
1169 (mio_f2k_derived): Handle type-bound procedures.
kono
parents:
diff changeset
1170 * primary.c (gfc_match_varspec): Made public and parse trailing
kono
parents:
diff changeset
1171 references to type-bound procedures; new argument `sub_flag'.
kono
parents:
diff changeset
1172 (gfc_match_rvalue): New name and argument of gfc_match_varspec.
kono
parents:
diff changeset
1173 (match_variable): Ditto.
kono
parents:
diff changeset
1174 * resolve.c (update_arglist_pass): New method.
kono
parents:
diff changeset
1175 (update_compcall_arglist), (resolve_typebound_static): New methods.
kono
parents:
diff changeset
1176 (resolve_typebound_call), (resolve_compcall): New methods.
kono
parents:
diff changeset
1177 (gfc_resolve_expr): Handle EXPR_COMPCALL.
kono
parents:
diff changeset
1178 (resolve_code): Handle EXEC_COMPCALL.
kono
parents:
diff changeset
1179 (resolve_fl_derived): New argument to gfc_find_typebound_proc.
kono
parents:
diff changeset
1180 (resolve_typebound_procedure): Ditto and removed not-implemented error.
kono
parents:
diff changeset
1181 * st.c (gfc_free_statement): Handle EXEC_COMPCALL.
kono
parents:
diff changeset
1182 * symbol.c (gfc_find_typebound_proc): New argument `noaccess' and
kono
parents:
diff changeset
1183 implement access-checking.
kono
parents:
diff changeset
1184 * trans-expr.c (gfc_apply_interface_mapping_to_expr): gcc_unreachable
kono
parents:
diff changeset
1185 on EXPR_COMPCALL.
kono
parents:
diff changeset
1186 * trans-intrinsic.c (gfc_conv_intrinsic_bound): Add missing break.
kono
parents:
diff changeset
1187 * trans-openmp.c (gfc_trans_omp_array_reduction): Add missing
kono
parents:
diff changeset
1188 intialization of ref->type.
kono
parents:
diff changeset
1189
kono
parents:
diff changeset
1190 2008-08-28 Janus Weil <janus@gcc.gnu.org>
kono
parents:
diff changeset
1191
kono
parents:
diff changeset
1192 PR fortran/37253
kono
parents:
diff changeset
1193 * module.c (ab_attribute,attr_bits,mio_symbol_attribute): Take care of
kono
parents:
diff changeset
1194 saving attr.procedure and attr.proc_ptr to the module file.
kono
parents:
diff changeset
1195
kono
parents:
diff changeset
1196 2008-08-25 Daniel Kraft <d@domob.eu>
kono
parents:
diff changeset
1197
kono
parents:
diff changeset
1198 * gfortran.h (gfc_find_component): Add new arguments.
kono
parents:
diff changeset
1199 * parse.c (parse_derived_contains): Check if the derived-type containing
kono
parents:
diff changeset
1200 the CONTAINS section is SEQUENCE/BIND(C).
kono
parents:
diff changeset
1201 * resolve.c (resolve_typebound_procedure): Check for name collision with
kono
parents:
diff changeset
1202 components.
kono
parents:
diff changeset
1203 (resolve_fl_derived): Check for name collision with inherited
kono
parents:
diff changeset
1204 type-bound procedures.
kono
parents:
diff changeset
1205 * symbol.c (gfc_find_component): New arguments `noaccess' and `silent'.
kono
parents:
diff changeset
1206 (gfc_add_component): Adapt for new arguments.
kono
parents:
diff changeset
1207 * primary.c (match_varspec), (gfc_match_structure_constructor): Ditto.
kono
parents:
diff changeset
1208
kono
parents:
diff changeset
1209 2008-08-24 Tobias Burnus <burnus@net-b.de>
kono
parents:
diff changeset
1210
kono
parents:
diff changeset
1211 PR fortran/37201
kono
parents:
diff changeset
1212 * decl.c (verify_bind_c_sym): Reject array/string returning
kono
parents:
diff changeset
1213 functions.
kono
parents:
diff changeset
1214
kono
parents:
diff changeset
1215 2008-08-24 Tobias Burnus <burnus@net-b.de>
kono
parents:
diff changeset
1216
kono
parents:
diff changeset
1217 PR fortran/37201
kono
parents:
diff changeset
1218 * trans-expr.c (gfc_conv_function_call): Add string_length
kono
parents:
diff changeset
1219 for character-returning bind(C) functions.
kono
parents:
diff changeset
1220
kono
parents:
diff changeset
1221 2008-08-24 Daniel Kraft <d@domob.eu>
kono
parents:
diff changeset
1222
kono
parents:
diff changeset
1223 * gfortran.h (gfc_typebound_proc): New struct.
kono
parents:
diff changeset
1224 (gfc_symtree): New member typebound.
kono
parents:
diff changeset
1225 (gfc_find_typebound_proc): Prototype for new method.
kono
parents:
diff changeset
1226 (gfc_get_derived_super_type): Prototype for new method.
kono
parents:
diff changeset
1227 * parse.h (gfc_compile_state): New state COMP_DERIVED_CONTAINS.
kono
parents:
diff changeset
1228 * decl.c (gfc_match_procedure): Handle PROCEDURE inside derived-type
kono
parents:
diff changeset
1229 CONTAINS section.
kono
parents:
diff changeset
1230 (gfc_match_end): Handle new context COMP_DERIVED_CONTAINS.
kono
parents:
diff changeset
1231 (gfc_match_private): Ditto.
kono
parents:
diff changeset
1232 (match_binding_attributes), (match_procedure_in_type): New methods.
kono
parents:
diff changeset
1233 (gfc_match_final_decl): Rewrote to make use of new
kono
parents:
diff changeset
1234 COMP_DERIVED_CONTAINS parser state.
kono
parents:
diff changeset
1235 * parse.c (typebound_default_access): New global helper variable.
kono
parents:
diff changeset
1236 (set_typebound_default_access): New callback method.
kono
parents:
diff changeset
1237 (parse_derived_contains): New method.
kono
parents:
diff changeset
1238 (parse_derived): Extracted handling of CONTAINS to new parser state
kono
parents:
diff changeset
1239 and parse_derived_contains.
kono
parents:
diff changeset
1240 * resolve.c (resolve_bindings_derived), (resolve_bindings_result): New.
kono
parents:
diff changeset
1241 (check_typebound_override), (resolve_typebound_procedure): New methods.
kono
parents:
diff changeset
1242 (resolve_typebound_procedures): New method.
kono
parents:
diff changeset
1243 (resolve_fl_derived): Call new resolving method for typebound procs.
kono
parents:
diff changeset
1244 * symbol.c (gfc_new_symtree): Initialize new member typebound to NULL.
kono
parents:
diff changeset
1245 (gfc_find_typebound_proc): New method.
kono
parents:
diff changeset
1246 (gfc_get_derived_super_type): New method.
kono
parents:
diff changeset
1247
kono
parents:
diff changeset
1248 2008-08-23 Janus Weil <janus@gcc.gnu.org>
kono
parents:
diff changeset
1249
kono
parents:
diff changeset
1250 * gfortran.h (gfc_component): Add field "symbol_attribute attr", remove
kono
parents:
diff changeset
1251 fields "pointer", "allocatable", "dimension", "access".
kono
parents:
diff changeset
1252 Remove functions "gfc_set_component_attr" and "gfc_get_component_attr".
kono
parents:
diff changeset
1253 * interface.c (gfc_compare_derived_types): Ditto.
kono
parents:
diff changeset
1254 * trans-array.c (gfc_array_allocate,structure_alloc_comps): Ditto.
kono
parents:
diff changeset
1255 * trans-expr.c (gfc_conv_component_ref,gfc_trans_subcomponent_assign,
kono
parents:
diff changeset
1256 gfc_conv_structure): Ditto.
kono
parents:
diff changeset
1257 * symbol.c (gfc_find_component,free_components,gfc_set_component_attr,
kono
parents:
diff changeset
1258 gfc_get_component_attr,verify_bind_c_derived_type,
kono
parents:
diff changeset
1259 generate_isocbinding_symbol): Ditto.
kono
parents:
diff changeset
1260 * decl.c (build_struct): Ditto.
kono
parents:
diff changeset
1261 * dump-parse-tree.c (show_components): Ditto.
kono
parents:
diff changeset
1262 * trans-stmt.c (gfc_trans_deallocate): Ditto.
kono
parents:
diff changeset
1263 * expr.c (gfc_check_assign,gfc_check_pointer_assign,
kono
parents:
diff changeset
1264 gfc_default_initializer): Ditto.
kono
parents:
diff changeset
1265 * module.c (mio_component): Ditto.
kono
parents:
diff changeset
1266 * trans-types.c (copy_dt_decls_ifequal,gfc_get_derived_type): Ditto.
kono
parents:
diff changeset
1267 * resolve.c (has_default_initializer,resolve_structure_cons,
kono
parents:
diff changeset
1268 gfc_iso_c_func_interface,find_array_spec,resolve_ref,
kono
parents:
diff changeset
1269 resolve_deallocate_expr,resolve_allocate_expr,resolve_fl_derived,
kono
parents:
diff changeset
1270 resolve_equivalence_derived): Ditto.
kono
parents:
diff changeset
1271 * trans-io.c (transfer_expr): Ditto.
kono
parents:
diff changeset
1272 * parse.c (parse_derived): Ditto.
kono
parents:
diff changeset
1273 * dependency.c (gfc_check_dependency): Ditto.
kono
parents:
diff changeset
1274 * primary.c (gfc_variable_attr): Ditto.
kono
parents:
diff changeset
1275
kono
parents:
diff changeset
1276 2008-08-23 Tobias Burnus <burnus@net-b.de>
kono
parents:
diff changeset
1277
kono
parents:
diff changeset
1278 PR fortran/37076
kono
parents:
diff changeset
1279 * arith.c (gfc_arith_concat): Fix concat of kind=4 strings.
kono
parents:
diff changeset
1280
kono
parents:
diff changeset
1281 2008-08-23 Tobias Burnus <burnus@net-b.de>
kono
parents:
diff changeset
1282
kono
parents:
diff changeset
1283 PR fortran/37025
kono
parents:
diff changeset
1284 * target-memory.c (gfc_interpret_character): Support
kono
parents:
diff changeset
1285 kind=4 characters.
kono
parents:
diff changeset
1286
kono
parents:
diff changeset
1287 2008-08-22 Daniel Kraft <d@domob.eu>
kono
parents:
diff changeset
1288
kono
parents:
diff changeset
1289 PR fortran/30239
kono
parents:
diff changeset
1290 * symbol.c (gfc_add_type): Warn on -Wsurprising if a function-result
kono
parents:
diff changeset
1291 type is re-declared but neither -pedantic nor -std=f* is given and so
kono
parents:
diff changeset
1292 this is no error.
kono
parents:
diff changeset
1293 * invoke.texi (-Wsurprising): Document this new behaviour.
kono
parents:
diff changeset
1294
kono
parents:
diff changeset
1295 2008-08-22 Daniel Kraft <d@domob.eu>
kono
parents:
diff changeset
1296
kono
parents:
diff changeset
1297 * gfortran.h (in_prefix): Removed from this header.
kono
parents:
diff changeset
1298 * match.h (gfc_matching_prefix): Moved and renamed from `in_prefix'.
kono
parents:
diff changeset
1299 * decl.c (in_prefix): Removed from here.
kono
parents:
diff changeset
1300 (gfc_match_prefix): Use new name of `gfc_matching_prefix'.
kono
parents:
diff changeset
1301 * symbol.c (gfc_check_symbol_typed): Ditto.
kono
parents:
diff changeset
1302 * expr.c (check_typed_ns): New helper variable.
kono
parents:
diff changeset
1303 (expr_check_typed_help): New helper method.
kono
parents:
diff changeset
1304 (gfc_expr_check_typed): Rewrote to use gfc_traverse_expr to do the
kono
parents:
diff changeset
1305 work, fixing a minor problem.
kono
parents:
diff changeset
1306 * match.c (gfc_matching_prefix): New variable.
kono
parents:
diff changeset
1307
kono
parents:
diff changeset
1308 2008-08-22 Daniel Kraft <d@domob.eu>
kono
parents:
diff changeset
1309
kono
parents:
diff changeset
1310 PR fortran/32095
kono
parents:
diff changeset
1311 PR fortran/34228
kono
parents:
diff changeset
1312 * gfortran.h (in_prefix): New global.
kono
parents:
diff changeset
1313 (gfc_check_symbol_typed), (gfc_check_expr_typed): New methods.
kono
parents:
diff changeset
1314 * array.c (match_array_element_spec): Check that bounds-expressions
kono
parents:
diff changeset
1315 don't have symbols not-yet-typed in them.
kono
parents:
diff changeset
1316 * decl.c (var_element): Check that variable used is already typed.
kono
parents:
diff changeset
1317 (char_len_param_value): Check that expression does not contain
kono
parents:
diff changeset
1318 not-yet-typed symbols.
kono
parents:
diff changeset
1319 (in_prefix): New global.
kono
parents:
diff changeset
1320 (gfc_match_prefix): Record using `in_prefix' if we're at the moment
kono
parents:
diff changeset
1321 parsing a prefix or not.
kono
parents:
diff changeset
1322 * expr.c (gfc_expr_check_typed): New method.
kono
parents:
diff changeset
1323 * parse.c (verify_st_order): New argument to disable error output.
kono
parents:
diff changeset
1324 (check_function_result_typed): New helper method.
kono
parents:
diff changeset
1325 (parse_spec): Check that the function-result declaration, if given in
kono
parents:
diff changeset
1326 a prefix, contains no not-yet-typed symbols when the IMPLICIT rules are
kono
parents:
diff changeset
1327 parsed.
kono
parents:
diff changeset
1328 * symbol.c (gfc_check_symbol_typed): Check that a symbol already has
kono
parents:
diff changeset
1329 a type associated to it, otherwise use the IMPLICIT rules or signal
kono
parents:
diff changeset
1330 an error.
kono
parents:
diff changeset
1331
kono
parents:
diff changeset
1332 2008-08-21 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
kono
parents:
diff changeset
1333
kono
parents:
diff changeset
1334 * f95-lang.c: Update all calls to pedwarn.
kono
parents:
diff changeset
1335
kono
parents:
diff changeset
1336 2008-08-18 Daniel Franke <franke.daniel@gmail.com>
kono
parents:
diff changeset
1337
kono
parents:
diff changeset
1338 PR fortran/37032
kono
parents:
diff changeset
1339 * gfortran.texi: Document decision on include file handling in
kono
parents:
diff changeset
1340 preprocessed files.
kono
parents:
diff changeset
1341
kono
parents:
diff changeset
1342 2008-08-16 Tobias Burnus <burnus@net-b.de>
kono
parents:
diff changeset
1343
kono
parents:
diff changeset
1344 PR fortran/36825
kono
parents:
diff changeset
1345 * libgfortran.h: Reduce GFC_MAX_DIMENSIONS to 7.
kono
parents:
diff changeset
1346
kono
parents:
diff changeset
1347 2008-08-15 Jerry DeLisle <jvdelisle@gcc.gnu.org>
kono
parents:
diff changeset
1348
kono
parents:
diff changeset
1349 PR fortran/35863
kono
parents:
diff changeset
1350 * io.c (gfc_match_open): Enable UTF-8 in checks.
kono
parents:
diff changeset
1351 * simplify.c (gfc_simplify_selected_char_kind): Enable iso_10646.
kono
parents:
diff changeset
1352
kono
parents:
diff changeset
1353 2008-08-14 Janus Weil <janus@gcc.gnu.org>
kono
parents:
diff changeset
1354
kono
parents:
diff changeset
1355 PR fortran/36705
kono
parents:
diff changeset
1356 * symbol.c (check_conflict): Move conflict checks for (procedure,save)
kono
parents:
diff changeset
1357 and (procedure,intent) to resolve_fl_procedure.
kono
parents:
diff changeset
1358 * resolve.c (resolve_fl_procedure): Ditto.
kono
parents:
diff changeset
1359
kono
parents:
diff changeset
1360 2008-08-09 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
kono
parents:
diff changeset
1361
kono
parents:
diff changeset
1362 PR 36901
kono
parents:
diff changeset
1363 * f95-lang.c (gfc_mark_addressable): Use "pedwarn (0," instead of
kono
parents:
diff changeset
1364 'pedwarn0'.
kono
parents:
diff changeset
1365
kono
parents:
diff changeset
1366 2008-08-09 Paul Thomas <pault@gcc.gnu.org>
kono
parents:
diff changeset
1367
kono
parents:
diff changeset
1368 PR fortran/37011
kono
parents:
diff changeset
1369 * symbol.c (gfc_add_extension): New function.
kono
parents:
diff changeset
1370 * decl.c (gfc_get_type_attr_spec): Call it.
kono
parents:
diff changeset
1371 (gfc_match_derived_decl): Set symbol extension attribute from
kono
parents:
diff changeset
1372 attr.extension.
kono
parents:
diff changeset
1373 * gfortran.h : Add prototype for gfc_add_extension.
kono
parents:
diff changeset
1374
kono
parents:
diff changeset
1375 2008-08-08 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
kono
parents:
diff changeset
1376
kono
parents:
diff changeset
1377 PR 28875
kono
parents:
diff changeset
1378 * options.c (set_Wall): Replace set_Wunused by warn_unused.
kono
parents:
diff changeset
1379
kono
parents:
diff changeset
1380 2008-08-08 Daniel Kraft <d@domob.eu>
kono
parents:
diff changeset
1381
kono
parents:
diff changeset
1382 * gfortran.h (gfc_finalizer): Replaced member `procedure' by two
kono
parents:
diff changeset
1383 new members `proc_sym' and `proc_tree' to store the symtree after
kono
parents:
diff changeset
1384 resolution.
kono
parents:
diff changeset
1385 (gfc_find_sym_in_symtree): Made public.
kono
parents:
diff changeset
1386 * decl.c (gfc_match_final_decl): Adapted for new member name.
kono
parents:
diff changeset
1387 * interface.c (gfc_find_sym_in_symtree): Made public.
kono
parents:
diff changeset
1388 (gfc_extend_expr), (gfc_extend_assign): Changed call accordingly.
kono
parents:
diff changeset
1389 * module.c (mio_finalizer), (mio_f2k_derived), (mio_full_f2k_derived):
kono
parents:
diff changeset
1390 New methods for module-file IO of f2k_derived.
kono
parents:
diff changeset
1391 (mio_symbol): Do IO of f2k_derived namespace.
kono
parents:
diff changeset
1392 * resolve.c (gfc_resolve_finalizers): Adapted for new member name and
kono
parents:
diff changeset
1393 finding the symtree for the symbol here.
kono
parents:
diff changeset
1394 * symbol.c (gfc_free_finalizer): Adapted for new members.
kono
parents:
diff changeset
1395
kono
parents:
diff changeset
1396 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
kono
parents:
diff changeset
1397
kono
parents:
diff changeset
1398 * gfc-internals.texi: Update to GFDL 1.2. Do not list GPL as
kono
parents:
diff changeset
1399 Invariant Section.
kono
parents:
diff changeset
1400 * gfortran.texi: Likewise.
kono
parents:
diff changeset
1401 * intrinsic.texi: Do not list GPL as Invariant Section.
kono
parents:
diff changeset
1402 * invoke.texi: Likewise. Update copyright years.
kono
parents:
diff changeset
1403
kono
parents:
diff changeset
1404 2008-07-29 Paul Thomas <pault@gcc.gnu.org>
kono
parents:
diff changeset
1405
kono
parents:
diff changeset
1406 * trans-expr.c (conv_parent_component_references): New function
kono
parents:
diff changeset
1407 to build missing parent references.
kono
parents:
diff changeset
1408 (gfc_conv_variable): Call it
kono
parents:
diff changeset
1409 * symbol.c (gfc_add_component): Check that component name in a
kono
parents:
diff changeset
1410 derived type extension does not appear in parent.
kono
parents:
diff changeset
1411 (gfc_find_component): For a derived type extension, check if
kono
parents:
diff changeset
1412 the component appears in the parent derived type by calling
kono
parents:
diff changeset
1413 self. Separate errors for private components and private types.
kono
parents:
diff changeset
1414 * decl.c (match_data_constant): Add extra arg to call to
kono
parents:
diff changeset
1415 gfc_match_structure_constructor.
kono
parents:
diff changeset
1416 (check_extended_derived_type): New function to check that a
kono
parents:
diff changeset
1417 parent derived type exists and that it is OK for exension.
kono
parents:
diff changeset
1418 (gfc_get_type_attr_spec): Add extra argument 'name' and return
kono
parents:
diff changeset
1419 it if extends is specified.
kono
parents:
diff changeset
1420 (gfc_match_derived_decl): Match derived type extension and
kono
parents:
diff changeset
1421 build a first component of the parent derived type if OK. Add
kono
parents:
diff changeset
1422 the f2k namespace if not present.
kono
parents:
diff changeset
1423 * gfortran.h : Add the extension attribute.
kono
parents:
diff changeset
1424 * module.c : Handle attribute 'extension'.
kono
parents:
diff changeset
1425 * match.h : Modify prototypes for gfc_get_type_attr_spec and
kono
parents:
diff changeset
1426 gfc_match_structure_constructor.
kono
parents:
diff changeset
1427 * primary.c (build_actual_constructor): New function extracted
kono
parents:
diff changeset
1428 from gfc_match_structure_constructor and modified to call self
kono
parents:
diff changeset
1429 iteratively to build derived type extensions, when f2k named
kono
parents:
diff changeset
1430 components are used.
kono
parents:
diff changeset
1431 (gfc_match_structure_constructor): Do not throw error for too
kono
parents:
diff changeset
1432 many components if a parent type is being handled. Use
kono
parents:
diff changeset
1433 gfc_find_component to generate errors for non-existent or
kono
parents:
diff changeset
1434 private components. Iteratively call self for derived type
kono
parents:
diff changeset
1435 extensions so that parent constructor is built. If extension
kono
parents:
diff changeset
1436 and components left over, throw error.
kono
parents:
diff changeset
1437 (gfc_match_rvalue): Add extra arg to call to
kono
parents:
diff changeset
1438 gfc_match_structure_constructor.
kono
parents:
diff changeset
1439
kono
parents:
diff changeset
1440 * trans-array.c (gfc_conv_resolve_dependencies): If lhs and rhs
kono
parents:
diff changeset
1441 are the same symbol, aliassing does not matter.
kono
parents:
diff changeset
1442
kono
parents:
diff changeset
1443 2008-07-29 Jan Hubicka <jh@suse.cz>
kono
parents:
diff changeset
1444
kono
parents:
diff changeset
1445 * options.c (gfc_post_options): Do not set flag_no_inline.
kono
parents:
diff changeset
1446
kono
parents:
diff changeset
1447 2008-07-29 Daniel Kraft <d@domob.eu>
kono
parents:
diff changeset
1448
kono
parents:
diff changeset
1449 PR fortran/36403
kono
parents:
diff changeset
1450 * trans-intrinsic.c (conv_generic_with_optional_char_arg): New method
kono
parents:
diff changeset
1451 to append a string-length even if the string argument is missing, e.g.
kono
parents:
diff changeset
1452 for EOSHIFT.
kono
parents:
diff changeset
1453 (gfc_conv_intrinsic_function): Call the new method for EOSHIFT, PACK
kono
parents:
diff changeset
1454 and RESHAPE.
kono
parents:
diff changeset
1455
kono
parents:
diff changeset
1456 2008-07-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
kono
parents:
diff changeset
1457
kono
parents:
diff changeset
1458 * gfortran.h (try): Remove macro. Replace try with gfc_try
kono
parents:
diff changeset
1459 throughout.
kono
parents:
diff changeset
1460 * array.c: Likewise.
kono
parents:
diff changeset
1461 * check.c: Likewise.
kono
parents:
diff changeset
1462 * cpp.c: Likewise.
kono
parents:
diff changeset
1463 * cpp.h: Likewise.
kono
parents:
diff changeset
1464 * data.c: Likewise.
kono
parents:
diff changeset
1465 * data.h: Likewise.
kono
parents:
diff changeset
1466 * decl.c: Likewise.
kono
parents:
diff changeset
1467 * error.c: Likewise.
kono
parents:
diff changeset
1468 * expr.c: Likewise.
kono
parents:
diff changeset
1469 * interface.c: Likewise.
kono
parents:
diff changeset
1470 * intrinsic.c: Likewise.
kono
parents:
diff changeset
1471 * intrinsic.h: Likewise.
kono
parents:
diff changeset
1472 * io.c: Likewise.
kono
parents:
diff changeset
1473 * match.h: Likewise.
kono
parents:
diff changeset
1474 * parse.c: Likewise.
kono
parents:
diff changeset
1475 * parse.h: Likewise.
kono
parents:
diff changeset
1476 * resolve.c: Likewise.
kono
parents:
diff changeset
1477 * scanner.c: Likewise.
kono
parents:
diff changeset
1478 * simplify.c: Likewise.
kono
parents:
diff changeset
1479 * symbol.c: Likewise.
kono
parents:
diff changeset
1480 * trans-openmp.c: Likewise.
kono
parents:
diff changeset
1481 * trans-types.c: Likewise.
kono
parents:
diff changeset
1482
kono
parents:
diff changeset
1483 2008-07-28 Tobias Burnus <burnus@net-b.de>
kono
parents:
diff changeset
1484
kono
parents:
diff changeset
1485 * Make-lang.in: Remove -Wno-* from fortran-warn.
kono
parents:
diff changeset
1486
kono
parents:
diff changeset
1487 2008-07-28 Richard Guenther <rguenther@suse.de>
kono
parents:
diff changeset
1488
kono
parents:
diff changeset
1489 Merge from gimple-tuples-branch.
kono
parents:
diff changeset
1490
kono
parents:
diff changeset
1491 2008-07-18 Aldy Hernandez <aldyh@redhat.com>
kono
parents:
diff changeset
1492
kono
parents:
diff changeset
1493 * trans-expr.c: Include gimple.h instead of tree-gimple.h.
kono
parents:
diff changeset
1494 * trans-array.c: Same.
kono
parents:
diff changeset
1495 * trans-openmp.c: Same.
kono
parents:
diff changeset
1496 * trans-stmt.c: Same.
kono
parents:
diff changeset
1497 * f95-lang.c: Same.
kono
parents:
diff changeset
1498 * trans-io.c: Same.
kono
parents:
diff changeset
1499 * trans-decl.c: Same.
kono
parents:
diff changeset
1500 * trans-intrinsic.c: Same.
kono
parents:
diff changeset
1501 * trans.c: Same. Include tree-iterator.h.
kono
parents:
diff changeset
1502 * Make-lang.in (trans.o): Depend on tree-iterator.h
kono
parents:
diff changeset
1503
kono
parents:
diff changeset
1504 2008-07-14 Aldy Hernandez <aldyh@redhat.com>
kono
parents:
diff changeset
1505
kono
parents:
diff changeset
1506 * trans-array.h (gfc_conv_descriptor_data_set_internal):
kono
parents:
diff changeset
1507 Rename to gfc_conv_descriptor_data_set.
kono
parents:
diff changeset
1508 (gfc_conv_descriptor_data_set_tuples): Remove.
kono
parents:
diff changeset
1509 * trans-array.c (gfc_conv_descriptor_data_get): Rename
kono
parents:
diff changeset
1510 from gfc_conv_descriptor_data_set_internal.
kono
parents:
diff changeset
1511 Remove last argument to gfc_add_modify.
kono
parents:
diff changeset
1512 (gfc_trans_allocate_array_storage): Rename gfc_add_modify_expr to
kono
parents:
diff changeset
1513 gfc_add_modify.
kono
parents:
diff changeset
1514 (gfc_trans_create_temp_array): Same.
kono
parents:
diff changeset
1515 (gfc_conv_array_transpose): Same.
kono
parents:
diff changeset
1516 (gfc_grow_array): Same.
kono
parents:
diff changeset
1517 (gfc_put_offset_into_var): Same.
kono
parents:
diff changeset
1518 (gfc_trans_array_ctor_element): Same.
kono
parents:
diff changeset
1519 (gfc_trans_array_constructor_subarray): Same.
kono
parents:
diff changeset
1520 (gfc_trans_array_constructor_value): Same.
kono
parents:
diff changeset
1521 (gfc_trans_scalarized_loop_end): Same.
kono
parents:
diff changeset
1522 (gfc_array_init_size): Same.
kono
parents:
diff changeset
1523 (gfc_array_allocate): Same.
kono
parents:
diff changeset
1524 (gfc_trans_array_bounds): Same.
kono
parents:
diff changeset
1525 (gfc_trans_auto_array_allocation): Same.
kono
parents:
diff changeset
1526 (gfc_trans_g77_array): Same.
kono
parents:
diff changeset
1527 (gfc_trans_dummy_array_bias): Same.
kono
parents:
diff changeset
1528 (gfc_conv_expr_descriptor): Same.
kono
parents:
diff changeset
1529 (structure_alloc_comps): Same.
kono
parents:
diff changeset
1530 * trans-expr.c: Same.
kono
parents:
diff changeset
1531 * trans-openmp.c (gfc_omp_clause_default_ctor): Same.
kono
parents:
diff changeset
1532 Rename gfc_conv_descriptor_data_set_tuples to
kono
parents:
diff changeset
1533 gfc_conv_descriptor_data_set.
kono
parents:
diff changeset
1534 (gfc_omp_clause_copy_ctor): Change build_gimple_modify_stmt to
kono
parents:
diff changeset
1535 build2_v.
kono
parents:
diff changeset
1536 (gfc_omp_clause_assign_op): Same.
kono
parents:
diff changeset
1537 (gfc_trans_omp_array_reduction): Rename gfc_add_modify_expr to
kono
parents:
diff changeset
1538 gfc_add_modify.
kono
parents:
diff changeset
1539 (gfc_trans_omp_atomic): Same.
kono
parents:
diff changeset
1540 (gfc_trans_omp_do): Same. Change GIMPLE_MODIFY_STMT to MODIFY_EXPR.
kono
parents:
diff changeset
1541 Rename gfc_add_modify_stmt to gfc_add_modify.
kono
parents:
diff changeset
1542 * trans-stmt.c: Rename gfc_add_modify_expr to
kono
parents:
diff changeset
1543 gfc_add_modify.
kono
parents:
diff changeset
1544 * trans.c: Rename gfc_add_modify_expr to
kono
parents:
diff changeset
1545 gfc_add_modify.
kono
parents:
diff changeset
1546 (gfc_add_modify): Remove last argument.
kono
parents:
diff changeset
1547 Rename GIMPLE_MODIFY_STMT to MODIFY_EXPR.
kono
parents:
diff changeset
1548 * trans.h: Remove gfc_add_modify_expr, gfc_add_modify_stmt.
kono
parents:
diff changeset
1549 Add prototype for gfc_add_modify.
kono
parents:
diff changeset
1550 * f95-lang.c (union lang_tree_node): Rename GENERIC_NEXT to TREE_CHAIN.
kono
parents:
diff changeset
1551 * trans-decl.c: Rename gfc_add_modify_stmt to gfc_add_modify.
kono
parents:
diff changeset
1552 * trans-io.c: Same.
kono
parents:
diff changeset
1553 * trans-intrinsic.c: Same.
kono
parents:
diff changeset
1554
kono
parents:
diff changeset
1555 2008-02-25 Aldy Hernandez <aldyh@redhat.com>
kono
parents:
diff changeset
1556
kono
parents:
diff changeset
1557 * Make-lang.in (fortran-warn): Add -Wno-format.
kono
parents:
diff changeset
1558
kono
parents:
diff changeset
1559 2008-02-19 Diego Novillo <dnovillo@google.com>
kono
parents:
diff changeset
1560
kono
parents:
diff changeset
1561 http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00804.html
kono
parents:
diff changeset
1562
kono
parents:
diff changeset
1563 * fortran/Make-lang.in (fortran-warn): Remove.
kono
parents:
diff changeset
1564
kono
parents:
diff changeset
1565 2007-11-22 Aldy Hernandez <aldyh@redhat.com>
kono
parents:
diff changeset
1566
kono
parents:
diff changeset
1567 * trans-expr.c (gfc_trans_string_copy): Use "void *" when building a
kono
parents:
diff changeset
1568 memset.
kono
parents:
diff changeset
1569
kono
parents:
diff changeset
1570 2007-11-10 Aldy Hernandez <aldyh@redhat.com>
kono
parents:
diff changeset
1571
kono
parents:
diff changeset
1572 * Make-lang.in (fortran-warn): Set to -Wno-format.
kono
parents:
diff changeset
1573 * trans.c (gfc_trans_code): Update comment to say GENERIC.
kono
parents:
diff changeset
1574 Call tree_annotate_all_with_locus instead of annotate_all_with_locus.
kono
parents:
diff changeset
1575
kono
parents:
diff changeset
1576 2008-07-27 Tobias Burnus <burnus@net-b.de>
kono
parents:
diff changeset
1577
kono
parents:
diff changeset
1578 PR fortran/36132
kono
parents:
diff changeset
1579 PR fortran/29952
kono
parents:
diff changeset
1580 PR fortran/36909
kono
parents:
diff changeset
1581 * trans.c (gfc_trans_runtime_check): Allow run-time warning besides
kono
parents:
diff changeset
1582 run-time error.
kono
parents:
diff changeset
1583 * trans.h (gfc_trans_runtime_check): Update declaration.
kono
parents:
diff changeset
1584 * trans-array.c (gfc_trans_array_ctor_element,gfc_trans_array_bound_check,
kono
parents:
diff changeset
1585 gfc_conv_array_ref,gfc_conv_ss_startstride,gfc_trans_dummy_array_bias):
kono
parents:
diff changeset
1586 Updated gfc_trans_runtime_check calls.
kono
parents:
diff changeset
1587 (gfc_conv_array_parameter): Implement flag_check_array_temporaries,
kono
parents:
diff changeset
1588 fix packing/unpacking for nonpresent optional actuals to optional
kono
parents:
diff changeset
1589 formals.
kono
parents:
diff changeset
1590 * trans-array.h (gfc_conv_array_parameter): Update declaration.
kono
parents:
diff changeset
1591 * trans-expr.c (gfc_conv_substring,gfc_trans_arrayfunc_assign,
kono
parents:
diff changeset
1592 gfc_conv_function_call): Updated gfc_trans_runtime_check calls.
kono
parents:
diff changeset
1593 (gfc_conv_function_call): Update gfc_conv_array_parameter calls.
kono
parents:
diff changeset
1594 * trans-expr.c (gfc_trans_goto): Updated gfc_trans_runtime_check
kono
parents:
diff changeset
1595 calls.
kono
parents:
diff changeset
1596 * trans-io.c (set_string,gfc_conv_intrinsic_repeat): Ditto.
kono
parents:
diff changeset
1597 (gfc_conv_intrinsic_transfer,gfc_conv_intrinsic_loc): Same for
kono
parents:
diff changeset
1598 gfc_conv_array_parameter.
kono
parents:
diff changeset
1599 * trans-intrinsics.c (gfc_conv_intrinsic_bound): Ditto.
kono
parents:
diff changeset
1600 * trans-decl.c (gfc_build_builtin_function_decls): Add
kono
parents:
diff changeset
1601 gfor_fndecl_runtime_warning_at.
kono
parents:
diff changeset
1602 * lang.opt: New option fcheck-array-temporaries.
kono
parents:
diff changeset
1603 * gfortran.h (gfc_options): New flag_check_array_temporaries.
kono
parents:
diff changeset
1604 * options.c (gfc_init_options, gfc_handle_option): Handle flag.
kono
parents:
diff changeset
1605 * invoke.texi: New option fcheck-array-temporaries.
kono
parents:
diff changeset
1606
kono
parents:
diff changeset
1607 2008-07-24 Jan Hubicka <jh@suse.cz>
kono
parents:
diff changeset
1608
kono
parents:
diff changeset
1609 * fortran/options.c (gfc_post_options): Remove flag_unline_trees code.
kono
parents:
diff changeset
1610
kono
parents:
diff changeset
1611 2008-07-24 Daniel Kraft <d@domob.eu>
kono
parents:
diff changeset
1612
kono
parents:
diff changeset
1613 PR fortran/33141
kono
parents:
diff changeset
1614 * lang.opt (Wnonstd-intrinsics): Removed option.
kono
parents:
diff changeset
1615 (Wintrinsics-std), (Wintrinsic-shadow): New options.
kono
parents:
diff changeset
1616 * invoke.texi (Option Summary): Removed -Wnonstd-intrinsics
kono
parents:
diff changeset
1617 from the list and added -Wintrinsics-std and -Wintrinsic-shadow.
kono
parents:
diff changeset
1618 (Error and Warning Options): Documented the new options and removed
kono
parents:
diff changeset
1619 the documentation for -Wnonstd-intrinsics.
kono
parents:
diff changeset
1620 * gfortran.h (gfc_option_t): New members warn_intrinsic_shadow and
kono
parents:
diff changeset
1621 warn_intrinsics_std, removed warn_nonstd_intrinsics.
kono
parents:
diff changeset
1622 (gfc_is_intrinsic): Renamed from gfc_intrinsic_name.
kono
parents:
diff changeset
1623 (gfc_warn_intrinsic_shadow), (gfc_check_intrinsic_standard): New.
kono
parents:
diff changeset
1624 * decl.c (match_procedure_decl): Replaced gfc_intrinsic_name by
kono
parents:
diff changeset
1625 the new name gfc_is_intrinsic.
kono
parents:
diff changeset
1626 (warn_intrinsic_shadow): New helper method.
kono
parents:
diff changeset
1627 (gfc_match_function_decl), (gfc_match_subroutine): Call the new method
kono
parents:
diff changeset
1628 warn_intrinsic_shadow to check the just-parsed procedure.
kono
parents:
diff changeset
1629 * expr.c (check_init_expr): Call new gfc_is_intrinsic to check whether
kono
parents:
diff changeset
1630 the function called is really an intrinsic in the selected standard.
kono
parents:
diff changeset
1631 * intrinsic.c (gfc_is_intrinsic): Renamed from gfc_intrinsic_name and
kono
parents:
diff changeset
1632 extended to take into account the selected standard settings when trying
kono
parents:
diff changeset
1633 to find out whether a symbol is an intrinsic or not.
kono
parents:
diff changeset
1634 (gfc_check_intrinsic_standard): Made public and extended.
kono
parents:
diff changeset
1635 (gfc_intrinsic_func_interface), (gfc_intrinsic_sub_interface): Removed
kono
parents:
diff changeset
1636 the calls to check_intrinsic_standard, this check now happens inside
kono
parents:
diff changeset
1637 gfc_is_intrinsic.
kono
parents:
diff changeset
1638 (gfc_warn_intrinsic_shadow): New method defined.
kono
parents:
diff changeset
1639 * options.c (gfc_init_options): Initialize new warning flags to false
kono
parents:
diff changeset
1640 and removed intialization of Wnonstd-intrinsics flag.
kono
parents:
diff changeset
1641 (gfc_post_options): Removed logic for Wnonstd-intrinsics flag.
kono
parents:
diff changeset
1642 (set_Wall): Set new warning flags and removed Wnonstd-intrinsics flag.
kono
parents:
diff changeset
1643 (gfc_handle_option): Handle the new flags and removed handling of the
kono
parents:
diff changeset
1644 old Wnonstd-intrinsics flag.
kono
parents:
diff changeset
1645 * primary.c (gfc_match_rvalue): Replaced call to gfc_intrinsic_name by
kono
parents:
diff changeset
1646 the new name gfc_is_intrinsic.
kono
parents:
diff changeset
1647 * resolve.c (resolve_actual_arglist): Ditto.
kono
parents:
diff changeset
1648 (resolve_generic_f), (resolve_unknown_f): Ditto.
kono
parents:
diff changeset
1649 (is_external_proc): Ditto.
kono
parents:
diff changeset
1650 (resolve_generic_s), (resolve_unknown_s): Ditto.
kono
parents:
diff changeset
1651 (resolve_symbol): Ditto and ensure for symbols declared INTRINSIC that
kono
parents:
diff changeset
1652 they are really available in the selected standard setting.
kono
parents:
diff changeset
1653
kono
parents:
diff changeset
1654 2008-07-24 Daniel Kraft <d@domob.eu>
kono
parents:
diff changeset
1655
kono
parents:
diff changeset
1656 * match.c (gfc_match): Add assertion to catch wrong calls trying to
kono
parents:
diff changeset
1657 match upper-case characters.
kono
parents:
diff changeset
1658
kono
parents:
diff changeset
1659 2008-07-24 Thomas Koenig <tkoenig@gcc.gnu.org>
kono
parents:
diff changeset
1660
kono
parents:
diff changeset
1661 PR fortran/29952
kono
parents:
diff changeset
1662 * gfortran.h: Add "warn_array_temp" to gfc_option_t.
kono
parents:
diff changeset
1663 * lang.opt: Add -Warray-temporaries.
kono
parents:
diff changeset
1664 * invoke.texi: Document -Warray-temporaries
kono
parents:
diff changeset
1665 * trans-array.h (gfc_trans_create_temp_array): Add argument of
kono
parents:
diff changeset
1666 type *locus.
kono
parents:
diff changeset
1667 (gfc_conv_loop_setup): Likewise.
kono
parents:
diff changeset
1668 * trans-array.c (gfc_trans_create_temp_array): If
kono
parents:
diff changeset
1669 -Warray-temporaries is given and locus is present, warn about
kono
parents:
diff changeset
1670 creation of array temporaries.
kono
parents:
diff changeset
1671 (gfc_trans_array_constructor_subarray): Add locus to call
kono
parents:
diff changeset
1672 of gfc_conv_loop_setup.
kono
parents:
diff changeset
1673 (gfc_trans_array_constructor): Add where argument. Pass where
kono
parents:
diff changeset
1674 argument to call of gfc_trans_create_temp_array.
kono
parents:
diff changeset
1675 (gfc_add_loop_ss_code): Add where argument. Pass where argument
kono
parents:
diff changeset
1676 to recursive call of gfc_add_loop_ss_code and to call of
kono
parents:
diff changeset
1677 gfc_trans_array_constructor.
kono
parents:
diff changeset
1678 (gfc_conv_loop_setup): Add where argument. Pass where argument
kono
parents:
diff changeset
1679 to calls to gfc_add_loop_ss_code and to gfc_trans_create_temp_array.
kono
parents:
diff changeset
1680 (gfc_conv_expr_descriptor): Pass location to call of
kono
parents:
diff changeset
1681 gfc_conv_loop_setup.
kono
parents:
diff changeset
1682 (gfc_conv_array_parameter): If -Warray-temporaries is given,
kono
parents:
diff changeset
1683 warn about creation of temporary arrays.
kono
parents:
diff changeset
1684 * trans-expr.c (gfc_conv_subref_array_arg): Add where argument
kono
parents:
diff changeset
1685 to call to gfc_conv_loop_setup.
kono
parents:
diff changeset
1686 (gfc_conv_function_call): Add where argument to call to
kono
parents:
diff changeset
1687 gfc_trans_creat_temp_array.
kono
parents:
diff changeset
1688 (gfc_trans_subarray_assign): Likewise.
kono
parents:
diff changeset
1689 (gfc_trans_assignment_1): Add where argument to call to
kono
parents:
diff changeset
1690 gfc_conv_loop_setup.
kono
parents:
diff changeset
1691 * trans-stmt.c (gfc_conv_elemental_dependencies): Add where
kono
parents:
diff changeset
1692 argument to call to gfc_trans_create_temp_array.
kono
parents:
diff changeset
1693 (gfc_trans_call): Add where argument to call to gfc_conv_loop_setup.
kono
parents:
diff changeset
1694 (generate_loop_for_temp_to_lhs): Likewise.
kono
parents:
diff changeset
1695 (generate_loop_for_rhs_to_temp): Likewise.
kono
parents:
diff changeset
1696 (compute_inner_temp_size): Likewise.
kono
parents:
diff changeset
1697 (gfc_trans-pointer_assign_need_temp): Likewise.
kono
parents:
diff changeset
1698 (gfc_evaluate_where_mask): Likewise.
kono
parents:
diff changeset
1699 (gfc_trans_where_assign): Likewise.
kono
parents:
diff changeset
1700 (gfc_trans_where_3): Likewise.
kono
parents:
diff changeset
1701 * trans-io.c (transfer_srray_component): Add where argument
kono
parents:
diff changeset
1702 to function. Add where argument to call to gfc_conv_loop_setup.
kono
parents:
diff changeset
1703 (transfer_expr): Add where argument to call to
kono
parents:
diff changeset
1704 transfer_array_component.
kono
parents:
diff changeset
1705 (gfc_trans_transfer): Add where expression to call to
kono
parents:
diff changeset
1706 gfc_conv_loop_setup.
kono
parents:
diff changeset
1707 * trans-intrinsic.c (gfc_conv_intrinsic_anyall): Add
kono
parents:
diff changeset
1708 where argument to call to gfc_conv_loop_setup.
kono
parents:
diff changeset
1709 (gfc_conv_intrinsic_count): Likewise.
kono
parents:
diff changeset
1710 (gfc_conv_intrinsic_arith): Likewise.
kono
parents:
diff changeset
1711 (gfc_conv_intrinsic_dot_product): Likewise.
kono
parents:
diff changeset
1712 (gfc_conv_intrinsic_minmaxloc): Likewise.
kono
parents:
diff changeset
1713 (gfc_conv_intrinsic_minmaxval): Likewise.
kono
parents:
diff changeset
1714 (gfc_conv_intrinsic_array_transfer): Warn about
kono
parents:
diff changeset
1715 creation of temporary array.
kono
parents:
diff changeset
1716 Add where argument to call to gfc_trans_create_temp_array.
kono
parents:
diff changeset
1717 * options.c (gfc_init_options): Initialize gfc_option.warn_array_temp.
kono
parents:
diff changeset
1718 (gfc_handle_option): Set gfc_option.warn_array_temp.
kono
parents:
diff changeset
1719
kono
parents:
diff changeset
1720 2008-07-23 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
kono
parents:
diff changeset
1721
kono
parents:
diff changeset
1722 PR 35058
kono
parents:
diff changeset
1723 * f95-lang.c (gfc_mark_addressable): All calls to pedwarn changed.
kono
parents:
diff changeset
1724
kono
parents:
diff changeset
1725 2008-07-22 Daniel Kraft <d@domob.eu>
kono
parents:
diff changeset
1726
kono
parents:
diff changeset
1727 PR fortran/29835
kono
parents:
diff changeset
1728 * io.c (error_element), (format_locus): New static globals.
kono
parents:
diff changeset
1729 (unexpected_element): Spelled out this message fully.
kono
parents:
diff changeset
1730 (next_char): Keep track of locus when not MODE_STRING.
kono
parents:
diff changeset
1731 (next_char_not_space): Remember last parsed element in error_element.
kono
parents:
diff changeset
1732 (format_lex): Fix two indentation errors.
kono
parents:
diff changeset
1733 (check_format): Use format_locus and possibly error_element for a
kono
parents:
diff changeset
1734 slightly better error message on invalid format.
kono
parents:
diff changeset
1735 (check_format_string): Set format_locus to start of the string
kono
parents:
diff changeset
1736 expression used as format.
kono
parents:
diff changeset
1737
kono
parents:
diff changeset
1738 2008-07-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
kono
parents:
diff changeset
1739
kono
parents:
diff changeset
1740 * expr.c (gfc_check_pointer_assign): Fix typo in string.
kono
parents:
diff changeset
1741 * io.c (check_format): Fix typo in string. Fix comment typos.
kono
parents:
diff changeset
1742 * parse.c (gfc_global_used): Likewise.
kono
parents:
diff changeset
1743 * resolve.c (resolve_allocate_expr): Likewise.
kono
parents:
diff changeset
1744 * symbol.c (gfc_set_default_type): Likewise.
kono
parents:
diff changeset
1745 * arith.c: Fix typos in comments.
kono
parents:
diff changeset
1746 * array.c: Likewise.
kono
parents:
diff changeset
1747 * data.c: Likewise.
kono
parents:
diff changeset
1748 * decl.c: Likewise.
kono
parents:
diff changeset
1749 * dependency.c: Likewise.
kono
parents:
diff changeset
1750 * f95-lang.c: Likewise.
kono
parents:
diff changeset
1751 * gfortran.h: Likewise.
kono
parents:
diff changeset
1752 * matchexp.c: Likewise.
kono
parents:
diff changeset
1753 * module.c: Likewise.
kono
parents:
diff changeset
1754 * primary.c: Likewise.
kono
parents:
diff changeset
1755 * scanner.c: Likewise.
kono
parents:
diff changeset
1756 * trans-array.c: Likewise.
kono
parents:
diff changeset
1757 * trans-common.c: Likewise.
kono
parents:
diff changeset
1758 * trans-decl.c: Likewise.
kono
parents:
diff changeset
1759 * trans-expr.c: Likewise.
kono
parents:
diff changeset
1760 * trans-intrinsic.c: Likewise.
kono
parents:
diff changeset
1761 * trans-types.c: Likewise.
kono
parents:
diff changeset
1762 * trans.c: Likewise.
kono
parents:
diff changeset
1763 * trans.h: Likewise.
kono
parents:
diff changeset
1764
kono
parents:
diff changeset
1765 2008-07-19 Tobias Burnus <burnus@net-b.de>
kono
parents:
diff changeset
1766
kono
parents:
diff changeset
1767 PR fortran/36795
kono
parents:
diff changeset
1768 * matchexp.c (gfc_get_parentheses): Remove obsolete workaround,
kono
parents:
diff changeset
1769 which caused the generation of wrong code.
kono
parents:
diff changeset
1770
kono
parents:
diff changeset
1771 2008-07-19 Tobias Burnus <burnus@net-b.de>
kono
parents:
diff changeset
1772
kono
parents:
diff changeset
1773 PR fortran/36342
kono
parents:
diff changeset
1774 * scanner.c (load_file): Add argument to destinguish between
kono
parents:
diff changeset
1775 true filename and displayed filename.
kono
parents:
diff changeset
1776 (include_line,gfc_new_file): Adapt accordingly.
kono
parents:
diff changeset
1777
kono
parents:
diff changeset
1778 2008-07-19 Tobias Burnus <burnus@net-b.de>
kono
parents:
diff changeset
1779
kono
parents:
diff changeset
1780 * check.c (gfc_check_cshift,gfc_check_eoshift,gfc_check_unpack): Add rank
kono
parents:
diff changeset
1781 checks for cshift's shift and eoshift's shift and boundary args.
kono
parents:
diff changeset
1782 (gfc_check_unpack): Add rank and shape tests for unpack.
kono
parents:
diff changeset
1783
kono
parents:
diff changeset
1784 2008-07-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
kono
parents:
diff changeset
1785
kono
parents:
diff changeset
1786 * gfortran.h (new): Remove macro.
kono
parents:
diff changeset
1787 * array.c (gfc_append_constructor, match_array_list,
kono
parents:
diff changeset
1788 gfc_match_array_constructor): Likewise.
kono
parents:
diff changeset
1789 * bbt.c (insert, gfc_insert_bbt): Likewise.
kono
parents:
diff changeset
1790 * decl.c (var_element, top_var_list, top_val_list, gfc_match_data,
kono
parents:
diff changeset
1791 get_proc_name): Likewise.
kono
parents:
diff changeset
1792 * expr.c (gfc_copy_actual_arglist): Likewise.
kono
parents:
diff changeset
1793 * interface.c (compare_actual_formal, check_new_interface,
kono
parents:
diff changeset
1794 gfc_add_interface): Likewise.
kono
parents:
diff changeset
1795 * intrinsic.c gfc_convert_type_warn, gfc_convert_chartype):
kono
parents:
diff changeset
1796 Likewise.
kono
parents:
diff changeset
1797 * io.c (match_io_iterator, match_io_list): Likewise.
kono
parents:
diff changeset
1798 * match.c (match_forall_header): Likewise.
kono
parents:
diff changeset
1799 * matchexp.c (build_node): Likewise.
kono
parents:
diff changeset
1800 * module.c (gfc_match_use): Likewise.
kono
parents:
diff changeset
1801 * scanner.c (load_file): Likewise.
kono
parents:
diff changeset
1802 * st.c (gfc_append_code): Likewise.
kono
parents:
diff changeset
1803 * symbol.c (save_symbol_data, gfc_get_sym_tree, gfc_undo_symbols,
kono
parents:
diff changeset
1804 gfc_commit_symbols): Likewise.
kono
parents:
diff changeset
1805 * trans-common.c (build_field): Likewise.
kono
parents:
diff changeset
1806 * trans-decl.c (gfc_finish_var_decl): Likewise.
kono
parents:
diff changeset
1807 * trans-expr.c (gfc_free_interface_mapping,
kono
parents:
diff changeset
1808 gfc_get_interface_mapping_charlen, gfc_add_interface_mapping,
kono
parents:
diff changeset
1809 gfc_finish_interface_mapping,
kono
parents:
diff changeset
1810 gfc_apply_interface_mapping_to_expr): Likewise.
kono
parents:
diff changeset
1811 * trans.h (gfc_interface_sym_mapping): Likewise.
kono
parents:
diff changeset
1812
kono
parents:
diff changeset
1813 2008-07-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
kono
parents:
diff changeset
1814
kono
parents:
diff changeset
1815 * gfortran.h (operator): Remove macro.
kono
parents:
diff changeset
1816 (gfc_namespace, gfc_expr): Avoid C++ keywords.
kono
parents:
diff changeset
1817 * arith.c (eval_intrinsic, eval_intrinsic_f2, eval_intrinsic_f3):
kono
parents:
diff changeset
1818 Likewise.
kono
parents:
diff changeset
1819 * decl.c (access_attr_decl): Likewise.
kono
parents:
diff changeset
1820 * dependency.c (gfc_dep_compare_expr): Likewise.
kono
parents:
diff changeset
1821 * dump-parse-tree.c (show_expr, show_uop, show_namespace):
kono
parents:
diff changeset
1822 Likewise.
kono
parents:
diff changeset
1823 * expr.c (gfc_copy_expr, gfc_type_convert_binary,
kono
parents:
diff changeset
1824 simplify_intrinsic_op, check_intrinsic_op): Likewise.
kono
parents:
diff changeset
1825 * interface.c (fold_unary, gfc_match_generic_spec,
kono
parents:
diff changeset
1826 gfc_match_interface, gfc_match_end_interface,
kono
parents:
diff changeset
1827 check_operator_interface, check_uop_interfaces,
kono
parents:
diff changeset
1828 gfc_check_interfaces, gfc_extend_expr, gfc_extend_assign,
kono
parents:
diff changeset
1829 gfc_add_interface, gfc_current_interface_head,
kono
parents:
diff changeset
1830 gfc_set_current_interface_head): Likewise.
kono
parents:
diff changeset
1831 * iresolve.c (gfc_resolve_dot_product, gfc_resolve_matmul):
kono
parents:
diff changeset
1832 Likewise.
kono
parents:
diff changeset
1833 * matchexp.c (gfc_get_parentheses, build_node): Likewise.
kono
parents:
diff changeset
1834 * module.c (gfc_use_rename, gfc_match_use, find_use_name_n,
kono
parents:
diff changeset
1835 number_use_names, mio_expr, load_operator_interfaces, read_module,
kono
parents:
diff changeset
1836 write_operator, write_module): Likewise.
kono
parents:
diff changeset
1837 * openmp.c (resolve_omp_atomic): Likewise.
kono
parents:
diff changeset
1838 * resolve.c (resolve_operator, gfc_resolve_character_operator,
kono
parents:
diff changeset
1839 gfc_resolve_uops): Likewise.
kono
parents:
diff changeset
1840 * symbol.c (free_uop_tree, gfc_free_namespace): Likewise.
kono
parents:
diff changeset
1841 * trans-expr.c (gfc_conv_expr_op): Likewise.
kono
parents:
diff changeset
1842 * trans-openmp.c (gfc_trans_omp_atomic): Likewise.
kono
parents:
diff changeset
1843
kono
parents:
diff changeset
1844 2008-07-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
kono
parents:
diff changeset
1845
kono
parents:
diff changeset
1846 * gfortran.h (protected): Remove macro.
kono
parents:
diff changeset
1847 * dump-parse-tree.c (show_attr): Avoid C++ keywords.
kono
parents:
diff changeset
1848 * expr.c (gfc_check_pointer_assign): Likewise.
kono
parents:
diff changeset
1849 * interface.c (compare_parameter_protected): Likewise.
kono
parents:
diff changeset
1850 * intrinsic.c (enum class, add_sym, add_sym_0, add_sym_1,
kono
parents:
diff changeset
1851 add_sym_1s, add_sym_1m, add_sym_2, add_sym_2s, add_sym_3,
kono
parents:
diff changeset
1852 add_sym_3ml, add_sym_3red, add_sym_3s, add_sym_4, add_sym_4s,
kono
parents:
diff changeset
1853 add_sym_5s): Likewise.
kono
parents:
diff changeset
1854 * match.c (gfc_match_assignment, gfc_match_pointer_assignment):
kono
parents:
diff changeset
1855 Likewise.
kono
parents:
diff changeset
1856 * module.c (mio_symbol_attribute): Likewise.
kono
parents:
diff changeset
1857 * primary.c (match_variable): Likewise.
kono
parents:
diff changeset
1858 * resolve.c (resolve_equivalence): Likewise.
kono
parents:
diff changeset
1859 * symbol.c (check_conflict, gfc_add_protected, gfc_copy_attr):
kono
parents:
diff changeset
1860 Likewise.
kono
parents:
diff changeset
1861 * trans-types.c (gfc_get_array_type_bounds): Likewise.
kono
parents:
diff changeset
1862
kono
parents:
diff changeset
1863 2008-07-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
kono
parents:
diff changeset
1864
kono
parents:
diff changeset
1865 * arith.c (eval_type_intrinsic0): Avoid C++ keywords.
kono
parents:
diff changeset
1866 * gfortran.h (try, protected, operator, new): Likewise.
kono
parents:
diff changeset
1867
kono
parents:
diff changeset
1868 2008-07-17 Tobias Burnus <burnus@net-b.de>
kono
parents:
diff changeset
1869
kono
parents:
diff changeset
1870 PR fortran/36825
kono
parents:
diff changeset
1871 PR fortran/36824
kono
parents:
diff changeset
1872 * array.c (gfc_match_array_spec): Fix array-rank check.
kono
parents:
diff changeset
1873 * resolve.c (resolve_fl_derived): Fix constentness check
kono
parents:
diff changeset
1874 for the array dimensions.
kono
parents:
diff changeset
1875
kono
parents:
diff changeset
1876 2008-07-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
kono
parents:
diff changeset
1877
kono
parents:
diff changeset
1878 * Make-lang.in (gfortranspec.o): Fix dependencies.
kono
parents:
diff changeset
1879
kono
parents:
diff changeset
1880 2008-07-13 Jerry DeLisle <jvdelisle@gcc.gnu.org>
kono
parents:
diff changeset
1881
kono
parents:
diff changeset
1882 PR fortran/36725
kono
parents:
diff changeset
1883 * io.c: Add error check for g0 edit descriptor followed by '.'.
kono
parents:
diff changeset
1884
kono
parents:
diff changeset
1885 2008-07-12 Daniel Kraft <d@domob.eu>
kono
parents:
diff changeset
1886
kono
parents:
diff changeset
1887 * resolve.c (resolve_fl_derived): Allow pointer components to empty
kono
parents:
diff changeset
1888 derived types fixing a missing part of PR fortran/33221.
kono
parents:
diff changeset
1889
kono
parents:
diff changeset
1890 2008-07-10 Daniel Kraft <d@domob.eu>
kono
parents:
diff changeset
1891
kono
parents:
diff changeset
1892 * gfc-internals.texi (section gfc_expr): Created documentation about
kono
parents:
diff changeset
1893 the gfc_expr internal data structure.
kono
parents:
diff changeset
1894
kono
parents:
diff changeset
1895 2008-07-07 Thomas Koenig <tkoenig@gcc.gnu.org>
kono
parents:
diff changeset
1896
kono
parents:
diff changeset
1897 PR fortran/36670
kono
parents:
diff changeset
1898 * iresolve.c (gfc_resolve_product): Set shape of return
kono
parents:
diff changeset
1899 value from array.
kono
parents:
diff changeset
1900 (gfc_resolve_sum): Likewise.
kono
parents:
diff changeset
1901
kono
parents:
diff changeset
1902 2008-07-07 Jakub Jelinek <jakub@redhat.com>
kono
parents:
diff changeset
1903
kono
parents:
diff changeset
1904 PR middle-end/36726
kono
parents:
diff changeset
1905 * f95-lang.c (poplevel): Don't ever add subblocks to
kono
parents:
diff changeset
1906 global_binding_level.
kono
parents:
diff changeset
1907
kono
parents:
diff changeset
1908 2008-07-02 Janus Weil <janus@gcc.gnu.org>
kono
parents:
diff changeset
1909 Tobias Burnus <burnus@net-b.de>
kono
parents:
diff changeset
1910 Paul Thomas <pault@gcc.gnu.org>
kono
parents:
diff changeset
1911
kono
parents:
diff changeset
1912 PR fortran/32580
kono
parents:
diff changeset
1913 * gfortran.h (struct gfc_symbol): New member "proc_pointer".
kono
parents:
diff changeset
1914 * check.c (gfc_check_associated,gfc_check_null): Implement
kono
parents:
diff changeset
1915 procedure pointers.
kono
parents:
diff changeset
1916 * decl.c (match_procedure_decl): Ditto.
kono
parents:
diff changeset
1917 * expr.c (gfc_check_pointer_assign,gfc_check_assign_symbol): Ditto.
kono
parents:
diff changeset
1918 * interface.c (compare_actual_formal): Ditto.
kono
parents:
diff changeset
1919 * match.h: Ditto.
kono
parents:
diff changeset
1920 * match.c (gfc_match_pointer_assignment): Ditto.
kono
parents:
diff changeset
1921 * parse.c (parse_interface): Ditto.
kono
parents:
diff changeset
1922 * primary.c (gfc_match_rvalue,match_variable): Ditto.
kono
parents:
diff changeset
1923 * resolve.c (resolve_fl_procedure): Ditto.
kono
parents:
diff changeset
1924 * symbol.c (check_conflict,gfc_add_external,gfc_add_pointer,
kono
parents:
diff changeset
1925 gfc_copy_attr,gen_fptr_param,build_formal_args): Ditto.
kono
parents:
diff changeset
1926 * trans-decl.c (get_proc_pointer_decl,gfc_get_extern_function_decl,
kono
parents:
diff changeset
1927 create_function_arglist): Ditto.
kono
parents:
diff changeset
1928 * trans-expr.c (gfc_conv_variable,gfc_conv_function_val,
kono
parents:
diff changeset
1929 gfc_conv_function_call,gfc_trans_pointer_assignment): Ditto.
kono
parents:
diff changeset
1930
kono
parents:
diff changeset
1931 2008-07-02 Thomas Koenig <tkoenig@gcc.gnu.org>
kono
parents:
diff changeset
1932
kono
parents:
diff changeset
1933 PR fortran/36590
kono
parents:
diff changeset
1934 PR fortran/36681
kono
parents:
diff changeset
1935 * iresolve.c (resolve_mask_arg): Don't convert mask to
kono
parents:
diff changeset
1936 kind=1 logical if it is of that type already.
kono
parents:
diff changeset
1937
kono
parents:
diff changeset
1938 2008-06-29 Thomas Koenig <tkoenig@gcc.gnu.org>
kono
parents:
diff changeset
1939
kono
parents:
diff changeset
1940 PR fortran/36341
kono
parents:
diff changeset
1941 * iresolve.c (gfc_resolve_matmul): Copy shapes
kono
parents:
diff changeset
1942 from arguments.
kono
parents:
diff changeset
1943
kono
parents:
diff changeset
1944 2008-06-29 Jerry DeLisle <jvdelisle@gcc.gnu.org>
kono
parents:
diff changeset
1945
kono
parents:
diff changeset
1946 * invoke.texi: Add documentation for runtime behavior of
kono
parents:
diff changeset
1947 -fno-range-check.
kono
parents:
diff changeset
1948
kono
parents:
diff changeset
1949 2008-06-28 Daniel Kraft <d@domob.eu>
kono
parents:
diff changeset
1950
kono
parents:
diff changeset
1951 * gfc-internals.texi (section gfc_code): Extended documentation about
kono
parents:
diff changeset
1952 gfc_code in the internal datastructures chapter including details about
kono
parents:
diff changeset
1953 how IF, DO and SELECT blocks look like and an example for how the
kono
parents:
diff changeset
1954 block-chaining works.
kono
parents:
diff changeset
1955
kono
parents:
diff changeset
1956 2008-06-25 Paul Thomas <pault@gcc.gnu.org>
kono
parents:
diff changeset
1957
kono
parents:
diff changeset
1958 PR fortran/36526
kono
parents:
diff changeset
1959 * interface.c (check_intents): Correct error where the actual
kono
parents:
diff changeset
1960 arg was checked for a pointer argument, rather than the formal.
kono
parents:
diff changeset
1961
kono
parents:
diff changeset
1962 2008-06-24 Paul Thomas <pault@gcc.gnu.org>
kono
parents:
diff changeset
1963
kono
parents:
diff changeset
1964 PR fortran/34371
kono
parents:
diff changeset
1965 * expr.c (gfc_check_assign): Change message and locus for
kono
parents:
diff changeset
1966 error when conform == 0.
kono
parents:
diff changeset
1967
kono
parents:
diff changeset
1968 2008-06-23 Jakub Jelinek <jakub@redhat.com>
kono
parents:
diff changeset
1969
kono
parents:
diff changeset
1970 PR fortran/36597
kono
parents:
diff changeset
1971 * cpp.c (cpp_define_builtins): Change _OPENMP value to 200805.
kono
parents:
diff changeset
1972
kono
parents:
diff changeset
1973 2008-06-20 Laurynas Biveinis <laurynas.biveinis@gmail.com>
kono
parents:
diff changeset
1974 Tobias Burnus <burnus@net-b.de>
kono
parents:
diff changeset
1975
kono
parents:
diff changeset
1976 PR fortran/34908
kono
parents:
diff changeset
1977 PR fortran/36276
kono
parents:
diff changeset
1978 * scanner.c (preprocessor_line): do not call gfc_free for
kono
parents:
diff changeset
1979 current_file->filename if it differs from filename.
kono
parents:
diff changeset
1980
kono
parents:
diff changeset
1981 2008-06-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
kono
parents:
diff changeset
1982
kono
parents:
diff changeset
1983 * arith.c (hollerith2representation): Fix for -Wc++-compat.
kono
parents:
diff changeset
1984 * array.c (gfc_get_constructor): Likewise.
kono
parents:
diff changeset
1985 * decl.c (gfc_get_data_variable, gfc_get_data_value, gfc_get_data,
kono
parents:
diff changeset
1986 create_enum_history, gfc_match_final_decl): Likewise.
kono
parents:
diff changeset
1987 * error.c (error_char): Likewise.
kono
parents:
diff changeset
1988 * expr.c (gfc_get_expr, gfc_copy_expr): Likewise.
kono
parents:
diff changeset
1989 * gfortran.h (gfc_get_charlen, gfc_get_array_spec,
kono
parents:
diff changeset
1990 gfc_get_component, gfc_get_formal_arglist, gfc_get_actual_arglist,
kono
parents:
diff changeset
1991 gfc_get_namelist, gfc_get_omp_clauses, gfc_get_interface,
kono
parents:
diff changeset
1992 gfc_get_common_head, gfc_get_dt_list, gfc_get_array_ref,
kono
parents:
diff changeset
1993 gfc_get_ref, gfc_get_equiv, gfc_get_case, gfc_get_iterator,
kono
parents:
diff changeset
1994 gfc_get_alloc, gfc_get_wide_string): Likewise.
kono
parents:
diff changeset
1995 * interface.c (count_types_test): Likewise.
kono
parents:
diff changeset
1996 * intrinsic.c (add_char_conversions, gfc_intrinsic_init_1):
kono
parents:
diff changeset
1997 Likewise.
kono
parents:
diff changeset
1998 * io.c (gfc_match_open, gfc_match_close, match_filepos, match_io,
kono
parents:
diff changeset
1999 gfc_match_inquire, gfc_match_wait): Likewise.
kono
parents:
diff changeset
2000 * match.c (gfc_match, match_forall_iterator): Likewise.
kono
parents:
diff changeset
2001 * module.c (gfc_get_pointer_info, gfc_get_use_rename, add_fixup,
kono
parents:
diff changeset
2002 add_true_name, parse_string, write_atom, quote_string,
kono
parents:
diff changeset
2003 mio_symtree_ref, mio_gmp_real, write_common_0): Likewise.
kono
parents:
diff changeset
2004 * options.c (gfc_post_options): Likewise.
kono
parents:
diff changeset
2005 * primary.c (match_integer_constant, match_hollerith_constant,
kono
parents:
diff changeset
2006 match_boz_constant, match_real_constant,
kono
parents:
diff changeset
2007 gfc_get_structure_ctor_component, gfc_match_structure_constructor): Likewise.
kono
parents:
diff changeset
2008 * scanner.c (gfc_widechar_to_char, add_path_to_list,
kono
parents:
diff changeset
2009 add_file_change, load_line, get_file, preprocessor_line,
kono
parents:
diff changeset
2010 load_file, unescape_filename, gfc_read_orig_filename): Likewise.
kono
parents:
diff changeset
2011 * simplify.c (gfc_simplify_ibits, gfc_simplify_ishft,
kono
parents:
diff changeset
2012 gfc_simplify_ishftc): Likewise.
kono
parents:
diff changeset
2013 * symbol.c (gfc_get_st_label, gfc_get_namespace, gfc_new_symtree,
kono
parents:
diff changeset
2014 gfc_get_uop, gfc_new_symbol, save_symbol_data, gfc_get_gsymbol):
kono
parents:
diff changeset
2015 Likewise.
kono
parents:
diff changeset
2016 * target-memory.c (gfc_target_interpret_expr): Likewise.
kono
parents:
diff changeset
2017 * trans-const.c (gfc_build_wide_string_const): Likewise.
kono
parents:
diff changeset
2018 * trans-expr.c (gfc_add_interface_mapping): Likewise.
kono
parents:
diff changeset
2019 * trans-intrinsic.c (gfc_conv_intrinsic_conversion,
kono
parents:
diff changeset
2020 gfc_conv_intrinsic_int, gfc_conv_intrinsic_lib_function,
kono
parents:
diff changeset
2021 gfc_conv_intrinsic_cmplx, gfc_conv_intrinsic_ctime,
kono
parents:
diff changeset
2022 gfc_conv_intrinsic_fdate, gfc_conv_intrinsic_ttynam,
kono
parents:
diff changeset
2023 gfc_conv_intrinsic_minmax, gfc_conv_intrinsic_minmax_char,
kono
parents:
diff changeset
2024 gfc_conv_intrinsic_ishftc, gfc_conv_intrinsic_index_scan_verify,
kono
parents:
diff changeset
2025 gfc_conv_intrinsic_merge, gfc_conv_intrinsic_trim): Likewise.
kono
parents:
diff changeset
2026 * trans.c (gfc_get_backend_locus): Likewise.
kono
parents:
diff changeset
2027 * trans.h (gfc_get_ss): Likewise.
kono
parents:
diff changeset
2028
kono
parents:
diff changeset
2029 2008-06-18 Daniel Kraft <d@domob.eu>
kono
parents:
diff changeset
2030
kono
parents:
diff changeset
2031 PR fortran/36517, fortran/36492
kono
parents:
diff changeset
2032 * array.c (gfc_resolve_character_array_constructor): Call
kono
parents:
diff changeset
2033 gfc_set_constant_character_len with changed length-chec argument.
kono
parents:
diff changeset
2034 * decl.c (gfc_set_constant_character_len): Changed array argument to
kono
parents:
diff changeset
2035 be a generic length-checking argument that can be used for correct
kono
parents:
diff changeset
2036 checking with typespec and in special cases where the should-be length
kono
parents:
diff changeset
2037 is different from the target length.
kono
parents:
diff changeset
2038 (build_struct): Call gfc_set_constant_character_len with changed length
kono
parents:
diff changeset
2039 checking argument and introduced additional checks for exceptional
kono
parents:
diff changeset
2040 conditions on invalid code.
kono
parents:
diff changeset
2041 (add_init_expr_to_sym), (do_parm): Call gfc_set_constant_character_len
kono
parents:
diff changeset
2042 with changed argument.
kono
parents:
diff changeset
2043 * match.h (gfc_set_constant_character_len): Changed third argument to
kono
parents:
diff changeset
2044 int for the should-be length rather than bool.
kono
parents:
diff changeset
2045
kono
parents:
diff changeset
2046 2008-06-17 Daniel Kraft <d@domob.eu>
kono
parents:
diff changeset
2047
kono
parents:
diff changeset
2048 PR fortran/36112
kono
parents:
diff changeset
2049 * array.c (gfc_resolve_character_array_constructor): Check that all
kono
parents:
diff changeset
2050 elements with constant character length have the same one rather than
kono
parents:
diff changeset
2051 fixing it if no typespec is given, emit an error if they don't. Changed
kono
parents:
diff changeset
2052 return type to "try" and return FAILURE for the case above.
kono
parents:
diff changeset
2053 (gfc_resolve_array_constructor): Removed unneeded call to
kono
parents:
diff changeset
2054 gfc_resolve_character_array_constructor in this function.
kono
parents:
diff changeset
2055 * gfortran.h (gfc_resolve_character_array_constructor): Returns try.
kono
parents:
diff changeset
2056 * trans-array.c (get_array_ctor_strlen): Return length of first element
kono
parents:
diff changeset
2057 rather than last element.
kono
parents:
diff changeset
2058 * resolve.c (gfc_resolve_expr): Handle FAILURE return from
kono
parents:
diff changeset
2059 gfc_resolve_character_array_constructor.
kono
parents:
diff changeset
2060
kono
parents:
diff changeset
2061 2008-06-17 Paul Thomas <pault@gcc.gnu.org>
kono
parents:
diff changeset
2062
kono
parents:
diff changeset
2063 PR fortran/34396
kono
parents:
diff changeset
2064 * resolve.c (add_dt_to_dt_list): New function.
kono
parents:
diff changeset
2065 (resolve_fl_derived): Call new function for pointer components
kono
parents:
diff changeset
2066 and when derived type resolved.
kono
parents:
diff changeset
2067
kono
parents:
diff changeset
2068 2008-06-15 Jerry DeLisle <jvdelisle@gcc.gnu.org>
kono
parents:
diff changeset
2069
kono
parents:
diff changeset
2070 PR fortran/36515
kono
parents:
diff changeset
2071 * trans-decl.c (gfc_generate_function_code): Add range_check to options
kono
parents:
diff changeset
2072 array.
kono
parents:
diff changeset
2073
kono
parents:
diff changeset
2074 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
kono
parents:
diff changeset
2075
kono
parents:
diff changeset
2076 * gfc-internals.texi: Expand TABs, drop indentation outside examples.
kono
parents:
diff changeset
2077 * gfortran.texi: Likewise.
kono
parents:
diff changeset
2078 * intrinsic.texi: Likewise.
kono
parents:
diff changeset
2079 * invoke.texi: Likewise.
kono
parents:
diff changeset
2080
kono
parents:
diff changeset
2081 2008-06-13 Jerry DeLisle <jvdelisle@gcc.gnu.org>
kono
parents:
diff changeset
2082
kono
parents:
diff changeset
2083 PR fortran/35863
kono
parents:
diff changeset
2084 * trans-io.c (gfc_build_io_library_fndecls): Build declaration for
kono
parents:
diff changeset
2085 transfer_character_wide which includes passing in the character kind to
kono
parents:
diff changeset
2086 support wide character IO. (transfer_expr): If the kind == 4, create the
kono
parents:
diff changeset
2087 argument and build the call.
kono
parents:
diff changeset
2088 * gfortran.texi: Fix typo.
kono
parents:
diff changeset
2089
kono
parents:
diff changeset
2090 2008-06-13 Tobias Burnus <burnus@net-b.de>
kono
parents:
diff changeset
2091
kono
parents:
diff changeset
2092 PR fortran/36476
kono
parents:
diff changeset
2093 * decl.c (do_parm): Handle init expression for len=*.
kono
parents:
diff changeset
2094
kono
parents:
diff changeset
2095 2008-06-12 Tobias Burnus <burnus@net-b.de>
kono
parents:
diff changeset
2096
kono
parents:
diff changeset
2097 PR fortran/36462
kono
parents:
diff changeset
2098 * trans-intrinsic.c (gfc_conv_intrinsic_index_scan_verify):
kono
parents:
diff changeset
2099 Fix passing of the BACK= argument.
kono
parents:
diff changeset
2100
kono
parents:
diff changeset
2101 2008-06-10 Jerry DeLisle <jvdelisle@gcc.gnu.org>
kono
parents:
diff changeset
2102
kono
parents:
diff changeset
2103 * cpp.c: Add copyright notice.
kono
parents:
diff changeset
2104 * cpp.h: Add copyright notice.
kono
parents:
diff changeset
2105
kono
parents:
diff changeset
2106 2008-06-08 Janus Weil <janus@gcc.gnu.org>
kono
parents:
diff changeset
2107
kono
parents:
diff changeset
2108 PR fortran/36459
kono
parents:
diff changeset
2109 * decl.c (match_procedure_decl): Correctly recognize if the interface
kono
parents:
diff changeset
2110 is an intrinsic procedure.
kono
parents:
diff changeset
2111
kono
parents:
diff changeset
2112 2008-06-08 Tobias Burnus <burnus@net-b.de>
kono
parents:
diff changeset
2113
kono
parents:
diff changeset
2114 PR fortran/35830
kono
parents:
diff changeset
2115 * resolve.c (resolve_symbol): Copy more attributes for
kono
parents:
diff changeset
2116 PROCEDUREs with interfaces.
kono
parents:
diff changeset
2117
kono
parents:
diff changeset
2118 2008-06-07 Jerry DeLisle <jvdelisle@gcc.gnu.org>
kono
parents:
diff changeset
2119
kono
parents:
diff changeset
2120 PR fortran/36420
kono
parents:
diff changeset
2121 PR fortran/36422
kono
parents:
diff changeset
2122 * io.c (check_format): Add new error message for zero width.
kono
parents:
diff changeset
2123 Use new error message for FMT_A and with READ, FMT_G. Allow
kono
parents:
diff changeset
2124 FMT_G with WRITE except when -std=F95 and -std=F2003.
kono
parents:
diff changeset
2125
kono
parents:
diff changeset
2126 2008-06-07 Tobias Burnus <burnus@net-b.de>
kono
parents:
diff changeset
2127
kono
parents:
diff changeset
2128 PR fortran/36437
kono
parents:
diff changeset
2129 * intrinsic.c (add_functions): Implement c_sizeof.
kono
parents:
diff changeset
2130 * trans-intrinsic.c (gfc_conv_intrinsic_sizeof): Do not
kono
parents:
diff changeset
2131 create unneeded variable in the scalar case.
kono
parents:
diff changeset
2132 * intrinsic.texi: Add C_SIZEOF documentation.
kono
parents:
diff changeset
2133
kono
parents:
diff changeset
2134 2008-06-06 Tobias Burnus <burnus@net-b.de>
kono
parents:
diff changeset
2135
kono
parents:
diff changeset
2136 * intrinsic.texi (BESSEL_J1): Fix BES(S)EL_J1 typo.
kono
parents:
diff changeset
2137
kono
parents:
diff changeset
2138 2008-06-06 Jakub Jelinek <jakub@redhat.com>
kono
parents:
diff changeset
2139
kono
parents:
diff changeset
2140 * scanner.c (skip_free_comments, skip_fixed_comments): Handle tabs.
kono
parents:
diff changeset
2141 * parse.c (next_free): Allow tab after !$omp.
kono
parents:
diff changeset
2142 (decode_omp_directive): Handle !$omp task, !$omp taskwait
kono
parents:
diff changeset
2143 and !$omp end task.
kono
parents:
diff changeset
2144 (case_executable): Add ST_OMP_TASKWAIT.
kono
parents:
diff changeset
2145 (case_exec_markers): Add ST_OMP_TASK.
kono
parents:
diff changeset
2146 (gfc_ascii_statement): Handle ST_OMP_TASK, ST_OMP_END_TASK and
kono
parents:
diff changeset
2147 ST_OMP_TASKWAIT.
kono
parents:
diff changeset
2148 (parse_omp_structured_block, parse_executable): Handle ST_OMP_TASK.
kono
parents:
diff changeset
2149 * gfortran.h (gfc_find_sym_in_expr): New prototype.
kono
parents:
diff changeset
2150 (gfc_statement): Add ST_OMP_TASK, ST_OMP_END_TASK and ST_OMP_TASKWAIT.
kono
parents:
diff changeset
2151 (gfc_omp_clauses): Add OMP_SCHED_AUTO to sched_kind,
kono
parents:
diff changeset
2152 OMP_DEFAULT_FIRSTPRIVATE to default_sharing. Add collapse and
kono
parents:
diff changeset
2153 untied fields.
kono
parents:
diff changeset
2154 (gfc_exec_op): Add EXEC_OMP_TASK and EXEC_OMP_TASKWAIT.
kono
parents:
diff changeset
2155 * f95-lang.c (LANG_HOOKS_OMP_CLAUSE_COPY_CTOR,
kono
parents:
diff changeset
2156 LANG_HOOKS_OMP_CLAUSE_ASSIGN_OP, LANG_HOOKS_OMP_CLAUSE_DTOR,
kono
parents:
diff changeset
2157 LANG_HOOKS_OMP_PRIVATE_OUTER_REF): Define.
kono
parents:
diff changeset
2158 * trans.h (gfc_omp_clause_default_ctor): Add another argument.
kono
parents:
diff changeset
2159 (gfc_omp_clause_copy_ctor, gfc_omp_clause_assign_op,
kono
parents:
diff changeset
2160 gfc_omp_clause_dtor, gfc_omp_private_outer_ref): New prototypes.
kono
parents:
diff changeset
2161 * types.def (BT_ULONGLONG, BT_PTR_ULONGLONG,
kono
parents:
diff changeset
2162 BT_FN_BOOL_ULONGLONGPTR_ULONGLONGPTR,
kono
parents:
diff changeset
2163 BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULLPTR_ULLPTR,
kono
parents:
diff changeset
2164 BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULL_ULLPTR_ULLPTR,
kono
parents:
diff changeset
2165 BT_FN_VOID_PTR_PTR, BT_PTR_FN_VOID_PTR_PTR,
kono
parents:
diff changeset
2166 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT): New.
kono
parents:
diff changeset
2167 (BT_BOOL): Use integer type with BOOL_TYPE_SIZE rather
kono
parents:
diff changeset
2168 than boolean_type_node.
kono
parents:
diff changeset
2169 * dump-parse-tree.c (gfc_show_omp_node): Handle EXEC_OMP_TASK,
kono
parents:
diff changeset
2170 EXEC_OMP_TASKWAIT, OMP_SCHED_AUTO, OMP_DEFAULT_FIRSTPRIVATE,
kono
parents:
diff changeset
2171 untied and collapse clauses.
kono
parents:
diff changeset
2172 (gfc_show_code_node): Handle EXEC_OMP_TASK and EXEC_OMP_TASKWAIT.
kono
parents:
diff changeset
2173 * trans.c (gfc_trans_code): Handle EXEC_OMP_TASK and
kono
parents:
diff changeset
2174 EXEC_OMP_TASKWAIT.
kono
parents:
diff changeset
2175 * st.c (gfc_free_statement): Likewise.
kono
parents:
diff changeset
2176 * resolve.c (gfc_resolve_blocks, resolve_code): Likewise.
kono
parents:
diff changeset
2177 (find_sym_in_expr): Rename to...
kono
parents:
diff changeset
2178 (gfc_find_sym_in_expr): ... this. No longer static.
kono
parents:
diff changeset
2179 (resolve_allocate_expr, resolve_ordinary_assign): Adjust caller.
kono
parents:
diff changeset
2180 * match.h (gfc_match_omp_task, gfc_match_omp_taskwait): New
kono
parents:
diff changeset
2181 prototypes.
kono
parents:
diff changeset
2182 * openmp.c (resolve_omp_clauses): Allow allocatable arrays in
kono
parents:
diff changeset
2183 firstprivate, lastprivate, reduction, copyprivate and copyin
kono
parents:
diff changeset
2184 clauses.
kono
parents:
diff changeset
2185 (omp_current_do_code): Made static.
kono
parents:
diff changeset
2186 (omp_current_do_collapse): New variable.
kono
parents:
diff changeset
2187 (gfc_resolve_omp_do_blocks): Compute omp_current_do_collapse,
kono
parents:
diff changeset
2188 clear omp_current_do_code and omp_current_do_collapse on return.
kono
parents:
diff changeset
2189 (gfc_resolve_do_iterator): Handle collapsed do loops.
kono
parents:
diff changeset
2190 (resolve_omp_do): Likewise, diagnose errorneous collapsed do loops.
kono
parents:
diff changeset
2191 (OMP_CLAUSE_COLLAPSE, OMP_CLAUSE_UNTIED): Define.
kono
parents:
diff changeset
2192 (gfc_match_omp_clauses): Handle default (firstprivate),
kono
parents:
diff changeset
2193 schedule (auto), untied and collapse (n) clauses.
kono
parents:
diff changeset
2194 (OMP_DO_CLAUSES): Add OMP_CLAUSE_COLLAPSE.
kono
parents:
diff changeset
2195 (OMP_TASK_CLAUSES): Define.
kono
parents:
diff changeset
2196 (gfc_match_omp_task, gfc_match_omp_taskwait): New functions.
kono
parents:
diff changeset
2197 * trans-openmp.c (gfc_omp_private_outer_ref): New function.
kono
parents:
diff changeset
2198 (gfc_omp_clause_default_ctor): Add outer argument. For allocatable
kono
parents:
diff changeset
2199 arrays allocate them with the bounds of the outer var if outer
kono
parents:
diff changeset
2200 var is allocated.
kono
parents:
diff changeset
2201 (gfc_omp_clause_copy_ctor, gfc_omp_clause_assign_op,
kono
parents:
diff changeset
2202 gfc_omp_clause_dtor): New functions.
kono
parents:
diff changeset
2203 (gfc_trans_omp_array_reduction): If decl is allocatable array,
kono
parents:
diff changeset
2204 allocate it with outer var's bounds in OMP_CLAUSE_REDUCTION_INIT
kono
parents:
diff changeset
2205 and deallocate it in OMP_CLAUSE_REDUCTION_MERGE.
kono
parents:
diff changeset
2206 (gfc_omp_predetermined_sharing): Return OMP_CLAUSE_DEFAULT_SHARED
kono
parents:
diff changeset
2207 for assumed-size arrays.
kono
parents:
diff changeset
2208 (gfc_trans_omp_do): Add par_clauses argument. If dovar is
kono
parents:
diff changeset
2209 present in lastprivate clause and do loop isn't simple,
kono
parents:
diff changeset
2210 set OMP_CLAUSE_LASTPRIVATE_STMT. If dovar is present in
kono
parents:
diff changeset
2211 parallel's lastprivate clause, change it to shared and add
kono
parents:
diff changeset
2212 lastprivate clause to OMP_FOR_CLAUSES. Handle collapsed do loops.
kono
parents:
diff changeset
2213 (gfc_trans_omp_directive): Adjust gfc_trans_omp_do callers.
kono
parents:
diff changeset
2214 (gfc_trans_omp_parallel_do): Likewise. Move collapse clause to
kono
parents:
diff changeset
2215 OMP_FOR from OMP_PARALLEL.
kono
parents:
diff changeset
2216 (gfc_trans_omp_clauses): Handle OMP_SCHED_AUTO,
kono
parents:
diff changeset
2217 OMP_DEFAULT_FIRSTPRIVATE, untied and collapse clauses.
kono
parents:
diff changeset
2218 (gfc_trans_omp_task, gfc_trans_omp_taskwait): New functions.
kono
parents:
diff changeset
2219 (gfc_trans_omp_directive): Handle EXEC_OMP_TASK and
kono
parents:
diff changeset
2220 EXEC_OMP_TASKWAIT.
kono
parents:
diff changeset
2221
kono
parents:
diff changeset
2222 2008-06-04 Janus Weil <janus@gcc.gnu.org>
kono
parents:
diff changeset
2223
kono
parents:
diff changeset
2224 PR fortran/36322
kono
parents:
diff changeset
2225 PR fortran/36275
kono
parents:
diff changeset
2226 * resolve.c (resolve_symbol): Correctly copy the interface for a
kono
parents:
diff changeset
2227 PROCEDURE declaration.
kono
parents:
diff changeset
2228
kono
parents:
diff changeset
2229 2008-06-02 Janus Weil <janus@gcc.gnu.org>
kono
parents:
diff changeset
2230
kono
parents:
diff changeset
2231 PR fortran/36361
kono
parents:
diff changeset
2232 * symbol.c (gfc_add_allocatable,gfc_add_dimension,
kono
parents:
diff changeset
2233 gfc_add_explicit_interface): Added checks.
kono
parents:
diff changeset
2234 * decl.c (attr_decl1): Added missing "var_locus".
kono
parents:
diff changeset
2235 * parse.c (parse_interface): Checking for errors.
kono
parents:
diff changeset
2236
kono
parents:
diff changeset
2237 2008-06-02 Daniel Kraft <d@domob.eu>
kono
parents:
diff changeset
2238
kono
parents:
diff changeset
2239 * gfortran.h: New statement-type ST_FINAL for FINAL declarations.
kono
parents:
diff changeset
2240 (struct gfc_symbol): New member f2k_derived.
kono
parents:
diff changeset
2241 (struct gfc_namespace): New member finalizers, for use in the above
kono
parents:
diff changeset
2242 mentioned f2k_derived namespace.
kono
parents:
diff changeset
2243 (struct gfc_finalizer): New type defined for finalizers linked list.
kono
parents:
diff changeset
2244 * match.h (gfc_match_final_decl): New function header.
kono
parents:
diff changeset
2245 * decl.c (gfc_match_derived_decl): Create f2k_derived namespace on
kono
parents:
diff changeset
2246 constructed symbol node.
kono
parents:
diff changeset
2247 (gfc_match_final_decl): New function to match a FINAL declaration line.
kono
parents:
diff changeset
2248 * parse.c (decode_statement): match-call for keyword FINAL.
kono
parents:
diff changeset
2249 (parse_derived): Parse CONTAINS section and accept FINAL statements.
kono
parents:
diff changeset
2250 * resolve.c (gfc_resolve_finalizers): New function to resolve (that is
kono
parents:
diff changeset
2251 in this case, check) a list of finalizer procedures.
kono
parents:
diff changeset
2252 (resolve_fl_derived): Call gfc_resolve_finalizers here.
kono
parents:
diff changeset
2253 * symbol.c (gfc_get_namespace): Initialize new finalizers to NULL.
kono
parents:
diff changeset
2254 (gfc_free_namespace): Free finalizers list.
kono
parents:
diff changeset
2255 (gfc_new_symbol): Initialize new f2k_derived to NULL.
kono
parents:
diff changeset
2256 (gfc_free_symbol): Free f2k_derived namespace.
kono
parents:
diff changeset
2257 (gfc_free_finalizer): New function to free a single gfc_finalizer node.
kono
parents:
diff changeset
2258 (gfc_free_finalizer_list): New function to free a linked list of
kono
parents:
diff changeset
2259 gfc_finalizer nodes.
kono
parents:
diff changeset
2260
kono
parents:
diff changeset
2261 2008-06-02 Daniel Franke <franke.daniel@gmail.com>
kono
parents:
diff changeset
2262
kono
parents:
diff changeset
2263 PR fortran/36375
kono
parents:
diff changeset
2264 PR fortran/36377
kono
parents:
diff changeset
2265 * cpp.c (gfc_cpp_init): Do not initialize builtins if
kono
parents:
diff changeset
2266 processing already preprocessed input.
kono
parents:
diff changeset
2267 (gfc_cpp_preprocess): Finalize output with newline.
kono
parents:
diff changeset
2268
kono
parents:
diff changeset
2269 2008-05-31 Jerry DeLisle <jvdelisle@gcc.gnu.org>
kono
parents:
diff changeset
2270
kono
parents:
diff changeset
2271 * intrinsic.texi: Revert wrong commit.
kono
parents:
diff changeset
2272
kono
parents:
diff changeset
2273 2008-05-31 Steven G. Kargl <kargls@comcast.net>
kono
parents:
diff changeset
2274
kono
parents:
diff changeset
2275 * arith.c (gfc_arith_init_1): Remove now unused r and c variables.
kono
parents:
diff changeset
2276 Cleanup numerical inquiry function initialization.
kono
parents:
diff changeset
2277 (gfc_arith_done_1): Replace multiple mpfr_clear() invocations with
kono
parents:
diff changeset
2278 a single mpfr_clears().
kono
parents:
diff changeset
2279 (gfc_check_real_range): Re-arrange logic to eliminate multiple
kono
parents:
diff changeset
2280 unnecessary branching and assignments.
kono
parents:
diff changeset
2281 (gfc_arith_times): Use mpfr_clears() in preference to multiple
kono
parents:
diff changeset
2282 mpfr_clear().
kono
parents:
diff changeset
2283 (gfc_arith_divide): Ditto.
kono
parents:
diff changeset
2284 (complex_reciprocal): Eliminate now unused variables a, re, im.
kono
parents:
diff changeset
2285 Cleanup the mpfr abuse. Use mpfr_clears() in preference to
kono
parents:
diff changeset
2286 multiple mpfr_clear().
kono
parents:
diff changeset
2287 (complex_pow): Fix comment whitespace. Use mpfr_clears() in
kono
parents:
diff changeset
2288 preference to multiple mpfr_clear().
kono
parents:
diff changeset
2289 * simplify.c (gfc_simplify_and): Remove blank line.
kono
parents:
diff changeset
2290 (gfc_simplify_atan2): Move error checking earlier to eliminate
kono
parents:
diff changeset
2291 a now unnecessay gfc_free_expr().
kono
parents:
diff changeset
2292 (gfc_simplify_bessel_j0): Remove unnecessary gfc_set_model_kind().
kono
parents:
diff changeset
2293 (gfc_simplify_bessel_j1): Ditto.
kono
parents:
diff changeset
2294 (gfc_simplify_bessel_jn): Ditto.
kono
parents:
diff changeset
2295 (gfc_simplify_bessel_y0): Ditto.
kono
parents:
diff changeset
2296 (gfc_simplify_bessel_y1): Ditto.
kono
parents:
diff changeset
2297 (gfc_simplify_bessel_yn): Ditto.
kono
parents:
diff changeset
2298 (only_convert_cmplx_boz): Eliminate unnecessary duplicate code, and
kono
parents:
diff changeset
2299 combine nested if statement rational expressions.
kono
parents:
diff changeset
2300 (gfc_simplify_cos): Use mpfr_clears() in preference to multiple
kono
parents:
diff changeset
2301 mpfr_clear().
kono
parents:
diff changeset
2302 (gfc_simplify_exp): Ditto.
kono
parents:
diff changeset
2303 (gfc_simplify_fraction): Move gfc_set_model_kind() to after the
kono
parents:
diff changeset
2304 special case of 0. Use mpfr_clears() in preference to multiple
kono
parents:
diff changeset
2305 mpfr_clear().
kono
parents:
diff changeset
2306 (gfc_simplify_gamma): Eliminate unnecessary gfc_set_model_kind().
kono
parents:
diff changeset
2307 (gfc_simplify_lgamma): Ditto.
kono
parents:
diff changeset
2308 (gfc_simplify_log10): Ditto.
kono
parents:
diff changeset
2309 (gfc_simplify_log): Move gfc_set_model_kind () inside switch
kono
parents:
diff changeset
2310 statement. Use mpfr_clears() in preference to multiple mpfr_clear().
kono
parents:
diff changeset
2311 (gfc_simplify_mod): Eliminate now unused variables quot, iquot,
kono
parents:
diff changeset
2312 and term. Simplify the mpfr magic.
kono
parents:
diff changeset
2313 (gfc_simplify_modulo): Ditto.
kono
parents:
diff changeset
2314 (gfc_simplify_nearest): Eliminate unnecessary gfc_set_model_kind().
kono
parents:
diff changeset
2315 (gfc_simplify_scale): Use mpfr_clears() in preference to multiple
kono
parents:
diff changeset
2316 mpfr_clear().
kono
parents:
diff changeset
2317 (gfc_simplify_sin): Ditto
kono
parents:
diff changeset
2318 (gfc_simplify_sqrt): Ditto
kono
parents:
diff changeset
2319 (gfc_simplify_set_exponent): Move gfc_set_model_kind() to after the
kono
parents:
diff changeset
2320 special case of 0. Use mpfr_clears() in preference to multiple
kono
parents:
diff changeset
2321 mpfr_clear().
kono
parents:
diff changeset
2322
kono
parents:
diff changeset
2323 2008-05-29 Daniel Franke <franke.daniel@gmail.com>
kono
parents:
diff changeset
2324
kono
parents:
diff changeset
2325 PR target/36348
kono
parents:
diff changeset
2326 * Make-lang.in (F95_OBJS): Added dependency on FORTRAN_TARGET_OBJS.
kono
parents:
diff changeset
2327
kono
parents:
diff changeset
2328 2008-05-29 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
kono
parents:
diff changeset
2329
kono
parents:
diff changeset
2330 * scanner.c (load_line): Add first_char argument. Don't call ungetc.
kono
parents:
diff changeset
2331 (gfc_read_orig_filename): Adjust call to load_line. Don't call
kono
parents:
diff changeset
2332 ungetc.
kono
parents:
diff changeset
2333 (load_file): Adjust call to load_line.
kono
parents:
diff changeset
2334
kono
parents:
diff changeset
2335 2008-05-28 Janus Weil <janus@gcc.gnu.org>
kono
parents:
diff changeset
2336
kono
parents:
diff changeset
2337 PR fortran/36325
kono
parents:
diff changeset
2338 PR fortran/35830
kono
parents:
diff changeset
2339 * interface.c (gfc_procedure_use): Enable argument checking for
kono
parents:
diff changeset
2340 external procedures with explicit interface.
kono
parents:
diff changeset
2341 * symbol.c (check_conflict): Fix conflict checking for externals.
kono
parents:
diff changeset
2342 (copy_formal_args): Fix handling of arrays.
kono
parents:
diff changeset
2343 * resolve.c (resolve_specific_f0, resolve_specific_s0): Fix handling
kono
parents:
diff changeset
2344 of intrinsics.
kono
parents:
diff changeset
2345 * parse.c (parse_interface): Non-abstract INTERFACE statement implies
kono
parents:
diff changeset
2346 EXTERNAL attribute.
kono
parents:
diff changeset
2347
kono
parents:
diff changeset
2348 2008-05-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
kono
parents:
diff changeset
2349
kono
parents:
diff changeset
2350 PR fortran/36319
kono
parents:
diff changeset
2351 * intrinsic.c (gfc_convert_chartype): Don't mark conversion
kono
parents:
diff changeset
2352 function as pure.
kono
parents:
diff changeset
2353 * trans-array.c (gfc_trans_array_ctor_element): Divide element
kono
parents:
diff changeset
2354 size by the size of one character to obtain length.
kono
parents:
diff changeset
2355 * iresolve.c (gfc_resolve_cshift): Call the _char4 variant when
kono
parents:
diff changeset
2356 appropriate.
kono
parents:
diff changeset
2357 (gfc_resolve_eoshift): Likewise.
kono
parents:
diff changeset
2358 * trans-intrinsic.c (gfc_conv_intrinsic_ctime): Minor beautification.
kono
parents:
diff changeset
2359 (gfc_conv_intrinsic_fdate): Minor beautification.
kono
parents:
diff changeset
2360 (gfc_conv_intrinsic_ttynam): Minor beautification.
kono
parents:
diff changeset
2361 (gfc_conv_intrinsic_minmax_char): Allow all character kinds.
kono
parents:
diff changeset
2362 (size_of_string_in_bytes): New function.
kono
parents:
diff changeset
2363 (gfc_conv_intrinsic_size): Call size_of_string_in_bytes for
kono
parents:
diff changeset
2364 character expressions.
kono
parents:
diff changeset
2365 (gfc_conv_intrinsic_sizeof): Likewise.
kono
parents:
diff changeset
2366 (gfc_conv_intrinsic_array_transfer): Likewise.
kono
parents:
diff changeset
2367 (gfc_conv_intrinsic_trim): Allow all character kinds. Minor
kono
parents:
diff changeset
2368 beautification.
kono
parents:
diff changeset
2369 (gfc_conv_intrinsic_repeat): Fix comment typo.
kono
parents:
diff changeset
2370 * simplify.c (gfc_convert_char_constant): Take care of conversion
kono
parents:
diff changeset
2371 of array constructors.
kono
parents:
diff changeset
2372
kono
parents:
diff changeset
2373 2008-05-27 Tobias Burnus <burnus@net-b.de>
kono
parents:
diff changeset
2374
kono
parents:
diff changeset
2375 PR fortran/36316
kono
parents:
diff changeset
2376 * trans-array.c (gfc_set_loop_bounds_from_array_spec):
kono
parents:
diff changeset
2377 Add missing fold_convert.
kono
parents:
diff changeset
2378
kono
parents:
diff changeset
2379 2008-05-26 Daniel Franke <franke.daniel@gmail.com>
kono
parents:
diff changeset
2380
kono
parents:
diff changeset
2381 * fortran/cpp.c (cpp_define_builtins): Remove usage of TARGET_* macros,
kono
parents:
diff changeset
2382 added FIXME instead.
kono
parents:
diff changeset
2383
kono
parents:
diff changeset
2384 2008-05-26 Daniel Franke <franke.daniel@gmail.com>
kono
parents:
diff changeset
2385
kono
parents:
diff changeset
2386 PR fortran/18428
kono
parents:
diff changeset
2387 * lang.opt (A, C, CC, D, E, H, P, U, cpp, d, fworking-directory,
kono
parents:
diff changeset
2388 imultilib, iprefix, iquote, isysroot, isystem, nocpp, nostdinc,
kono
parents:
diff changeset
2389 o, undef, v): New options.
kono
parents:
diff changeset
2390 * options.c (gfc_init_options): Also initialize preprocessor
kono
parents:
diff changeset
2391 options.
kono
parents:
diff changeset
2392 (gfc_post_options): Also handle post-initialization of preprocessor
kono
parents:
diff changeset
2393 options.
kono
parents:
diff changeset
2394 (gfc_handle_option): Check if option is a preprocessor option.
kono
parents:
diff changeset
2395 If yes, let gfc_cpp_handle_option() handle the option.
kono
parents:
diff changeset
2396 * lang-specs.h: Reorganized to handle new options.
kono
parents:
diff changeset
2397 * scanner.c (gfc_new_file): Read temporary file instead of
kono
parents:
diff changeset
2398 input source if preprocessing is enabled.
kono
parents:
diff changeset
2399 * f95-lang.c (gfc_init): Initialize preprocessor.
kono
parents:
diff changeset
2400 (gfc_finish): Clean up preprocessor.
kono
parents:
diff changeset
2401 * cpp.c: New.
kono
parents:
diff changeset
2402 * cpp.h: New.
kono
parents:
diff changeset
2403 * Make-lang.in: Added new objects and dependencies.
kono
parents:
diff changeset
2404 * gfortran.texi: Updated section "Preprocessing and
kono
parents:
diff changeset
2405 conditional compilation".
kono
parents:
diff changeset
2406 * invoke.texi: Added new section "Preprocessing Options",
kono
parents:
diff changeset
2407 listed and documented the preprocessing options handled
kono
parents:
diff changeset
2408 by gfortran.
kono
parents:
diff changeset
2409
kono
parents:
diff changeset
2410 2008-05-25 Tobias Burnus <burnus@net-b.de>
kono
parents:
diff changeset
2411
kono
parents:
diff changeset
2412 PR fortran/32600
kono
parents:
diff changeset
2413 * trans-expr.c (gfc_conv_function_call): Remove library
kono
parents:
diff changeset
2414 call for c_f_pointer with scalar Fortran pointers and for
kono
parents:
diff changeset
2415 c_f_procpointer.
kono
parents:
diff changeset
2416
kono
parents:
diff changeset
2417 2008-05-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
kono
parents:
diff changeset
2418
kono
parents:
diff changeset
2419 PR fortran/36257
kono
parents:
diff changeset
2420 * iresolve.c (check_charlen_present): Don't force the rank to 1.
kono
parents:
diff changeset
2421
kono
parents:
diff changeset
2422 2008-05-19 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
kono
parents:
diff changeset
2423
kono
parents:
diff changeset
2424 PR fortran/36265
kono
parents:
diff changeset
2425 * trans-expr.c (gfc_conv_string_tmp): Pick the correct type for
kono
parents:
diff changeset
2426 the temporary variable.
kono
parents:
diff changeset
2427
kono
parents:
diff changeset
2428 2008-05-19 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
kono
parents:
diff changeset
2429
kono
parents:
diff changeset
2430 * simplify.c (gfc_simplify_dble, gfc_simplify_real): Initialize
kono
parents:
diff changeset
2431 result variable to avoid warnings.
kono
parents:
diff changeset
2432
kono
parents:
diff changeset
2433 2008-05-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
kono
parents:
diff changeset
2434
kono
parents:
diff changeset
2435 * intrinsic.c (char_conversions, ncharconv): New static variables.
kono
parents:
diff changeset
2436 (find_char_conv): New function.
kono
parents:
diff changeset
2437 (add_functions): Add simplification functions for ADJUSTL and
kono
parents:
diff changeset
2438 ADJUSTR. Don't check the kind of their argument. Add checking for
kono
parents:
diff changeset
2439 LGE, LLE, LGT and LLT.
kono
parents:
diff changeset
2440 (add_subroutines): Fix argument type for SLEEP. Fix argument name
kono
parents:
diff changeset
2441 for SYSTEM.
kono
parents:
diff changeset
2442 (add_char_conversions): New function.
kono
parents:
diff changeset
2443 (gfc_intrinsic_init_1): Call add_char_conversions.
kono
parents:
diff changeset
2444 (gfc_intrinsic_done_1): Free char_conversions.
kono
parents:
diff changeset
2445 (check_arglist): Use kind == 0 as a signal that we don't want
kono
parents:
diff changeset
2446 the kind value to be checked.
kono
parents:
diff changeset
2447 (do_simplify): Also simplify character functions.
kono
parents:
diff changeset
2448 (gfc_convert_chartype): New function
kono
parents:
diff changeset
2449 * trans-array.c (gfc_trans_array_ctor_element): Don't force the
kono
parents:
diff changeset
2450 use of default character type.
kono
parents:
diff changeset
2451 (gfc_trans_array_constructor_value): Likewise.
kono
parents:
diff changeset
2452 (get_array_ctor_var_strlen): Use integer kind to build an integer
kono
parents:
diff changeset
2453 instead of a character kind!
kono
parents:
diff changeset
2454 (gfc_build_constant_array_constructor): Don't force the use of
kono
parents:
diff changeset
2455 default character type.
kono
parents:
diff changeset
2456 (gfc_conv_loop_setup): Likewise.
kono
parents:
diff changeset
2457 * trans-expr.c (gfc_conv_string_tmp): Don't force the use of
kono
parents:
diff changeset
2458 default character type. Allocate enough memory for wide strings.
kono
parents:
diff changeset
2459 (gfc_conv_concat_op): Make sure operand kind are the same.
kono
parents:
diff changeset
2460 (string_to_single_character): Remove gfc_ prefix. Reindent.
kono
parents:
diff changeset
2461 Don't force the use of default character type.
kono
parents:
diff changeset
2462 (gfc_conv_scalar_char_value): Likewise.
kono
parents:
diff changeset
2463 (gfc_build_compare_string): Call string_to_single_character.
kono
parents:
diff changeset
2464 (fill_with_spaces): New function
kono
parents:
diff changeset
2465 (gfc_trans_string_copy): Add kind arguments. Use them to deal
kono
parents:
diff changeset
2466 with wide character kinds.
kono
parents:
diff changeset
2467 (gfc_conv_statement_function): Whitespace fix. Call
kono
parents:
diff changeset
2468 gfc_trans_string_copy with new kind arguments.
kono
parents:
diff changeset
2469 (gfc_conv_substring_expr): Call gfc_build_wide_string_const
kono
parents:
diff changeset
2470 instead of using gfc_widechar_to_char.
kono
parents:
diff changeset
2471 (gfc_conv_string_parameter): Don't force the use of default
kono
parents:
diff changeset
2472 character type.
kono
parents:
diff changeset
2473 (gfc_trans_scalar_assign): Pass kind args to gfc_trans_string_copy.
kono
parents:
diff changeset
2474 * intrinsic.h (gfc_check_lge_lgt_lle_llt, gfc_convert_char_constant,
kono
parents:
diff changeset
2475 gfc_resolve_adjustl, gfc_resolve_adjustr): New prototypes.
kono
parents:
diff changeset
2476 * decl.c (gfc_set_constant_character_len): Don't assert the
kono
parents:
diff changeset
2477 existence of a single character kind.
kono
parents:
diff changeset
2478 * trans-array.h (gfc_trans_string_copy): New prototype.
kono
parents:
diff changeset
2479 * gfortran.h (gfc_check_character_range, gfc_convert_chartype):
kono
parents:
diff changeset
2480 New prototypes.
kono
parents:
diff changeset
2481 * error.c (print_wide_char_into_buffer): New function lifting
kono
parents:
diff changeset
2482 code from gfc_print_wide_char. Fix order to output '\x??' instead
kono
parents:
diff changeset
2483 of 'x\??'.
kono
parents:
diff changeset
2484 (gfc_print_wide_char): Call print_wide_char_into_buffer.
kono
parents:
diff changeset
2485 (show_locus): Call print_wide_char_into_buffer with buffer local
kono
parents:
diff changeset
2486 to this function.
kono
parents:
diff changeset
2487 * trans-const.c (gfc_build_wide_string_const): New function.
kono
parents:
diff changeset
2488 (gfc_conv_string_init): Deal with wide characters strings
kono
parents:
diff changeset
2489 constructors.
kono
parents:
diff changeset
2490 (gfc_conv_constant_to_tree): Call gfc_build_wide_string_const.
kono
parents:
diff changeset
2491 * trans-stmt.c (gfc_trans_label_assign): Likewise.
kono
parents:
diff changeset
2492 (gfc_trans_character_select): Deal with wide strings.
kono
parents:
diff changeset
2493 * expr.c (gfc_check_assign): Allow conversion between character
kono
parents:
diff changeset
2494 kinds on assignment.
kono
parents:
diff changeset
2495 * trans-const.h (gfc_build_wide_string_const): New prototype.
kono
parents:
diff changeset
2496 * trans-types.c (gfc_get_character_type_len_for_eltype,
kono
parents:
diff changeset
2497 gfc_get_character_type_len): Create too variants of the old
kono
parents:
diff changeset
2498 gfc_get_character_type_len, one getting kind argument and the
kono
parents:
diff changeset
2499 other one directly taking a type tree.
kono
parents:
diff changeset
2500 * trans.h (gfor_fndecl_select_string_char4,
kono
parents:
diff changeset
2501 gfor_fndecl_convert_char1_to_char4,
kono
parents:
diff changeset
2502 gfor_fndecl_convert_char4_to_char1): New prototypes.
kono
parents:
diff changeset
2503 * trans-types.h (gfc_get_character_type_len_for_eltype): New
kono
parents:
diff changeset
2504 prototype.
kono
parents:
diff changeset
2505 * resolve.c (resolve_operator): Exit early when kind mismatches
kono
parents:
diff changeset
2506 are detected, because that makes us issue an error message later.
kono
parents:
diff changeset
2507 (validate_case_label_expr): Fix wording of error message.
kono
parents:
diff changeset
2508 * iresolve.c (gfc_resolve_adjustl, gfc_resolve_adjustr): New
kono
parents:
diff changeset
2509 functions.
kono
parents:
diff changeset
2510 (gfc_resolve_pack): Call _char4 variants of library function
kono
parents:
diff changeset
2511 when dealing with wide characters.
kono
parents:
diff changeset
2512 (gfc_resolve_reshape): Likewise.
kono
parents:
diff changeset
2513 (gfc_resolve_spread): Likewise.
kono
parents:
diff changeset
2514 (gfc_resolve_transpose): Likewise.
kono
parents:
diff changeset
2515 (gfc_resolve_unpack): Likewise.
kono
parents:
diff changeset
2516 * target-memory.c (size_character): Take character kind bit size
kono
parents:
diff changeset
2517 correctly into account (not that it changes anything for now, but
kono
parents:
diff changeset
2518 it's more generic).
kono
parents:
diff changeset
2519 (gfc_encode_character): Added gfc_ prefix. Encoding each
kono
parents:
diff changeset
2520 character of a string by calling native_encode_expr for the
kono
parents:
diff changeset
2521 corresponding unsigned integer.
kono
parents:
diff changeset
2522 (gfc_target_encode_expr): Add gfc_ prefix to encode_character.
kono
parents:
diff changeset
2523 * trans-decl.c (gfc_build_intrinsic_function_decls): Build
kono
parents:
diff changeset
2524 gfor_fndecl_select_string_char4, gfor_fndecl_convert_char1_to_char4
kono
parents:
diff changeset
2525 and gfor_fndecl_convert_char4_to_char1.
kono
parents:
diff changeset
2526 * target-memory.h (gfc_encode_character): New prototype.
kono
parents:
diff changeset
2527 * arith.c (gfc_check_character_range): New function.
kono
parents:
diff changeset
2528 (eval_intrinsic): Allow non-default character kinds.
kono
parents:
diff changeset
2529 * check.c (gfc_check_access_func): Only allow default
kono
parents:
diff changeset
2530 character kind arguments.
kono
parents:
diff changeset
2531 (gfc_check_chdir): Likewise.
kono
parents:
diff changeset
2532 (gfc_check_chdir_sub): Likewise.
kono
parents:
diff changeset
2533 (gfc_check_chmod): Likewise.
kono
parents:
diff changeset
2534 (gfc_check_chmod_sub): Likewise.
kono
parents:
diff changeset
2535 (gfc_check_lge_lgt_lle_llt): New function.
kono
parents:
diff changeset
2536 (gfc_check_link): Likewise.
kono
parents:
diff changeset
2537 (gfc_check_link_sub): Likewise.
kono
parents:
diff changeset
2538 (gfc_check_symlnk): Likewise.
kono
parents:
diff changeset
2539 (gfc_check_symlnk_sub): Likewise.
kono
parents:
diff changeset
2540 (gfc_check_rename): Likewise.
kono
parents:
diff changeset
2541 (gfc_check_rename_sub): Likewise.
kono
parents:
diff changeset
2542 (gfc_check_fgetputc_sub): Likewise.
kono
parents:
diff changeset
2543 (gfc_check_fgetput_sub): Likewise.
kono
parents:
diff changeset
2544 (gfc_check_stat): Likewise.
kono
parents:
diff changeset
2545 (gfc_check_stat_sub): Likewise.
kono
parents:
diff changeset
2546 (gfc_check_date_and_time): Likewise.
kono
parents:
diff changeset
2547 (gfc_check_ctime_sub): Likewise.
kono
parents:
diff changeset
2548 (gfc_check_fdate_sub): Likewise.
kono
parents:
diff changeset
2549 (gfc_check_gerror): Likewise.
kono
parents:
diff changeset
2550 (gfc_check_getcwd_sub): Likewise.
kono
parents:
diff changeset
2551 (gfc_check_getarg): Likewise.
kono
parents:
diff changeset
2552 (gfc_check_getlog): Likewise.
kono
parents:
diff changeset
2553 (gfc_check_hostnm): Likewise.
kono
parents:
diff changeset
2554 (gfc_check_hostnm_sub): Likewise.
kono
parents:
diff changeset
2555 (gfc_check_ttynam_sub): Likewise.
kono
parents:
diff changeset
2556 (gfc_check_perror): Likewise.
kono
parents:
diff changeset
2557 (gfc_check_unlink): Likewise.
kono
parents:
diff changeset
2558 (gfc_check_unlink_sub): Likewise.
kono
parents:
diff changeset
2559 (gfc_check_system_sub): Likewise.
kono
parents:
diff changeset
2560 * primary.c (got_delim): Perform correct character range checking
kono
parents:
diff changeset
2561 for all kinds.
kono
parents:
diff changeset
2562 * trans-intrinsic.c (gfc_conv_intrinsic_conversion): Generate
kono
parents:
diff changeset
2563 calls to library functions convert_char4_to_char1 and
kono
parents:
diff changeset
2564 convert_char1_to_char4 for character conversions.
kono
parents:
diff changeset
2565 (gfc_conv_intrinsic_char): Allow all character kings.
kono
parents:
diff changeset
2566 (gfc_conv_intrinsic_strcmp): Fix whitespace.
kono
parents:
diff changeset
2567 (gfc_conv_intrinsic_repeat): Take care of all character kinds.
kono
parents:
diff changeset
2568 * intrinsic.texi: For all GNU intrinsics accepting character
kono
parents:
diff changeset
2569 arguments, mention that they're restricted to the default kind.
kono
parents:
diff changeset
2570 * simplify.c (simplify_achar_char): New function.
kono
parents:
diff changeset
2571 (gfc_simplify_achar, gfc_simplify_char): Call simplify_achar_char.
kono
parents:
diff changeset
2572 gfc_simplify_ichar): Don't error out for wide characters.
kono
parents:
diff changeset
2573 (gfc_convert_char_constant): New function.
kono
parents:
diff changeset
2574
kono
parents:
diff changeset
2575 2008-05-18 Steven G. Kargl <kargls@comcast.net>
kono
parents:
diff changeset
2576
kono
parents:
diff changeset
2577 PR fortran/36251
kono
parents:
diff changeset
2578 * symbol.c (check_conflict): Issue errors for abuse of PUBLIC, PRIVATE,
kono
parents:
diff changeset
2579 and BIND(C).
kono
parents:
diff changeset
2580 * resolve.c (gfc_verify_binding_labels): Fix NULL pointer dereference.
kono
parents:
diff changeset
2581
kono
parents:
diff changeset
2582 2008-05-17 Tobias Burnus <burnus@net-b.de>
kono
parents:
diff changeset
2583
kono
parents:
diff changeset
2584 * intrinsic.texi: Correct description of GET_COMMAND_ARGUMENT
kono
parents:
diff changeset
2585 and GET_ENVIRONMENT_VARIABLE; fix keyword= name for GETENV,
kono
parents:
diff changeset
2586 GETLOG, GMTIME, HOSTNM, IRAND, ITIME, KILL.
kono
parents:
diff changeset
2587 Move LOG_GAMMA after LOG10.
kono
parents:
diff changeset
2588
kono
parents:
diff changeset
2589 2008-05-17 Tobias Burnus <burnus@net-b.de>
kono
parents:
diff changeset
2590
kono
parents:
diff changeset
2591 * intrinsic.c (add_functions): Change FLUSH(C) to FLUSH(UNIT).
kono
parents:
diff changeset
2592 * intrinsic.texi: Change INTEGER(*) to INTEGER; fix keyword= name for
kono
parents:
diff changeset
2593 ABS, ADJUSTL, AINT, ALLOCATED, ANINT, ASSOCIATED, C_ASSOCIATED,
kono
parents:
diff changeset
2594 CEILING, DBLE, DFLOAT, DOT_PRODUCT, DREAL, FLOAT, FLOOR, GET_COMMAND.
kono
parents:
diff changeset
2595
kono
parents:
diff changeset
2596 2008-05-16 Paul Thomas <pault@gcc.gnu.org>
kono
parents:
diff changeset
2597
kono
parents:
diff changeset
2598 PR fortran/35756
kono
parents:
diff changeset
2599 PR fortran/35759
kono
parents:
diff changeset
2600 * trans-stmt.c (gfc_trans_where): Tighten up the dependency
kono
parents:
diff changeset
2601 check for calling gfc_trans_where_3.
kono
parents:
diff changeset
2602
kono
parents:
diff changeset
2603 PR fortran/35743
kono
parents:
diff changeset
2604 * trans-stmt.c (gfc_trans_where_2): Set the mask size to zero
kono
parents:
diff changeset
2605 if it is calculated to be negative.
kono
parents:
diff changeset
2606
kono
parents:
diff changeset
2607 PR fortran/35745
kono
parents:
diff changeset
2608 * trans-stmt.c (gfc_trans_where_3, gfc_trans_where_assign): Set
kono
parents:
diff changeset
2609 ss->where for scalar right hand sides.
kono
parents:
diff changeset
2610 * trans-array.c (gfc_add_loop_ss_code): If ss->where is set do
kono
parents:
diff changeset
2611 not evaluate scalars outside the loop. Clean up whitespace.
kono
parents:
diff changeset
2612 * trans.h : Add a bitfield 'where' to gfc_ss.
kono
parents:
diff changeset
2613
kono
parents:
diff changeset
2614 2008-05-16 Tobias Burnus <burnus@net-b.de>
kono
parents:
diff changeset
2615
kono
parents:
diff changeset
2616 * libgfortran.h: Increase GFC_MAX_DIMENSIONS to 15.
kono
parents:
diff changeset
2617 * array.c (gfc_match_array_spec): Error with -std=f2003 if rank > 7.
kono
parents:
diff changeset
2618
kono
parents:
diff changeset
2619 2008-04-16 Daniel Kraft <d@domob.eu>
kono
parents:
diff changeset
2620
kono
parents:
diff changeset
2621 PR fortran/27997
kono
parents:
diff changeset
2622 * gfortran.h: Added field "length_from_typespec" to gfc_charlength.
kono
parents:
diff changeset
2623 * aray.c (gfc_match_array_constructor): Added code to parse typespec.
kono
parents:
diff changeset
2624 (check_element_type, check_constructor_type, gfc_check_constructor_type):
kono
parents:
diff changeset
2625 Extended to support explicit typespec on constructor.
kono
parents:
diff changeset
2626 (gfc_resolve_character_array_constructor): Pad strings correctly for
kono
parents:
diff changeset
2627 explicit, constant character length.
kono
parents:
diff changeset
2628 * trans-array.c: New static global variable "typespec_chararray_ctor"
kono
parents:
diff changeset
2629 (gfc_trans_array_constructor): New code to support explicit but dynamic
kono
parents:
diff changeset
2630 character lengths.
kono
parents:
diff changeset
2631
kono
parents:
diff changeset
2632 2008-05-16 Jerry DeLisle <jvdelisle@gcc.gnu.org>
kono
parents:
diff changeset
2633
kono
parents:
diff changeset
2634 PR fortran/34325
kono
parents:
diff changeset
2635 * decl.c (match_attr_spec): Check for matching pairs of parenthesis.
kono
parents:
diff changeset
2636 * expr.c (gfc_specification_expr): Supplement the error message with the
kono
parents:
diff changeset
2637 type that was found.
kono
parents:
diff changeset
2638 * resolve.c (gfc_resolve_index): Likewise.
kono
parents:
diff changeset
2639 * match.c (gfc_match_parens): Clarify error message with "at or before".
kono
parents:
diff changeset
2640 (gfc_match_do): Check for matching pairs of parenthesis.
kono
parents:
diff changeset
2641
kono
parents:
diff changeset
2642 2008-05-16 Tobias Burnus <burnus@net-b.de
kono
parents:
diff changeset
2643
kono
parents:
diff changeset
2644 * intrinsic.texi: Write Fortran 77/90/95 instead of F77/90/95;
kono
parents:
diff changeset
2645 add missing KIND argument to ACHAR and NINT; and state that
kono
parents:
diff changeset
2646 the KIND argument is a F2003 extension for ACHAR, COUNT, IACHAR,
kono
parents:
diff changeset
2647 ICHAR, INDEX, LBOUND, LEN, LEN_TRIM, SCAN, SIZE, UBOUND, VERIFY.
kono
parents:
diff changeset
2648
kono
parents:
diff changeset
2649 2008-05-16 Daniel Kraft <d@domob.eu>
kono
parents:
diff changeset
2650
kono
parents:
diff changeset
2651 * primary.c: New private structure "gfc_structure_ctor_component".
kono
parents:
diff changeset
2652 (gfc_free_structure_ctor_component): New helper function.
kono
parents:
diff changeset
2653 (gfc_match_structure_constructor): Extended largely to support named
kono
parents:
diff changeset
2654 arguments and default initialization for structure constructors.
kono
parents:
diff changeset
2655
kono
parents:
diff changeset
2656 2008-05-15 Steven G. Kargl <kargls@comcast.net>
kono
parents:
diff changeset
2657
kono
parents:
diff changeset
2658 * simplify.c (gfc_simplify_dble, gfc_simplify_float,
kono
parents:
diff changeset
2659 simplify_bound, gfc_simplify_nearest, gfc_simplify_real): Plug
kono
parents:
diff changeset
2660 possible memory leaks.
kono
parents:
diff changeset
2661 (gfc_simplify_reshape): Plug possible memory leaks and dereferencing
kono
parents:
diff changeset
2662 of NULL pointers.
kono
parents:
diff changeset
2663
kono
parents:
diff changeset
2664 2008-05-15 Steven G. Kargl <kargls@comcast.net>
kono
parents:
diff changeset
2665
kono
parents:
diff changeset
2666 PR fortran/36239
kono
parents:
diff changeset
2667 * simplify.c (gfc_simplify_int, gfc_simplify_intconv): Replaced hand
kono
parents:
diff changeset
2668 rolled integer conversion with gfc_int2int, gfc_real2int, and
kono
parents:
diff changeset
2669 gfc_complex2int.
kono
parents:
diff changeset
2670 (gfc_simplify_intconv): Renamed to simplify_intconv.
kono
parents:
diff changeset
2671
kono
parents:
diff changeset
2672 2008-05-15 Steven G. Kargl, <kargl@comcast.net>
kono
parents:
diff changeset
2673 * gfortran.dg/and_or_xor.f90: New test
kono
parents:
diff changeset
2674
kono
parents:
diff changeset
2675 * fortran/simplify.c (gfc_simplify_and, gfc_simplify_or,
kono
parents:
diff changeset
2676 gfc_simplify_xor): Don't range check logical results.
kono
parents:
diff changeset
2677
kono
parents:
diff changeset
2678 2008-05-15 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
kono
parents:
diff changeset
2679
kono
parents:
diff changeset
2680 * trans-expr.c (gfc_conv_concat_op): Take care of nondefault
kono
parents:
diff changeset
2681 character kinds.
kono
parents:
diff changeset
2682 (gfc_build_compare_string): Add kind argument and use it.
kono
parents:
diff changeset
2683 (gfc_conv_statement_function): Fix indentation.
kono
parents:
diff changeset
2684 * gfortran.h (gfc_character_info): New structure.
kono
parents:
diff changeset
2685 (gfc_character_kinds): New array.
kono
parents:
diff changeset
2686 * trans-types.c (gfc_character_kinds, gfc_character_types,
kono
parents:
diff changeset
2687 gfc_pcharacter_types): New array.
kono
parents:
diff changeset
2688 (gfc_init_kinds): Fill character kinds array.
kono
parents:
diff changeset
2689 (validate_character): Take care of nondefault character kinds.
kono
parents:
diff changeset
2690 (gfc_build_uint_type): New function.
kono
parents:
diff changeset
2691 (gfc_init_types): Take care of nondefault character kinds.
kono
parents:
diff changeset
2692 (gfc_get_char_type, gfc_get_pchar_type): New functions.
kono
parents:
diff changeset
2693 (gfc_get_character_type_len): Use gfc_get_char_type.
kono
parents:
diff changeset
2694 * trans.h (gfc_build_compare_string): Adjust prototype.
kono
parents:
diff changeset
2695 (gfor_fndecl_compare_string_char4, gfor_fndecl_concat_string_char4,
kono
parents:
diff changeset
2696 gfor_fndecl_string_len_trim_char4, gfor_fndecl_string_index_char4,
kono
parents:
diff changeset
2697 gfor_fndecl_string_scan_char4, gfor_fndecl_string_verify_char4,
kono
parents:
diff changeset
2698 gfor_fndecl_string_trim_char4, gfor_fndecl_string_minmax_char4,
kono
parents:
diff changeset
2699 gfor_fndecl_adjustl_char4, gfor_fndecl_adjustr_char4): New
kono
parents:
diff changeset
2700 prototypes.
kono
parents:
diff changeset
2701 * trans-types.h (gfc_get_char_type, gfc_get_pchar_type): New
kono
parents:
diff changeset
2702 prototypes.
kono
parents:
diff changeset
2703 * trans-decl.c (gfor_fndecl_compare_string_char4,
kono
parents:
diff changeset
2704 gfor_fndecl_string_len_trim_char4, gfor_fndecl_string_index_char4,
kono
parents:
diff changeset
2705 gfor_fndecl_string_scan_char4, gfor_fndecl_string_verify_char4,
kono
parents:
diff changeset
2706 gfor_fndecl_string_trim_char4, gfor_fndecl_string_minmax_char4,
kono
parents:
diff changeset
2707 gfor_fndecl_adjustl_char4, gfor_fndecl_adjustr_char4,
kono
parents:
diff changeset
2708 gfor_fndecl_concat_string_char4): New function decls.
kono
parents:
diff changeset
2709 (gfc_build_intrinsic_function_decls): Define new *_char4 function
kono
parents:
diff changeset
2710 decls.
kono
parents:
diff changeset
2711 * trans-intrinsic.c (gfc_conv_intrinsic_minmax_char,
kono
parents:
diff changeset
2712 gfc_conv_intrinsic_len_trim, gfc_conv_intrinsic_ichar,
kono
parents:
diff changeset
2713 gfc_conv_intrinsic_strcmp, gfc_conv_intrinsic_trim,
kono
parents:
diff changeset
2714 gfc_conv_intrinsic_function): Deal with nondefault character kinds.
kono
parents:
diff changeset
2715
kono
parents:
diff changeset
2716 2008-05-15 Sa Liu <saliu@de.ibm.com>
kono
parents:
diff changeset
2717
kono
parents:
diff changeset
2718 * iso-c-binding.def: Add standard parameter to macro NAMED_INTCST.
kono
parents:
diff changeset
2719 All existing NAMED_INTCST definitions has standard GFC_STD_F2003,
kono
parents:
diff changeset
2720 c_int128_t, c_int_least128_t and c_int_fast128_t are added as
kono
parents:
diff changeset
2721 GNU extensions.
kono
parents:
diff changeset
2722 * iso-fortran-evn.def: Add standard parameter GFC_STD_F2003
kono
parents:
diff changeset
2723 to macro NAMED_INTCST.
kono
parents:
diff changeset
2724 * symbol.c (std_for_isocbinding_symbol): New helper function to
kono
parents:
diff changeset
2725 return the standard that supports this isocbinding symbol.
kono
parents:
diff changeset
2726 (generate_isocbinding_symbol): Do not generate GNU extension symbols
kono
parents:
diff changeset
2727 if std=f2003. Add new parameter to NAMED_INTCST.
kono
parents:
diff changeset
2728 * module.c (use_iso_fortran_env_module): Add new parameter to
kono
parents:
diff changeset
2729 NAMED_INTCST and new field standard to struct intmod_sym.
kono
parents:
diff changeset
2730 * gfortran.h: Add new parameter to NAMED_INTCST.
kono
parents:
diff changeset
2731 * trans-types.c (init_c_interop_kinds): Add new parameter to
kono
parents:
diff changeset
2732 NAMED_INTCST.
kono
parents:
diff changeset
2733 * intrinsic.texi: Documented new types C_INT128_T, C_INT_LEASE128_T
kono
parents:
diff changeset
2734 and C_INT_FAST128_T.
kono
parents:
diff changeset
2735
kono
parents:
diff changeset
2736 2008-05-14 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
kono
parents:
diff changeset
2737
kono
parents:
diff changeset
2738 PR fortran/36059
kono
parents:
diff changeset
2739 * trans-decl.c (gfc_build_dummy_array_decl): Don't repack
kono
parents:
diff changeset
2740 arrays that have the TARGET attribute.
kono
parents:
diff changeset
2741
kono
parents:
diff changeset
2742 2008-05-14 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
kono
parents:
diff changeset
2743
kono
parents:
diff changeset
2744 PR fortran/36186
kono
parents:
diff changeset
2745 * simplify.c (only_convert_cmplx_boz): New function.
kono
parents:
diff changeset
2746 (gfc_simplify_cmplx, gfc_simplify_complex, gfc_simplify_dcmplx):
kono
parents:
diff changeset
2747 Call only_convert_cmplx_boz.
kono
parents:
diff changeset
2748
kono
parents:
diff changeset
2749 2008-05-14 Paul Thomas <pault@gcc.gnu.org>
kono
parents:
diff changeset
2750
kono
parents:
diff changeset
2751 PR fortran/36233
kono
parents:
diff changeset
2752 * interface.c (compare_actual_formal): Do not check sizes if the
kono
parents:
diff changeset
2753 actual is BT_PROCEDURE.
kono
parents:
diff changeset
2754
kono
parents:
diff changeset
2755 2008-05-14 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
kono
parents:
diff changeset
2756
kono
parents:
diff changeset
2757 PR fortran/35682
kono
parents:
diff changeset
2758 * trans-array.c (gfc_conv_ss_startstride): Any negative size is
kono
parents:
diff changeset
2759 the same as zero size.
kono
parents:
diff changeset
2760 (gfc_conv_loop_setup): Fix size calculation.
kono
parents:
diff changeset
2761
kono
parents:
diff changeset
2762 2008-05-14 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
kono
parents:
diff changeset
2763
kono
parents:
diff changeset
2764 PR fortran/35685
kono
parents:
diff changeset
2765 * trans-intrinsic.c (gfc_conv_intrinsic_bound): Correctly
kono
parents:
diff changeset
2766 handle zero-size sections.
kono
parents:
diff changeset
2767
kono
parents:
diff changeset
2768 2008-05-14 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
kono
parents:
diff changeset
2769
kono
parents:
diff changeset
2770 PR fortran/36215
kono
parents:
diff changeset
2771 * scanner.c (preprocessor_line): Allocate enough memory for a
kono
parents:
diff changeset
2772 wide string.
kono
parents:
diff changeset
2773
kono
parents:
diff changeset
2774 2008-05-12 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
kono
parents:
diff changeset
2775
kono
parents:
diff changeset
2776 PR fortran/36176
kono
parents:
diff changeset
2777 * target-memory.c (gfc_target_expr_size): Correctly treat
kono
parents:
diff changeset
2778 substrings.
kono
parents:
diff changeset
2779 (gfc_target_encode_expr): Likewise.
kono
parents:
diff changeset
2780 (gfc_interpret_complex): Whitespace change.
kono
parents:
diff changeset
2781
kono
parents:
diff changeset
2782 2008-05-11 Thomas Koenig <tkoenig@gcc.gnu.org>
kono
parents:
diff changeset
2783
kono
parents:
diff changeset
2784 PR fortran/35719
kono
parents:
diff changeset
2785 * trans.c (gfc_call_malloc): If size equals zero, allocate one
kono
parents:
diff changeset
2786 byte; don't return a null pointer.
kono
parents:
diff changeset
2787
kono
parents:
diff changeset
2788 2008-05-10 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
kono
parents:
diff changeset
2789
kono
parents:
diff changeset
2790 PR fortran/36197
kono
parents:
diff changeset
2791 * module.c (quote_string): Fix sprintf format.
kono
parents:
diff changeset
2792
kono
parents:
diff changeset
2793 2008-05-09 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
kono
parents:
diff changeset
2794
kono
parents:
diff changeset
2795 PR fortran/36162
kono
parents:
diff changeset
2796 * module.c (quote_string, unquote_string,
kono
parents:
diff changeset
2797 mio_allocated_wide_string): New functions.
kono
parents:
diff changeset
2798 (mio_expr): Call mio_allocated_wide_string where needed.
kono
parents:
diff changeset
2799
kono
parents:
diff changeset
2800 2008-05-07 Kenneth Zadeck <zadeck@naturalbridge.com>
kono
parents:
diff changeset
2801
kono
parents:
diff changeset
2802 * trans-decl.c (gfc_get_extern_function_decl, build_function_decl):
kono
parents:
diff changeset
2803 Rename DECL_IS_PURE to DECL_PURE_P.
kono
parents:
diff changeset
2804
kono
parents:
diff changeset
2805 2008-05-06 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
kono
parents:
diff changeset
2806
kono
parents:
diff changeset
2807 * arith.c: (gfc_arith_concat, gfc_compare_string,
kono
parents:
diff changeset
2808 gfc_compare_with_Cstring, hollerith2representation,
kono
parents:
diff changeset
2809 gfc_hollerith2int, gfc_hollerith2real, gfc_hollerith2complex,
kono
parents:
diff changeset
2810 gfc_hollerith2character, gfc_hollerith2logical): Use wide
kono
parents:
diff changeset
2811 characters for character constants.
kono
parents:
diff changeset
2812 * data.c (create_character_intializer): Likewise.
kono
parents:
diff changeset
2813 * decl.c (gfc_set_constant_character_len): Likewise.
kono
parents:
diff changeset
2814 * dump-parse-tree.c (show_char_const): Correctly dump wide
kono
parents:
diff changeset
2815 character strings.
kono
parents:
diff changeset
2816 error.c (print_wide_char): Rename into gfc_print_wide_char.
kono
parents:
diff changeset
2817 (show_locus): Adapt to new prototype of gfc_print_wide_char.
kono
parents:
diff changeset
2818 expr.c (free_expr0): Representation is now disjunct from
kono
parents:
diff changeset
2819 character string value, so we always free it.
kono
parents:
diff changeset
2820 (gfc_copy_expr, find_substring_ref, gfc_simplify_expr): Adapt
kono
parents:
diff changeset
2821 to wide character strings.
kono
parents:
diff changeset
2822 * gfortran.h (gfc_expr): Make value.character.string a wide string.
kono
parents:
diff changeset
2823 (gfc_wide_toupper, gfc_wide_strncasecmp, gfc_wide_memset,
kono
parents:
diff changeset
2824 gfc_widechar_to_char, gfc_char_to_widechar): New prototypes.
kono
parents:
diff changeset
2825 (gfc_get_wide_string): New macro.
kono
parents:
diff changeset
2826 (gfc_print_wide_char): New prototype.
kono
parents:
diff changeset
2827 * io.c (format_string): Make a wide string.
kono
parents:
diff changeset
2828 (next_char, gfc_match_format, compare_to_allowed_values,
kono
parents:
diff changeset
2829 gfc_match_open): Deal with wide strings.
kono
parents:
diff changeset
2830 * module.c (mio_expr): Convert between wide strings and ASCII ones.
kono
parents:
diff changeset
2831 * primary.c (match_hollerith_constant, match_charkind_name):
kono
parents:
diff changeset
2832 Handle wide strings.
kono
parents:
diff changeset
2833 * resolve.c (build_default_init_expr): Likewise.
kono
parents:
diff changeset
2834 * scanner.c (gfc_wide_toupper, gfc_wide_memset,
kono
parents:
diff changeset
2835 gfc_char_to_widechar): New functions.
kono
parents:
diff changeset
2836 (wide_strchr, gfc_widechar_to_char, gfc_wide_strncasecmp):
kono
parents:
diff changeset
2837 Changes in prototypes.
kono
parents:
diff changeset
2838 (gfc_define_undef_line, load_line, preprocessor_line,
kono
parents:
diff changeset
2839 include_line, load_file, gfc_read_orig_filename): Handle wide
kono
parents:
diff changeset
2840 strings.
kono
parents:
diff changeset
2841 * simplify.c (gfc_simplify_achar, gfc_simplify_adjustl,
kono
parents:
diff changeset
2842 gfc_simplify_adjustr, gfc_simplify_char, gfc_simplify_iachar,
kono
parents:
diff changeset
2843 gfc_simplify_ichar, simplify_min_max, gfc_simplify_new_line,
kono
parents:
diff changeset
2844 gfc_simplify_repeat): Handle wide strings.
kono
parents:
diff changeset
2845 (wide_strspn, wide_strcspn): New helper functions.
kono
parents:
diff changeset
2846 (gfc_simplify_scan, gfc_simplify_trim, gfc_simplify_verify):
kono
parents:
diff changeset
2847 Handle wide strings.
kono
parents:
diff changeset
2848 * symbol.c (generate_isocbinding_symbol): Likewise.
kono
parents:
diff changeset
2849 * target-memory.c (size_character, gfc_target_expr_size,
kono
parents:
diff changeset
2850 encode_character, gfc_target_encode_expr, gfc_interpret_character,
kono
parents:
diff changeset
2851 gfc_target_interpret_expr): Handle wide strings.
kono
parents:
diff changeset
2852 * trans-const.c (gfc_conv_string_init): Lower wide strings to
kono
parents:
diff changeset
2853 narrow ones.
kono
parents:
diff changeset
2854 (gfc_conv_constant_to_tree): Likewise.
kono
parents:
diff changeset
2855 * trans-expr.c (gfc_conv_substring_expr): Handle wide strings.
kono
parents:
diff changeset
2856 * trans-io.c (gfc_new_nml_name_expr): Likewise.
kono
parents:
diff changeset
2857 * trans-stmt.c (gfc_trans_label_assign): Likewise.
kono
parents:
diff changeset
2858
kono
parents:
diff changeset
2859 2008-05-06 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
kono
parents:
diff changeset
2860
kono
parents:
diff changeset
2861 * simplify.c (gfc_simplify_bessel_j0,gfc_simplify_bessel_j1,
kono
parents:
diff changeset
2862 gfc_simplify_bessel_jn,gfc_simplify_bessel_y0,
kono
parents:
diff changeset
2863 gfc_simplify_bessel_y1,gfc_simplify_bessel_yn): Mark arguments
kono
parents:
diff changeset
2864 with ATTRIBUTE_UNUSED.
kono
parents:
diff changeset
2865
kono
parents:
diff changeset
2866 2008-05-06 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
kono
parents:
diff changeset
2867
kono
parents:
diff changeset
2868 * check.c (gfc_check_sizeof): Switch to ATTRIBUTE_UNUSED.
kono
parents:
diff changeset
2869 * simplify.c (gfc_simplify_lgamma): Likewise.
kono
parents:
diff changeset
2870
kono
parents:
diff changeset
2871 2008-05-06 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
kono
parents:
diff changeset
2872
kono
parents:
diff changeset
2873 * openmp.c (gfc_match_omp_eos): Use gfc_next_ascii_char and
kono
parents:
diff changeset
2874 gfc_peek_ascii_char.
kono
parents:
diff changeset
2875 * decl.c (gfc_match_kind_spec, gfc_match_type_spec,
kono
parents:
diff changeset
2876 gfc_match_implicit_none, match_implicit_range, gfc_match_implicit,
kono
parents:
diff changeset
2877 match_string_p, match_attr_spec, gfc_match_suffix,
kono
parents:
diff changeset
2878 match_procedure_decl, gfc_match_entry, gfc_match_subroutine):
kono
parents:
diff changeset
2879 Likewise.
kono
parents:
diff changeset
2880 * gfortran.h (gfc_char_t): New type.
kono
parents:
diff changeset
2881 (gfc_linebuf): Make line member a gfc_char_t.
kono
parents:
diff changeset
2882 (locus): Make nextc member a gfc_char_t.
kono
parents:
diff changeset
2883 (gfc_wide_is_printable, gfc_wide_is_digit, gfc_wide_fits_in_byte,
kono
parents:
diff changeset
2884 gfc_wide_tolower, gfc_wide_strlen, gfc_next_ascii_char,
kono
parents:
diff changeset
2885 gfc_peek_ascii_char, gfc_check_digit): New prototypes.
kono
parents:
diff changeset
2886 * error.c (print_wide_char): New function.
kono
parents:
diff changeset
2887 (show_locus): Use print_wide_char and gfc_wide_strlen.
kono
parents:
diff changeset
2888 * io.c (next_char): Use gfc_char_t type.
kono
parents:
diff changeset
2889 (match_io): Use gfc_peek_ascii_char and gfc_next_ascii_char.
kono
parents:
diff changeset
2890 * match.c (gfc_match_parens, gfc_match_eos,
kono
parents:
diff changeset
2891 gfc_match_small_literal_int, gfc_match_name, gfc_match_name_C,
kono
parents:
diff changeset
2892 gfc_match_intrinsic_op, gfc_match_char, gfc_match_return,
kono
parents:
diff changeset
2893 gfc_match_common): Likewise.
kono
parents:
diff changeset
2894 * match.h (gfc_match_special_char): Change prototype.
kono
parents:
diff changeset
2895 * parse.c (decode_specification_statement, decode_statement,
kono
parents:
diff changeset
2896 decode_omp_directive, next_free, next_fixed): Use
kono
parents:
diff changeset
2897 gfc_peek_ascii_char and gfc_next_ascii_char.
kono
parents:
diff changeset
2898 * primary.c (gfc_check_digit): Change name.
kono
parents:
diff changeset
2899 (match_digits, match_hollerith_constant, match_boz_constant,
kono
parents:
diff changeset
2900 match_real_constant, next_string_char, match_charkind_name,
kono
parents:
diff changeset
2901 match_string_constant, match_logical_constant_string,
kono
parents:
diff changeset
2902 match_complex_constant, match_actual_arg, match_varspec,
kono
parents:
diff changeset
2903 gfc_match_rvalue, match_variable): Use gfc_peek_ascii_char and
kono
parents:
diff changeset
2904 gfc_next_ascii_char.
kono
parents:
diff changeset
2905 * scanner.c (gfc_wide_fits_in_byte, wide_is_ascii,
kono
parents:
diff changeset
2906 gfc_wide_is_printable, gfc_wide_tolower, gfc_wide_is_digit,
kono
parents:
diff changeset
2907 gfc_wide_is_digit, wide_atoi, gfc_wide_strlen, wide_strcpy,
kono
parents:
diff changeset
2908 wide_strchr, widechar_to_char, wide_strncmp, wide_strncasecmp,
kono
parents:
diff changeset
2909 gfc_next_ascii_char, gfc_peek_ascii_char):
kono
parents:
diff changeset
2910 New functions.
kono
parents:
diff changeset
2911 (next_char, gfc_define_undef_line, skip_free_comments,
kono
parents:
diff changeset
2912 gfc_next_char_literal, gfc_next_char, gfc_peek_char,
kono
parents:
diff changeset
2913 gfc_error_recovery, load_line, preprocessor_line, include_line,
kono
parents:
diff changeset
2914 load_file, gfc_read_orig_filename): Use gfc_char_t for source
kono
parents:
diff changeset
2915 characters and the {gfc_,}wide_* functions to manipulate wide
kono
parents:
diff changeset
2916 strings.
kono
parents:
diff changeset
2917
kono
parents:
diff changeset
2918 2008-05-06 Tobias Burnus <burnus@net-b.de>
kono
parents:
diff changeset
2919
kono
parents:
diff changeset
2920 PR fortran/36117
kono
parents:
diff changeset
2921 * intrinsic.c (add_functions): Call gfc_simplify_bessel_*.
kono
parents:
diff changeset
2922 * intrinsic.h: Add prototypes for gfc_simplify_bessel_*.
kono
parents:
diff changeset
2923 * simplify.c (gfc_simplify_bessel_j0,gfc_simplify_bessel_j1,
kono
parents:
diff changeset
2924 gfc_simplify_bessel_jn,gfc_simplify_bessel_y0,
kono
parents:
diff changeset
2925 gfc_simplify_bessel_y1,gfc_simplify_bessel_yn): New.
kono
parents:
diff changeset
2926
kono
parents:
diff changeset
2927 2008-05-03 Janus Weil <jaydub66@gmail.com>
kono
parents:
diff changeset
2928
kono
parents:
diff changeset
2929 * misc.c (gfc_clear_ts): Set interface to NULL.
kono
parents:
diff changeset
2930
kono
parents:
diff changeset
2931 2008-05-03 Jerry DeLisle <jvdelisle@gcc.gnu.org>
kono
parents:
diff changeset
2932
kono
parents:
diff changeset
2933 PR fortran/33268
kono
parents:
diff changeset
2934 * gfortran.h: Add extra_comma pointer to gfc_dt structure. Add iokind to
kono
parents:
diff changeset
2935 gfc_expr value union. Add io_kind enum to here from io.c.
kono
parents:
diff changeset
2936 * io.c (gfc_free_dt): Free extra_comma.
kono
parents:
diff changeset
2937 (gfc_resolve_dt): If an extra comma was encountered and io_unit is type
kono
parents:
diff changeset
2938 BT_CHARACTER, resolve to format_expr and set default unit. Error if
kono
parents:
diff changeset
2939 io_kind is M_WRITE. (match_io): Match the extra comma and set new
kono
parents:
diff changeset
2940 pointer, extra_comma.
kono
parents:
diff changeset
2941
kono
parents:
diff changeset
2942 2008-05-01 Bud Davis <bdavis9659@sbcglobal.net>
kono
parents:
diff changeset
2943
kono
parents:
diff changeset
2944 PR35940/Fortran
kono
parents:
diff changeset
2945 * simplify.c (gfc_simplify_index): Check for direction argument
kono
parents:
diff changeset
2946 being a constant.
kono
parents:
diff changeset
2947
kono
parents:
diff changeset
2948 2008-05-01 Janus Weil <jaydub66@gmail.com>
kono
parents:
diff changeset
2949
kono
parents:
diff changeset
2950 * gfortran.h (struct gfc_symbol): Moving "interface" member to
kono
parents:
diff changeset
2951 gfc_typespec (plus fixing a small docu error).
kono
parents:
diff changeset
2952 * interface.c (gfc_procedure_use): Ditto.
kono
parents:
diff changeset
2953 * decl.c (match_procedure_decl): Ditto.
kono
parents:
diff changeset
2954 * resolve.c (resolve_specific_f0,
kono
parents:
diff changeset
2955 resolve_specific_f0, resolve_symbol): Ditto.
kono
parents:
diff changeset
2956
kono
parents:
diff changeset
2957 2008-04-30 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
kono
parents:
diff changeset
2958
kono
parents:
diff changeset
2959 * intrinsic.c (add_functions): Add SELECTED_CHAR_KIND intrinsic.
kono
parents:
diff changeset
2960 * intrinsic.h (gfc_check_selected_char_kind,
kono
parents:
diff changeset
2961 gfc_simplify_selected_char_kind): New prototypes.
kono
parents:
diff changeset
2962 * gfortran.h (gfc_isym_id): Add GFC_ISYM_SC_KIND.
kono
parents:
diff changeset
2963 * trans.h (gfor_fndecl_sc_kind): New function decl.
kono
parents:
diff changeset
2964 * trans-decl.c (gfor_fndecl_sc_kind): Build new decl.
kono
parents:
diff changeset
2965 * arith.c (gfc_compare_with_Cstring): New function.
kono
parents:
diff changeset
2966 * arith.h (gfc_compare_with_Cstring): New prototype.
kono
parents:
diff changeset
2967 * check.c (gfc_check_selected_char_kind): New function.
kono
parents:
diff changeset
2968 * primary.c (match_string_constant, match_kind_param): Mark
kono
parents:
diff changeset
2969 symbols used as literal constant kind param as referenced.
kono
parents:
diff changeset
2970 * trans-intrinsic.c (gfc_conv_intrinsic_sc_kind): New function.
kono
parents:
diff changeset
2971 (gfc_conv_intrinsic_function): Call gfc_conv_intrinsic_sc_kind.
kono
parents:
diff changeset
2972 * intrinsic.texi (SELECTED_CHAR_KIND): Document new intrinsic.
kono
parents:
diff changeset
2973 * simplify.c (gfc_simplify_selected_char_kind): New function.
kono
parents:
diff changeset
2974
kono
parents:
diff changeset
2975 2008-04-28 Paul Thomas <pault@gcc.gnu.org>
kono
parents:
diff changeset
2976
kono
parents:
diff changeset
2977 PR fortran/35997
kono
parents:
diff changeset
2978 * module.c (find_symbol): Do not return a result for a symbol
kono
parents:
diff changeset
2979 that has been renamed in another module.
kono
parents:
diff changeset
2980
kono
parents:
diff changeset
2981 2008-04-26 George Helffrich <george@gcc.gnu.org>
kono
parents:
diff changeset
2982
kono
parents:
diff changeset
2983 PR fortran/35892
kono
parents:
diff changeset
2984 PR fortran/35154
kono
parents:
diff changeset
2985 * trans-common.c (create_common): Add decl to function
kono
parents:
diff changeset
2986 chain (if inside one) to preserve identifier scope in debug output.
kono
parents:
diff changeset
2987
kono
parents:
diff changeset
2988 2008-04-25 Jan Hubicka <jh@suse.cz>
kono
parents:
diff changeset
2989
kono
parents:
diff changeset
2990 * trans-decl.c (trans_function_start): Update.
kono
parents:
diff changeset
2991
kono
parents:
diff changeset
2992 2008-04-25 Tobias Burnus <burnus@net-b.de>
kono
parents:
diff changeset
2993 Daniel Franke <franke.daniel@gmail.com>
kono
parents:
diff changeset
2994
kono
parents:
diff changeset
2995 PR fortran/35156
kono
parents:
diff changeset
2996 * gfortranspec.c (lang_specific_driver): Deprecate
kono
parents:
diff changeset
2997 -M option; fix ICE when "-M" is last argument and
kono
parents:
diff changeset
2998 make "-M<dir>" work.
kono
parents:
diff changeset
2999 * options.c (gfc_handle_module_path_options):
kono
parents:
diff changeset
3000 Use -J instead of -M in error messages.
kono
parents:
diff changeset
3001 * invoke.texi: Mark -M as depecated.
kono
parents:
diff changeset
3002
kono
parents:
diff changeset
3003 2008-04-23 Jerry DeLisle <jvdelisle@gcc.gnu.org>
kono
parents:
diff changeset
3004 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
kono
parents:
diff changeset
3005
kono
parents:
diff changeset
3006 PR fortran/35994
kono
parents:
diff changeset
3007 * trans-instrinsic.c (gfc_conv_intrinsic_minmaxloc): Correctly adjust
kono
parents:
diff changeset
3008 loop counter offset.
kono
parents:
diff changeset
3009
kono
parents:
diff changeset
3010 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
kono
parents:
diff changeset
3011
kono
parents:
diff changeset
3012 * trans-expr.c (gfc_conv_structure): Don't set TREE_INVARIANT.
kono
parents:
diff changeset
3013 * trans-array.c (gfc_build_null_descriptor): Don't set TREE_INVARIANT.
kono
parents:
diff changeset
3014 (gfc_trans_array_constructor_value): Don't set TREE_INVARIANT.
kono
parents:
diff changeset
3015 (gfc_build_constant_array_constructor): Don't set TREE_INVARIANT.
kono
parents:
diff changeset
3016 (gfc_conv_array_initializer): Don't set TREE_INVARIANT.
kono
parents:
diff changeset
3017 * trans-common.c (get_init_field): Don't set TREE_INVARIANT.
kono
parents:
diff changeset
3018 (create_common): Don't set TREE_INVARIANT.
kono
parents:
diff changeset
3019 * trans-stmt.c (gfc_trans_character_select): Don't set TREE_INVARIANT.
kono
parents:
diff changeset
3020 * trans-decl.c (gfc_generate_function_code): Don't set TREE_INVARIANT.
kono
parents:
diff changeset
3021
kono
parents:
diff changeset
3022 2008-04-21 Steve Ellcey <sje@cup.hp.com>
kono
parents:
diff changeset
3023
kono
parents:
diff changeset
3024 * f95-lang.c (gfc_init_decl_processing): use ptr_mode instead of Pmode.
kono
parents:
diff changeset
3025
kono
parents:
diff changeset
3026 2008-04-21 Daniel Franke <franke.daniel@gmail.com>
kono
parents:
diff changeset
3027
kono
parents:
diff changeset
3028 PR fortran/35019
kono
parents:
diff changeset
3029 * gfortranspec.c (lookup_option): Properly handle separated arguments
kono
parents:
diff changeset
3030 in -J option, print missing argument message when necessary.
kono
parents:
diff changeset
3031
kono
parents:
diff changeset
3032 2008-04-20 Jerry DeLisle <jvdelisle@gcc.gnu.org>
kono
parents:
diff changeset
3033
kono
parents:
diff changeset
3034 PR fortran/35882
kono
parents:
diff changeset
3035 * scanner.c (skip_fixed_comments): Update continue_line when comment is
kono
parents:
diff changeset
3036 detected. (gfc_next_char_literal): Likewise.
kono
parents:
diff changeset
3037
kono
parents:
diff changeset
3038 2008-04-19 Paul Thomas <pault@gcc.gnu.org>
kono
parents:
diff changeset
3039
kono
parents:
diff changeset
3040 PR fortran/35944
kono
parents:
diff changeset
3041 PR fortran/35946
kono
parents:
diff changeset
3042 PR fortran/35947
kono
parents:
diff changeset
3043 * trans_array.c (gfc_trans_array_constructor): Temporarily
kono
parents:
diff changeset
3044 realign loop, if loop->from is not zero, before creating
kono
parents:
diff changeset
3045 the temporary array and provide an offset.
kono
parents:
diff changeset
3046
kono
parents:
diff changeset
3047 PR fortran/35959
kono
parents:
diff changeset
3048 * trans-decl.c (gfc_init_default_dt): Add gfc_ prefix to name
kono
parents:
diff changeset
3049 and allow for NULL body. Change all references from
kono
parents:
diff changeset
3050 init_default_dt to gfc_init_default_dt.
kono
parents:
diff changeset
3051 * trans.h : Add prototype for gfc_init_default_dt.
kono
parents:
diff changeset
3052 * trans-array.c (gfc_trans_deferred_vars): After nullification
kono
parents:
diff changeset
3053 call gfc_init_default_dt for derived types with allocatable
kono
parents:
diff changeset
3054 components.
kono
parents:
diff changeset
3055
kono
parents:
diff changeset
3056 2008-04-18 Jerry DeLisle <jvdelisle@gcc.gnu.org>
kono
parents:
diff changeset
3057
kono
parents:
diff changeset
3058 PR fortran/35892
kono
parents:
diff changeset
3059 * trans-common.c (create_common): Revert patch causing regression.
kono
parents:
diff changeset
3060
kono
parents:
diff changeset
3061 2008-04-16 Jerry DeLisle <jvdelisle@gcc.gnu.org>
kono
parents:
diff changeset
3062
kono
parents:
diff changeset
3063 PR fortran/35724
kono
parents:
diff changeset
3064 * iresolve.c (gfc_resolve_eoshift): Check for NULL symtree in test for
kono
parents:
diff changeset
3065 optional argument attribute.
kono
parents:
diff changeset
3066
kono
parents:
diff changeset
3067 2008-04-16 Paul Thomas <pault@gcc.gnu.org>
kono
parents:
diff changeset
3068
kono
parents:
diff changeset
3069 PR fortran/35932
kono
parents:
diff changeset
3070 * trans-intrinsic.c (gfc_conv_intrinsic_char): Even though KIND
kono
parents:
diff changeset
3071 is not used, the argument must be converted.
kono
parents:
diff changeset
3072
kono
parents:
diff changeset
3073 2008-04-16 Jakub Jelinek <jakub@redhat.com>
kono
parents:
diff changeset
3074
kono
parents:
diff changeset
3075 PR target/35662
kono
parents:
diff changeset
3076 * f95-lang.c (gfc_init_builtin_functions): Make sure
kono
parents:
diff changeset
3077 BUILT_IN_SINCOS{,F,L} types aren't varargs.
kono
parents:
diff changeset
3078
kono
parents:
diff changeset
3079 2008-04-15 Paul Thomas <pault@gcc.gnu.org>
kono
parents:
diff changeset
3080
kono
parents:
diff changeset
3081 PR fortran/35864
kono
parents:
diff changeset
3082 * expr.c (scalarize_intrinsic_call): Reorder identification of
kono
parents:
diff changeset
3083 array argument so that if one is not found a segfault does not
kono
parents:
diff changeset
3084 occur. Return FAILURE if all scalar arguments.
kono
parents:
diff changeset
3085
kono
parents:
diff changeset
3086 2008-04-13 Jerry DeLisle <jvdelisle@gcc.gnu.org>
kono
parents:
diff changeset
3087 Tobias Burnus <burnus@net-b.de>
kono
parents:
diff changeset
3088
kono
parents:
diff changeset
3089 PR fortran/35882
kono
parents:
diff changeset
3090 * options.c (gfc_init_options): Set the default maximum continuation
kono
parents:
diff changeset
3091 lines to 255 for both free and fixed form source for warnings.
kono
parents:
diff changeset
3092 (gfc_handle_option): Set -std=f95 fixed form max continuations to 19 and
kono
parents:
diff changeset
3093 the -std=f95 free form max continuations to 39 for warnings.
kono
parents:
diff changeset
3094 * scanner.c (gfc_next_char_literal): Adjust the current_line number only
kono
parents:
diff changeset
3095 if it is less than the current locus.
kono
parents:
diff changeset
3096
kono
parents:
diff changeset
3097 2008-04-07 Jerry DeLisle <jvdelisle@gcc.gnu.org>
kono
parents:
diff changeset
3098
kono
parents:
diff changeset
3099 PR fortran/25829 28655
kono
parents:
diff changeset
3100 * io.c (io_tag): Add new tags for decimal, encoding, asynchronous,
kono
parents:
diff changeset
3101 round, sign, and id. (match_open_element): Match new tags.
kono
parents:
diff changeset
3102 (gfc_resolve_open): Resolve new tags. (gfc_match_open): Enable encoding
kono
parents:
diff changeset
3103 for DEFAULT only. Update error messages. (match_dt_element): Fix match
kono
parents:
diff changeset
3104 tag for asynchronous. Update error messages. (gfc_free_inquire): Free
kono
parents:
diff changeset
3105 new expressions. (match_inquire_element): Match new tags.
kono
parents:
diff changeset
3106 (gfc_match_inquire): Add constraint for ID and PENDING.
kono
parents:
diff changeset
3107 (gfc_resolve_inquire): Resolve new tags.
kono
parents:
diff changeset
3108 * trans-io.c (gfc_trans_inquire): Clean up whitespace and fix setting of
kono
parents:
diff changeset
3109 mask for ID parameter.
kono
parents:
diff changeset
3110 * ioparm.def: Fix order of parameters for pending, round, and sign.
kono
parents:
diff changeset
3111 NOTE: These must line up with the definitions in libgfortran/io/io.h. or
kono
parents:
diff changeset
3112 things don't work.
kono
parents:
diff changeset
3113
kono
parents:
diff changeset
3114 2008-04-06 Paul Thomas <pault@gcc.gnu.org>
kono
parents:
diff changeset
3115
kono
parents:
diff changeset
3116 PR fortran/35780
kono
parents:
diff changeset
3117 * expr.c (scalarize_intrinsic_call): Identify which argument is
kono
parents:
diff changeset
3118 an array and use that as the template.
kono
parents:
diff changeset
3119 (check_init_expr): Remove tests that first argument is an array
kono
parents:
diff changeset
3120 in the call to scalarize_intrinsic_call.
kono
parents:
diff changeset
3121
kono
parents:
diff changeset
3122 2008-04-06 Tobias Schlüter <tobi@gcc.gnu.org>
kono
parents:
diff changeset
3123
kono
parents:
diff changeset
3124 PR fortran/35832
kono
parents:
diff changeset
3125 * io.c (io_tag): Add field 'value'. Split 'spec' field in
kono
parents:
diff changeset
3126 existing io_tags.
kono
parents:
diff changeset
3127 (match_etag, match_vtag, match_ltag): Split parsing in two steps
kono
parents:
diff changeset
3128 to give better error messages.
kono
parents:
diff changeset
3129
kono
parents:
diff changeset
3130 2008-04-06 Tobias Burnus <burnus@net-b.de>
kono
parents:
diff changeset
3131
kono
parents:
diff changeset
3132 * io.c (check_io_constraints): Add constrains. ID= requires
kono
parents:
diff changeset
3133 asynchronous= and asynchronous= must be init expression.
kono
parents:
diff changeset
3134
kono
parents:
diff changeset
3135 2008-04-06 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
kono
parents:
diff changeset
3136
kono
parents:
diff changeset
3137 * f95-lang.c: Set LANG_HOOKS_NAME to "GNU Fortran".
kono
parents:
diff changeset
3138
kono
parents:
diff changeset
3139 2008-04-06 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
kono
parents:
diff changeset
3140
kono
parents:
diff changeset
3141 * dump-parse-tree.c: Use fprintf, fputs and fputc instead of
kono
parents:
diff changeset
3142 gfc_status and gfc_status_char. Remove gfc_ prefix of the gfc_show_*
kono
parents:
diff changeset
3143 functions and make them static. Add new gfc_dump_parse_tree
kono
parents:
diff changeset
3144 function.
kono
parents:
diff changeset
3145 * gfortran.h (gfc_option_t): Rename verbose into dump_parse_tree.
kono
parents:
diff changeset
3146 (gfc_status, gfc_status_char): Delete prototypes.
kono
parents:
diff changeset
3147 * error.c (gfc_status, gfc_status_char): Remove functions.
kono
parents:
diff changeset
3148 * scanner.c (gfc_new_file): Use printf instead of gfc_status.
kono
parents:
diff changeset
3149 * options.c (gfc_init_options): Rename verbose into dump_parse_tree.
kono
parents:
diff changeset
3150 (gfc_handle_module_path_options): Use gfc_fatal_error instead of
kono
parents:
diff changeset
3151 gfc_status and exit.
kono
parents:
diff changeset
3152 (gfc_handle_option): Rename verbose into dump_parse_tree.
kono
parents:
diff changeset
3153 * parse.c (gfc_parse_file): Use gfc_dump_parse_tree.
kono
parents:
diff changeset
3154
kono
parents:
diff changeset
3155 2008-04-05 Jerry DeLisle <jvdelisle@gcc.gnu.org>
kono
parents:
diff changeset
3156 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
kono
parents:
diff changeset
3157
kono
parents:
diff changeset
3158 PR fortran/25829 28655
kono
parents:
diff changeset
3159 * dump-parse-tree.c (gfc_show_code_node): Show new I/O parameters.
kono
parents:
diff changeset
3160 * gfortran.h (gfc_statement): Add ST_WAIT enumerator.
kono
parents:
diff changeset
3161 (gfc_open): Add pointers for decimal, encoding, round, sign,
kono
parents:
diff changeset
3162 asynchronous. (gfc_inquire): Add pointers for asynchronous, decimal,
kono
parents:
diff changeset
3163 encoding, pending, round, sign, size, id.
kono
parents:
diff changeset
3164 (gfc_wait): New typedef struct. (gfc_dt): Add pointers for id, pos,
kono
parents:
diff changeset
3165 asynchronous, blank, decimal, delim, pad, round, sign.
kono
parents:
diff changeset
3166 (gfc_exec_op): Add EXEC_WAIT enumerator. (gfc_code): Add pointer for
kono
parents:
diff changeset
3167 wait. (gfc_free_wait), (gfc_resolve_wait): New function prototypes.
kono
parents:
diff changeset
3168 * trans-stmt.h (gfc_trans_wait): New function prototype.
kono
parents:
diff changeset
3169 * trans.c (gfc_trans_code): Add case for EXEC_WAIT.
kono
parents:
diff changeset
3170 * io.c (io_tag): Add new tags for DECIMAL, ENCODING, ROUND, SIGN,
kono
parents:
diff changeset
3171 ASYCHRONOUS, ID. (match_open_element): Add matchers for new tags.
kono
parents:
diff changeset
3172 (gfc_free_open): Free new pointers. (gfc_resolve_open): Resolve new
kono
parents:
diff changeset
3173 tags. (gfc_resolve_open): Remove comment around check for allowed
kono
parents:
diff changeset
3174 values and ASYNCHRONOUS, update it. Likewise for DECIMAL, ENCODING,
kono
parents:
diff changeset
3175 ROUND, and SIGN. (match_dt_element): Add matching for new tags.
kono
parents:
diff changeset
3176 (gfc_free_wait): New function. (gfc_resolve_wait): New function.
kono
parents:
diff changeset
3177 (match_wait_element): New function. (gfc_match_wait): New function.
kono
parents:
diff changeset
3178 * resolve.c (gfc_resolve_blocks): Add case for EXEC_WAIT.
kono
parents:
diff changeset
3179 (resolve_code): Add case for EXEC_WAIT.
kono
parents:
diff changeset
3180 * st.c (gfc_free_statement): Add case for EXEC_WAIT.
kono
parents:
diff changeset
3181 * trans-io.c (ioparam_type): Add IOPARM_ptype_wait. (gfc_st_parameter):
kono
parents:
diff changeset
3182 Add "wait" entry. (iocall): Add IOCALL_WAIT enumerator.
kono
parents:
diff changeset
3183 (gfc_build_io_library_fndecls): Add function declaration for st_wait.
kono
parents:
diff changeset
3184 (gfc_trans_open): Add mask bits for new I/O tags.
kono
parents:
diff changeset
3185 (gfc_trans_inquire): Add mask bits for new I/O tags.
kono
parents:
diff changeset
3186 (gfc_trans_wait): New translation function.
kono
parents:
diff changeset
3187 (build_dt): Add mask bits for new I/O tags.
kono
parents:
diff changeset
3188 * match.c (gfc_match_if) Add matcher for "wait".
kono
parents:
diff changeset
3189 * match.h (gfc_match_wait): Prototype for new function.
kono
parents:
diff changeset
3190 * ioparm.def: Add new I/O parameter definitions.
kono
parents:
diff changeset
3191 * parse.c (decode_statement): Add match for "wait" statement.
kono
parents:
diff changeset
3192 (next_statement): Add case for ST_WAIT. (gfc_ascii_statement): Same.
kono
parents:
diff changeset
3193
kono
parents:
diff changeset
3194 2008-04-03 Jakub Jelinek <jakub@redhat.com>
kono
parents:
diff changeset
3195
kono
parents:
diff changeset
3196 PR fortran/35786
kono
parents:
diff changeset
3197 * openmp.c (resolve_omp_clauses): Diagnose if a clause symbol
kono
parents:
diff changeset
3198 isn't a variable.
kono
parents:
diff changeset
3199
kono
parents:
diff changeset
3200 2008-04-03 Tom Tromey <tromey@redhat.com>
kono
parents:
diff changeset
3201
kono
parents:
diff changeset
3202 * Make-lang.in (fortran_OBJS): New variable.
kono
parents:
diff changeset
3203
kono
parents:
diff changeset
3204 2008-04-03 Paolo Bonzini <bonzini@gnu.org>
kono
parents:
diff changeset
3205
kono
parents:
diff changeset
3206 * f95-lang.c (insert_block): Kill.
kono
parents:
diff changeset
3207
kono
parents:
diff changeset
3208 2008-04-01 George Helffrich <george@gcc.gnu.org>
kono
parents:
diff changeset
3209
kono
parents:
diff changeset
3210 PR fortran/35154, fortran/23057
kono
parents:
diff changeset
3211 * trans-common.c (create_common): Add decl to function
kono
parents:
diff changeset
3212 chain to preserve identifier scope in debug output.
kono
parents:
diff changeset
3213
kono
parents:
diff changeset
3214 2008-04-01 Joseph Myers <joseph@codesourcery.com>
kono
parents:
diff changeset
3215
kono
parents:
diff changeset
3216 * gfortran.texi: Include gpl_v3.texi instead of gpl.texi
kono
parents:
diff changeset
3217 * Make-lang.in (GFORTRAN_TEXI): Include gpl_v3.texi instead of
kono
parents:
diff changeset
3218 gpl.texi.
kono
parents:
diff changeset
3219
kono
parents:
diff changeset
3220 2008-03-30 Paul Thomas <pault@gcc.gnu.org>
kono
parents:
diff changeset
3221
kono
parents:
diff changeset
3222 PR fortran/35740
kono
parents:
diff changeset
3223 * resolve.c (resolve_function, resolve_call): If the procedure
kono
parents:
diff changeset
3224 is elemental do not look for noncopying intrinsics.
kono
parents:
diff changeset
3225
kono
parents:
diff changeset
3226 2008-03-29 Paul Thomas <pault@gcc.gnu.org>
kono
parents:
diff changeset
3227
kono
parents:
diff changeset
3228 PR fortran/35698
kono
parents:
diff changeset
3229 * trans-array.c (gfc_array_init_size): Set 'size' zero if
kono
parents:
diff changeset
3230 negative in one dimension.
kono
parents:
diff changeset
3231
kono
parents:
diff changeset
3232 PR fortran/35702
kono
parents:
diff changeset
3233 * trans-expr.c (gfc_trans_string_copy): Only assign a char
kono
parents:
diff changeset
3234 directly if the lhs and rhs types are the same.
kono
parents:
diff changeset
3235
kono
parents:
diff changeset
3236 2008-03-28 Daniel Franke <franke.daniel@gmail.com>
kono
parents:
diff changeset
3237 Paul Richard Thomas <paul.richard.thomas@gmail.com>
kono
parents:
diff changeset
3238
kono
parents:
diff changeset
3239 PR fortran/34714
kono
parents:
diff changeset
3240 * primary.c (match_variable): Improved matching of function
kono
parents:
diff changeset
3241 result variables.
kono
parents:
diff changeset
3242 * resolve.c (resolve_allocate_deallocate): Removed checks if
kono
parents:
diff changeset
3243 the actual argument for STAT is a variable.
kono
parents:
diff changeset
3244
kono
parents:
diff changeset
3245 2008-03-28 Tobias Burnus <burnus@net-b.de>
kono
parents:
diff changeset
3246
kono
parents:
diff changeset
3247 * symbol.c (gfc_get_default_type): Fix error message; option
kono
parents:
diff changeset
3248 -fallow_leading_underscore should be -fallow-leading-underscore
kono
parents:
diff changeset
3249
kono
parents:
diff changeset
3250 2008-03-27 Jerry DeLisle <jvdelisle@gcc.gnu.org>
kono
parents:
diff changeset
3251
kono
parents:
diff changeset
3252 PR fortran/35724
kono
parents:
diff changeset
3253 * iresolve.c (gfc_resolve_cshift): Check for NULL symtree in test for
kono
parents:
diff changeset
3254 optional argument attribute.
kono
parents:
diff changeset
3255
kono
parents:
diff changeset
3256 2008-03-27 Tom Tromey <tromey@redhat.com>
kono
parents:
diff changeset
3257
kono
parents:
diff changeset
3258 * Make-lang.in: Revert automatic dependency patch.
kono
parents:
diff changeset
3259
kono
parents:
diff changeset
3260 2008-03-25 Tom Tromey <tromey@redhat.com>
kono
parents:
diff changeset
3261
kono
parents:
diff changeset
3262 * Make-lang.in: Remove .o targets.
kono
parents:
diff changeset
3263 (fortran_OBJS): New variable.
kono
parents:
diff changeset
3264 (fortran/gfortranspec.o): Move to fortran/. Reduce to variable
kono
parents:
diff changeset
3265 setting.
kono
parents:
diff changeset
3266 (GFORTRAN_D_OBJS): Update.
kono
parents:
diff changeset
3267 (GFORTRAN_TRANS_DEPS): Remove.
kono
parents:
diff changeset
3268
kono
parents:
diff changeset
3269 2008-03-24 Paul Thomas <pault@gcc.gnu.org>
kono
parents:
diff changeset
3270
kono
parents:
diff changeset
3271 PR fortran/34813
kono
parents:
diff changeset
3272 * resolve.c (resolve_structure_cons): It is an error to assign
kono
parents:
diff changeset
3273 NULL to anything other than a pointer or allocatable component.
kono
parents:
diff changeset
3274
kono
parents:
diff changeset
3275 PR fortran/33295
kono
parents:
diff changeset
3276 * resolve.c (resolve_symbol): If the symbol is a derived type,
kono
parents:
diff changeset
3277 resolve the derived type. If the symbol is a derived type
kono
parents:
diff changeset
3278 function, ensure that the derived type is visible in the same
kono
parents:
diff changeset
3279 namespace as the function.
kono
parents:
diff changeset
3280
kono
parents:
diff changeset
3281 2008-03-23 Tobias Schlüter <tobi@gcc.gnu.org>
kono
parents:
diff changeset
3282
kono
parents:
diff changeset
3283 * trans.h: Use fold_build in build1_v, build2_v and build3_v
kono
parents:
diff changeset
3284 macros.
kono
parents:
diff changeset
3285 * trans-openmp.c (gfc_trans_omp_critical, gfc_trans_omp_single):
kono
parents:
diff changeset
3286 Don't use build2_v macro.
kono
parents:
diff changeset
3287
kono
parents:
diff changeset
3288 2008-03-19 Daniel Franke <franke.daniel@gmail.com>
kono
parents:
diff changeset
3289
kono
parents:
diff changeset
3290 PR fortran/35152
kono
parents:
diff changeset
3291 * interface.c (gfc_procedure_use): Check for keyworded arguments in
kono
parents:
diff changeset
3292 procedures without explicit interfaces.
kono
parents:
diff changeset
3293
kono
parents:
diff changeset
3294 2008-03-16 Paul Thomas <pault@gcc.gnu.org>
kono
parents:
diff changeset
3295
kono
parents:
diff changeset
3296 PR fortran/35470
kono
parents:
diff changeset
3297 * resolve.c (check_assumed_size_reference): Only visit the
kono
parents:
diff changeset
3298 first reference and look directly at the highest dimension.
kono
parents:
diff changeset
3299
kono
parents:
diff changeset
3300 2008-03-15 Jerry DeLisle <jvdelisle@gcc.gnu.org>
kono
parents:
diff changeset
3301
kono
parents:
diff changeset
3302 PR fortran/35184
kono
parents:
diff changeset
3303 * trans-array.c (gfc_conv_array_index_offset): Remove unnecessary
kono
parents:
diff changeset
3304 assert.
kono
parents:
diff changeset
3305
kono
parents:
diff changeset
3306 2008-03-15 Daniel Franke <franke.daniel@gmail.com>
kono
parents:
diff changeset
3307
kono
parents:
diff changeset
3308 PR fortran/35584
kono
parents:
diff changeset
3309 * resolve.c (resolve_branch): Less strict and pessimistic warning
kono
parents:
diff changeset
3310 message.
kono
parents:
diff changeset
3311
kono
parents:
diff changeset
3312 2008-03-11 Paolo Bonzini <bonzini@gnu.org>
kono
parents:
diff changeset
3313
kono
parents:
diff changeset
3314 * f95-lang.c (LANG_HOOKS_CLEAR_BINDING_STACK): Delete.
kono
parents:
diff changeset
3315 (gfc_be_parse_file): Call clear_binding_stack from here.
kono
parents:
diff changeset
3316 (gfc_clear_binding_stack): Rename to clear_binding_stack.
kono
parents:
diff changeset
3317
kono
parents:
diff changeset
3318 2008-03-09 Paul Thomas <pault@gcc.gnu.org>
kono
parents:
diff changeset
3319
kono
parents:
diff changeset
3320 PR fortran/35474
kono
parents:
diff changeset
3321 * module.c (mio_symtree_ref): After providing a symbol for a
kono
parents:
diff changeset
3322 missing equivalence member, resolve and NULL the fixups.
kono
parents:
diff changeset
3323
kono
parents:
diff changeset
3324 2008-03-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
kono
parents:
diff changeset
3325
kono
parents:
diff changeset
3326 * invoke.texi (Error and Warning Options): Document
kono
parents:
diff changeset
3327 -Wline-truncation.
kono
parents:
diff changeset
3328
kono
parents:
diff changeset
3329 2008-03-08 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
kono
parents:
diff changeset
3330
kono
parents:
diff changeset
3331 PR fortran/34956
kono
parents:
diff changeset
3332 * trans-array.c (gfc_conv_ss_startstride): Fix the logic to avoid
kono
parents:
diff changeset
3333 checking bounds of absent optional arguments.
kono
parents:
diff changeset
3334
kono
parents:
diff changeset
3335 2008-03-06 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
kono
parents:
diff changeset
3336
kono
parents:
diff changeset
3337 PR fortran/33197
kono
parents:
diff changeset
3338 * intrinsic.c (add_functions): Add simplification routines for
kono
parents:
diff changeset
3339 ERF, DERF, ERFC and DERFC.
kono
parents:
diff changeset
3340 * decl.c (gfc_match_suffix, gfc_match_subroutine): Change GNU
kono
parents:
diff changeset
3341 extensions into Fortran 2008 features.
kono
parents:
diff changeset
3342 * intrinsic.h (gfc_simplify_erf, gfc_simplify_erfc): New
kono
parents:
diff changeset
3343 prototypes.
kono
parents:
diff changeset
3344 * simplify.c (gfc_simplify_erf, gfc_simplify_erfc): New functions.
kono
parents:
diff changeset
3345
kono
parents:
diff changeset
3346 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
kono
parents:
diff changeset
3347
kono
parents:
diff changeset
3348 PR fortran/33197
kono
parents:
diff changeset
3349 * intrinsic.c (add_functions): Modify intrinsics ACOSH, ASINH,
kono
parents:
diff changeset
3350 ATANH, ERF, ERFC and GAMMA. Add intrinsics BESSEL_{J,Y}{0,1,N},
kono
parents:
diff changeset
3351 ERFC_SCALED, LOG_GAMMA and HYPOT.
kono
parents:
diff changeset
3352 * intrinsic.h (gfc_check_hypot, gfc_simplify_hypot,
kono
parents:
diff changeset
3353 gfc_resolve_hypot): New prototypes.
kono
parents:
diff changeset
3354 * mathbuiltins.def: Add HYPOT builtin. Make complex versions of
kono
parents:
diff changeset
3355 ACOSH, ASINH and ATANH available.
kono
parents:
diff changeset
3356 * gfortran.h (GFC_ISYM_ERFC_SCALED, GFC_ISYM_HYPOT): New values.
kono
parents:
diff changeset
3357 * lang.opt: Add -std=f2008 option.
kono
parents:
diff changeset
3358 * libgfortran.h: Define GFC_STD_F2008.
kono
parents:
diff changeset
3359 * lang-specs.h: Add .f08 and .F08 file suffixes.
kono
parents:
diff changeset
3360 * iresolve.c (gfc_resolve_hypot): New function.
kono
parents:
diff changeset
3361 * parse.c (parse_contained): Allow empty CONTAINS for Fortran 2008.
kono
parents:
diff changeset
3362 * check.c (gfc_check_hypot): New function.
kono
parents:
diff changeset
3363 * trans-intrinsic.c (gfc_intrinsic_map): Define ERFC_SCALE builtin.
kono
parents:
diff changeset
3364 * options.c (set_default_std_flags): Allow Fortran 2008 by default.
kono
parents:
diff changeset
3365 (form_from_filename): Add .f08 suffix.
kono
parents:
diff changeset
3366 (gfc_handle_option): Handle -std=f2008 option.
kono
parents:
diff changeset
3367 * simplify.c (gfc_simplify_hypot): New function.
kono
parents:
diff changeset
3368 * gfortran.texi: Document Fortran 2008 status and file extensions.
kono
parents:
diff changeset
3369 * intrinsic.texi: Document new BESSEL_{J,Y}{0,1,N} intrinsics,
kono
parents:
diff changeset
3370 as well as HYPOT and ERFC_SCALED. Update documentation of ERF,
kono
parents:
diff changeset
3371 ERFC, GAMMA, LGAMMA, ASINH, ACOSH and ATANH.
kono
parents:
diff changeset
3372 * invoke.texi: Document the new -std=f2008 option.
kono
parents:
diff changeset
3373
kono
parents:
diff changeset
3374 2008-03-02 Jakub Jelinek <jakub@redhat.com>
kono
parents:
diff changeset
3375
kono
parents:
diff changeset
3376 * gfortranspec.c (lang_specific_driver): Update copyright notice
kono
parents:
diff changeset
3377 dates.
kono
parents:
diff changeset
3378
kono
parents:
diff changeset
3379 2008-02-29 Jerry DeLisle <jvdelisle@gcc.gnu.org>
kono
parents:
diff changeset
3380
kono
parents:
diff changeset
3381 PR fortran/35059
kono
parents:
diff changeset
3382 * expr.c (find_array_element): Modify traversing the constructor to
kono
parents:
diff changeset
3383 avoid trying to access NULL memory pointed to by next for the
kono
parents:
diff changeset
3384 last element. (find_array_section): Exit while loop if cons->next is
kono
parents:
diff changeset
3385 NULL.
kono
parents:
diff changeset
3386 * trans-expr.c (gfc_conv_scalar_char_value): Initialize gfc_typespec.
kono
parents:
diff changeset
3387 (gfc_conv_function_call): Same.
kono
parents:
diff changeset
3388 * decl.c (gfc_match_implicit): Same.
kono
parents:
diff changeset
3389 * trans-intrinsic.c (gfc_conv_intrinsic_sr_kind): Same.
kono
parents:
diff changeset
3390
kono
parents:
diff changeset
3391 2008-02-28 Daniel Franke <franke.daniel@gmail.com>
kono
parents:
diff changeset
3392
kono
parents:
diff changeset
3393 PR fortran/31463
kono
parents:
diff changeset
3394 PR fortran/33950
kono
parents:
diff changeset
3395 PR fortran/34296
kono
parents:
diff changeset
3396 * lang.opt: Added -Wreturn-type.
kono
parents:
diff changeset
3397 * options.c (gfc_handle_option): Recognize -Wreturn-type.
kono
parents:
diff changeset
3398 * trans-decl.c (gfc_trans_deferred_vars): Emit warnings for funtions
kono
parents:
diff changeset
3399 where the result value is not set.
kono
parents:
diff changeset
3400 (gfc_generate_function_code): Likewise.
kono
parents:
diff changeset
3401 (generate_local_decl): Emit warnings for funtions whose RESULT
kono
parents:
diff changeset
3402 variable is not set.
kono
parents:
diff changeset
3403
kono
parents:
diff changeset
3404 2008-02-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
kono
parents:
diff changeset
3405
kono
parents:
diff changeset
3406 PR fortran/34868
kono
parents:
diff changeset
3407 * trans-expr.c (gfc_conv_variable): Don't build indirect
kono
parents:
diff changeset
3408 references when explicit interface is mandated.
kono
parents:
diff changeset
3409 * resolve.c (resolve_formal_arglist): Set attr.always_explicit
kono
parents:
diff changeset
3410 on the result symbol as well as the procedure symbol.
kono
parents:
diff changeset
3411
kono
parents:
diff changeset
3412 2008-02-27 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
kono
parents:
diff changeset
3413
kono
parents:
diff changeset
3414 PR fortran/33387
kono
parents:
diff changeset
3415 * trans.h: Remove prototypes for gfor_fndecl_math_exponent4,
kono
parents:
diff changeset
3416 gfor_fndecl_math_exponent8, gfor_fndecl_math_exponent10 and
kono
parents:
diff changeset
3417 gfor_fndecl_math_exponent16.
kono
parents:
diff changeset
3418 * f95-lang.c (build_builtin_fntypes): Add new function types.
kono
parents:
diff changeset
3419 (gfc_init_builtin_functions): Add new builtins for nextafter,
kono
parents:
diff changeset
3420 frexp, ldexp, fabs, scalbn and inf.
kono
parents:
diff changeset
3421 * iresolve.c (gfc_resolve_rrspacing): Don't add hidden arguments.
kono
parents:
diff changeset
3422 (gfc_resolve_scale): Don't convert type of second argument.
kono
parents:
diff changeset
3423 (gfc_resolve_set_exponent): Likewise.
kono
parents:
diff changeset
3424 (gfc_resolve_size): Don't add hidden arguments.
kono
parents:
diff changeset
3425 * trans-decl.c: Remove gfor_fndecl_math_exponent4,
kono
parents:
diff changeset
3426 gfor_fndecl_math_exponent8, gfor_fndecl_math_exponent10 and
kono
parents:
diff changeset
3427 gfor_fndecl_math_exponent16.
kono
parents:
diff changeset
3428 * trans-intrinsic.c (gfc_intrinsic_map): Remove intrinsics
kono
parents:
diff changeset
3429 for scalbn, fraction, nearest, rrspacing, set_exponent and
kono
parents:
diff changeset
3430 spacing.
kono
parents:
diff changeset
3431 (gfc_conv_intrinsic_exponent): Directly call frexp.
kono
parents:
diff changeset
3432 (gfc_conv_intrinsic_fraction, gfc_conv_intrinsic_nearest,
kono
parents:
diff changeset
3433 gfc_conv_intrinsic_spacing, gfc_conv_intrinsic_rrspacing,
kono
parents:
diff changeset
3434 gfc_conv_intrinsic_scale, gfc_conv_intrinsic_set_exponent): New
kono
parents:
diff changeset
3435 functions.
kono
parents:
diff changeset
3436 (gfc_conv_intrinsic_function): Use the new functions above.
kono
parents:
diff changeset
3437
kono
parents:
diff changeset
3438 2008-02-26 Tobias Burnus <burnus@net-b.de>
kono
parents:
diff changeset
3439
kono
parents:
diff changeset
3440 PR fortran/35033
kono
parents:
diff changeset
3441 * interface.c (check_operator_interface): Show better line for error
kono
parents:
diff changeset
3442 messages; fix constrains for user-defined assignment operators.
kono
parents:
diff changeset
3443 (gfc_extend_assign): Fix constrains for user-defined assignment
kono
parents:
diff changeset
3444 operators.
kono
parents:
diff changeset
3445
kono
parents:
diff changeset
3446 2008-02-26 Tom Tromey <tromey@redhat.com>
kono
parents:
diff changeset
3447
kono
parents:
diff changeset
3448 * trans-io.c (set_error_locus): Remove old location code.
kono
parents:
diff changeset
3449 * trans-decl.c (gfc_set_decl_location): Remove old location code.
kono
parents:
diff changeset
3450 * f95-lang.c (gfc_init): Remove test of USE_MAPPED_LOCATION.
kono
parents:
diff changeset
3451 * scanner.c (gfc_gobble_whitespace): Remove old location code.
kono
parents:
diff changeset
3452 (get_file): Likewise.
kono
parents:
diff changeset
3453 (preprocessor_line): Likewise.
kono
parents:
diff changeset
3454 (load_file): Likewise.
kono
parents:
diff changeset
3455 (gfc_new_file): Likewise.
kono
parents:
diff changeset
3456 * trans.c (gfc_trans_runtime_check): Remove old location code.
kono
parents:
diff changeset
3457 (gfc_get_backend_locus): Likewise.
kono
parents:
diff changeset
3458 (gfc_set_backend_locus): Likewise.
kono
parents:
diff changeset
3459 * data.c (gfc_assign_data_value): Remove old location code.
kono
parents:
diff changeset
3460 * error.c (show_locus): Remove old location code.
kono
parents:
diff changeset
3461 * gfortran.h (gfc_linebuf): Remove old location code.
kono
parents:
diff changeset
3462 (gfc_linebuf_linenum): Remove old-location variant.
kono
parents:
diff changeset
3463
kono
parents:
diff changeset
3464 2008-02-25 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
kono
parents:
diff changeset
3465
kono
parents:
diff changeset
3466 PR fortran/34729
kono
parents:
diff changeset
3467 * trans-const.c (gfc_build_string_const): Don't call gettext.
kono
parents:
diff changeset
3468 (gfc_build_localized_string_const): New function.
kono
parents:
diff changeset
3469 * trans-const.h (gfc_build_localized_string_const): New prototype.
kono
parents:
diff changeset
3470 * trans.c (gfc_trans_runtime_check): Use
kono
parents:
diff changeset
3471 gfc_build_localized_string_const instead of gfc_build_string_const.
kono
parents:
diff changeset
3472 (gfc_call_malloc): Likewise.
kono
parents:
diff changeset
3473 (gfc_allocate_with_status): Likewise.
kono
parents:
diff changeset
3474 (gfc_allocate_array_with_status): Likewise.
kono
parents:
diff changeset
3475 (gfc_deallocate_with_status): Likewise.
kono
parents:
diff changeset
3476 (gfc_call_realloc): Likewise.
kono
parents:
diff changeset
3477 * trans-io.c (gfc_trans_io_runtime_check): Likewise.
kono
parents:
diff changeset
3478
kono
parents:
diff changeset
3479 2008-02-24 Tobias Schlüter <tobi@gcc.gnu.org>
kono
parents:
diff changeset
3480
kono
parents:
diff changeset
3481 * arith.c: Update copyright years.
kono
parents:
diff changeset
3482 * arith.h: Likewise.
kono
parents:
diff changeset
3483 * array.c: Likewise.
kono
parents:
diff changeset
3484 * bbt.c: Likewise.
kono
parents:
diff changeset
3485 * check.c: Likewise.
kono
parents:
diff changeset
3486 * data.c: Likewise.
kono
parents:
diff changeset
3487 * data.h: Likewise.
kono
parents:
diff changeset
3488 * decl.c: Likewise.
kono
parents:
diff changeset
3489 * dependency.c: Likewise.
kono
parents:
diff changeset
3490 * dependency.h: Likewise.
kono
parents:
diff changeset
3491 * dump-parse-tree.c: Likewise.
kono
parents:
diff changeset
3492 * error.c: Likewise.
kono
parents:
diff changeset
3493 * expr.c: Likewise.
kono
parents:
diff changeset
3494 * gfc-internals.texi: Likewise.
kono
parents:
diff changeset
3495 * gfortran.h: Likewise.
kono
parents:
diff changeset
3496 * gfortran.texi: Likewise.
kono
parents:
diff changeset
3497 * gfortranspec.c: Likewise.
kono
parents:
diff changeset
3498 * interface.c: Likewise.
kono
parents:
diff changeset
3499 * intrinsic.c: Likewise.
kono
parents:
diff changeset
3500 * intrinsic.h: Likewise.
kono
parents:
diff changeset
3501 * intrinsic.texi: Likewise.
kono
parents:
diff changeset
3502 * invoke.texi: Likewise.
kono
parents:
diff changeset
3503 * io.c: Likewise.
kono
parents:
diff changeset
3504 * iresolve.c: Likewise.
kono
parents:
diff changeset
3505 * iso-c-binding.def: Likewise.
kono
parents:
diff changeset
3506 * iso-fortran-env.def: Likewise.
kono
parents:
diff changeset
3507 * lang-specs.h: Likewise.
kono
parents:
diff changeset
3508 * lang.opt: Likewise.
kono
parents:
diff changeset
3509 * libgfortran.h: Likewise.
kono
parents:
diff changeset
3510 * match.c: Likewise.
kono
parents:
diff changeset
3511 * match.h: Likewise.
kono
parents:
diff changeset
3512 * matchexp.c: Likewise.
kono
parents:
diff changeset
3513 * misc.c: Likewise.
kono
parents:
diff changeset
3514 * module.c: Likewise.
kono
parents:
diff changeset
3515 * openmp.c: Likewise.
kono
parents:
diff changeset
3516 * options.c: Likewise.
kono
parents:
diff changeset
3517 * parse.c: Likewise.
kono
parents:
diff changeset
3518 * parse.h: Likewise.
kono
parents:
diff changeset
3519 * primary.c: Likewise.
kono
parents:
diff changeset
3520 * resolve.c: Likewise.
kono
parents:
diff changeset
3521 * scanner.c: Likewise.
kono
parents:
diff changeset
3522 * simplify.c: Likewise.
kono
parents:
diff changeset
3523 * st.c: Likewise.
kono
parents:
diff changeset
3524 * symbol.c: Likewise.
kono
parents:
diff changeset
3525 * target-memory.c: Likewise.
kono
parents:
diff changeset
3526 * target-memory.h: Likewise.
kono
parents:
diff changeset
3527 * trans-array.h: Likewise.
kono
parents:
diff changeset
3528 * trans-const.h: Likewise.
kono
parents:
diff changeset
3529 * trans-stmt.h: Likewise.
kono
parents:
diff changeset
3530 * trans-types.c: Likewise.
kono
parents:
diff changeset
3531 * trans-types.h: Likewise.
kono
parents:
diff changeset
3532 * types.def: Likewise.
kono
parents:
diff changeset
3533
kono
parents:
diff changeset
3534 2008-02-24 Jerry DeLisle <jvdelisle@gcc.gnu.org>
kono
parents:
diff changeset
3535
kono
parents:
diff changeset
3536 PR fortran/35223
kono
parents:
diff changeset
3537 * simplify.c (gfc_simplify_ibclr), (gfc_simplify_ibits),
kono
parents:
diff changeset
3538 (gfc_simplify_ibset): Remove call to range_check.
kono
parents:
diff changeset
3539 (simplify_cmplx), (gfc_simplify_dble), (gfc_simplify_float)
kono
parents:
diff changeset
3540 (gfc_simplify_real): Add call gfc_clear_ts to initialize the
kono
parents:
diff changeset
3541 temporary gfc_typspec variable.
kono
parents:
diff changeset
3542
kono
parents:
diff changeset
3543 2008-02-24 Tobias Schlüter <tobi@gcc.gnu.org>
kono
parents:
diff changeset
3544
kono
parents:
diff changeset
3545 * trans-array.c (gfc_conv_descriptor_data_get,
kono
parents:
diff changeset
3546 gfc_conv_descriptor_data_set_internal,
kono
parents:
diff changeset
3547 gfc_conv_descriptor_data_addr, gfc_conv_descriptor_offset,
kono
parents:
diff changeset
3548 gfc_conv_descriptor_dtype, gfc_conv_descriptor_dimension,
kono
parents:
diff changeset
3549 gfc_conv_descriptor_stride, gfc_conv_descriptor_lbound,
kono
parents:
diff changeset
3550 gfc_conv_descriptor_ubound, gfc_trans_create_temp_array,
kono
parents:
diff changeset
3551 gfc_conv_array_transpose, gfc_grow_array,
kono
parents:
diff changeset
3552 gfc_trans_array_constructor_subarray,
kono
parents:
diff changeset
3553 gfc_trans_array_constructor_value, gfc_trans_scalarized_loop_end,
kono
parents:
diff changeset
3554 gfc_array_init_size, gfc_array_allocate, gfc_array_deallocate,
kono
parents:
diff changeset
3555 gfc_conv_array_initializer, gfc_trans_array_bounds,
kono
parents:
diff changeset
3556 gfc_trans_auto_array_allocation, gfc_trans_dummy_array_bias,
kono
parents:
diff changeset
3557 gfc_get_dataptr_offset, gfc_conv_array_parameter,
kono
parents:
diff changeset
3558 gfc_trans_dealloc_allocated, get_full_array_size,
kono
parents:
diff changeset
3559 gfc_duplicate_allocatable, structure_alloc_comps): Use fold_buildN
kono
parents:
diff changeset
3560 instead of buildN.
kono
parents:
diff changeset
3561 * trans-expr.c (gfc_conv_expr_present, gfc_conv_missing_dummy,
kono
parents:
diff changeset
3562 gfc_conv_component_ref, gfc_conv_cst_int_power,
kono
parents:
diff changeset
3563 gfc_conv_function_call, gfc_trans_structur_assign): Likewise.
kono
parents:
diff changeset
3564 * trans-common.c (create_common): Likewise.
kono
parents:
diff changeset
3565 * trans-openmp.c (gfc_trans_omp_atomic, gfc_trans_omp_do):
kono
parents:
diff changeset
3566 Likewise.
kono
parents:
diff changeset
3567 * trans-const.c (gfc_conv_constant_to_tree): Likewise.
kono
parents:
diff changeset
3568 * trans-stmt.c (gfc_trans_goto, gfc_trans_return, gfc_trans_do,
kono
parents:
diff changeset
3569 gfc_trans_integer_select, gfc_trans_character_select,
kono
parents:
diff changeset
3570 gfc_trans_forall_loop, compute_overall_iter_number,
kono
parents:
diff changeset
3571 gfc_trans_forall_1, gfc_evaluate_where_mask, gfc_trans_allocate,
kono
parents:
diff changeset
3572 gfc_trans_deallocate): Likewise.
kono
parents:
diff changeset
3573 * trans.c (gfc_build_addr_expr, gfc_trans_runtime_check,
kono
parents:
diff changeset
3574 gfc_allocate_with_status, gfc_allocate_array_with_status,
kono
parents:
diff changeset
3575 gfc_deallocate_with_status): Likewise.
kono
parents:
diff changeset
3576 * f95-lang.c (gfc_truthvalue_conversion): Likewise.
kono
parents:
diff changeset
3577 * trans-io.c (set_parameter_const, set_parameter_value,
kono
parents:
diff changeset
3578 set_parameter_ref, set_string, set_internal_unit, io_result,
kono
parents:
diff changeset
3579 set_error_locus, nml_get_addr_expr, transfer_expr): Likewise.
kono
parents:
diff changeset
3580 * trans-decl.c (gfc_build_qualified_array, build_entry_thunks,
kono
parents:
diff changeset
3581 gfc_get_fake_result_decl, gfc_trans_auto_character_variable,
kono
parents:
diff changeset
3582 gfc_generate_function_code): Likewise.
kono
parents:
diff changeset
3583 * convert.c (convert): Likewise.
kono
parents:
diff changeset
3584 * trans-intrinsic.c (gfc_conv_intrinsic_conversion,
kono
parents:
diff changeset
3585 build_fixbound_expr, build_fix_expr, gfc_conv_intrinsic_aint,
kono
parents:
diff changeset
3586 gfc_conv_intrinsic_int, gfc_conv_intrinsic_imagpart,
kono
parents:
diff changeset
3587 gfc_conv_intrinsic_conjg, gfc_conv_intrinsic_abs,
kono
parents:
diff changeset
3588 gfc_conv_intrinsic_cmplx, gfc_conv_intrinsic_mod,
kono
parents:
diff changeset
3589 gfc_conv_intrinsic_dim, gfc_conv_intrinsic_dprod,
kono
parents:
diff changeset
3590 gfc_conv_intrinsic_ctime, gfc_conv_intrinsic_fdate,
kono
parents:
diff changeset
3591 gfc_conv_intrinsic_ttynam, gfc_conv_intrinsic_minmax,
kono
parents:
diff changeset
3592 gfc_conv_intrinsic_minmax_char, gfc_conv_intrinsic_count,
kono
parents:
diff changeset
3593 gfc_conv_intrinsic_arith, gfc_conv_intrinsic_dot_product,
kono
parents:
diff changeset
3594 gfc_conv_intrinsic_minmaxloc, gfc_conv_intrinsic_minmaxval,
kono
parents:
diff changeset
3595 gfc_conv_intrinsic_btest, gfc_conv_intrinsic_not,
kono
parents:
diff changeset
3596 gfc_conv_intrinsic_ibits, gfc_conv_intrinsic_ishft,
kono
parents:
diff changeset
3597 gfc_conv_intrinsic_ichar, gfc_conv_intrinsic_size,
kono
parents:
diff changeset
3598 gfc_conv_intrinsic_array_transfer, gfc_conv_intrinsic_transfer,
kono
parents:
diff changeset
3599 gfc_conv_allocated, gfc_conv_associated, gfc_conv_intrinsic_trim,
kono
parents:
diff changeset
3600 gfc_conv_intrinsic_repeat): Likewise.
kono
parents:
diff changeset
3601
kono
parents:
diff changeset
3602 2008-02-23 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
kono
parents:
diff changeset
3603
kono
parents:
diff changeset
3604 PR target/25477
kono
parents:
diff changeset
3605 * trans-expr.c (gfc_conv_power_op): Use BUILT_IN_CPOW{F,,L}.
kono
parents:
diff changeset
3606 * f95-lang.c (gfc_init_builtin_functions): Define BUILT_IN_CPOW{F,,L}.
kono
parents:
diff changeset
3607 * trans.h (gfor_fndecl_math_cpow, gfor_fndecl_math_cpowf,
kono
parents:
diff changeset
3608 gfor_fndecl_math_cpowl10, gfor_fndecl_math_cpowl16): Remove.
kono
parents:
diff changeset
3609 * trans-decl.c: Likewise.
kono
parents:
diff changeset
3610
kono
parents:
diff changeset
3611 2008-02-22 Jerry DeLisle <jvdelisle@gcc.gnu.org>
kono
parents:
diff changeset
3612
kono
parents:
diff changeset
3613 PR fortran/35059
kono
parents:
diff changeset
3614 * expr.c (find_array_element): Modify traversing the constructor to
kono
parents:
diff changeset
3615 avoid trying to access NULL memory pointed to by next for the
kono
parents:
diff changeset
3616 last element. (find_array_section): Exit while loop if cons->next is
kono
parents:
diff changeset
3617 NULL.
kono
parents:
diff changeset
3618
kono
parents:
diff changeset
3619 2008-02-22 Jerry DeLisle <jvdelisle@gcc.gnu.org>
kono
parents:
diff changeset
3620
kono
parents:
diff changeset
3621 PR fortran/34907
kono
parents:
diff changeset
3622 * iresolve.c (resolve_mask_arg): Add gfc_clear_ts to initialize
kono
parents:
diff changeset
3623 structure.
kono
parents:
diff changeset
3624 (gfc_resolve_aint): Likewise.
kono
parents:
diff changeset
3625 (gfc_resolve_anint): Likewise.
kono
parents:
diff changeset
3626 (gfc_resolve_besn): Likewise.
kono
parents:
diff changeset
3627 (gfc_resolve_cshift): Likewise.
kono
parents:
diff changeset
3628 (gfc_resolve_ctime): Likewise.
kono
parents:
diff changeset
3629 (gfc_resolve_eoshift): Likewise.
kono
parents:
diff changeset
3630 (gfc_resolve_index_func): Likewise.
kono
parents:
diff changeset
3631 (gfc_resolve_isatty): Likewise.
kono
parents:
diff changeset
3632 (gfc_resolve_malloc): Likewise.
kono
parents:
diff changeset
3633 (gfc_resolve_rrspacing): Likewise.
kono
parents:
diff changeset
3634 (gfc_resolve_scale): Likewise.
kono
parents:
diff changeset
3635 (gfc_resolve_set_exponent): Likewise.
kono
parents:
diff changeset
3636 (gfc_resolve_spacing): Likewise.
kono
parents:
diff changeset
3637 (gfc_resolve_spacing): Likewise.
kono
parents:
diff changeset
3638 (gfc_resolve_fgetc): Likewise.
kono
parents:
diff changeset
3639 (gfc_resolve_fputc): Likewise.
kono
parents:
diff changeset
3640 (gfc_resolve_ftell): Likewise.
kono
parents:
diff changeset
3641 (gfc_resolve_ttynam): Likewise.
kono
parents:
diff changeset
3642 (gfc_resolve_alarm_sub): Likewise.
kono
parents:
diff changeset
3643 (gfc_resolve_mvbits): Likewise.
kono
parents:
diff changeset
3644 (gfc_resolve_getarg): Likewise.
kono
parents:
diff changeset
3645 (gfc_resolve_signal_sub): Likewise.
kono
parents:
diff changeset
3646 (gfc_resolve_exit): Likewise.
kono
parents:
diff changeset
3647 (gfc_resolve_flush): Likewise.
kono
parents:
diff changeset
3648 (gfc_resolve_free): Likewise.
kono
parents:
diff changeset
3649 (gfc_resolve_ctime_sub): Likewise.
kono
parents:
diff changeset
3650 (gfc_resolve_fgetc_sub): Likewise.
kono
parents:
diff changeset
3651 (gfc_resolve_fputc_sub): Likewise.
kono
parents:
diff changeset
3652 (gfc_resolve_fseek_sub): Likewise.
kono
parents:
diff changeset
3653 (gfc_resolve_ftell_sub): Likewise.
kono
parents:
diff changeset
3654 (gfc_resolve_ttynam_sub): Likewise.
kono
parents:
diff changeset
3655
kono
parents:
diff changeset
3656 2008-02-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
kono
parents:
diff changeset
3657
kono
parents:
diff changeset
3658 * gfc-internals.texi: Fix typos and markup nits.
kono
parents:
diff changeset
3659 * gfortran.texi: Likewise.
kono
parents:
diff changeset
3660 * intrinsic.texi: Likewise.
kono
parents:
diff changeset
3661
kono
parents:
diff changeset
3662 2008-02-21 Richard Guenther <rguenther@suse.de>
kono
parents:
diff changeset
3663
kono
parents:
diff changeset
3664 * trans-expr.c (gfc_conv_expr_op): Expand INTRINSIC_PARENTHESES
kono
parents:
diff changeset
3665 as unary PAREN_EXPR for real and complex typed expressions.
kono
parents:
diff changeset
3666 (gfc_conv_unary_op): Fold the built tree.
kono
parents:
diff changeset
3667
kono
parents:
diff changeset
3668 2008-02-20 Tobias Burnus <burnus@net-b.de>
kono
parents:
diff changeset
3669
kono
parents:
diff changeset
3670 PR fortran/34997
kono
parents:
diff changeset
3671 * match.c (gfc_match_name): Improve error message for '$'.
kono
parents:
diff changeset
3672
kono
parents:
diff changeset
3673 2008-02-19 Daniel Franke <franke.daniel@gmail.com>
kono
parents:
diff changeset
3674
kono
parents:
diff changeset
3675 PR fortran/35030
kono
parents:
diff changeset
3676 * expr.c (gfc_check_pointer_assign): Add type and kind information
kono
parents:
diff changeset
3677 to type-mismatch message.
kono
parents:
diff changeset
3678 (gfc_check_assign): Unify error messages.
kono
parents:
diff changeset
3679
kono
parents:
diff changeset
3680 2008-02-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
kono
parents:
diff changeset
3681
kono
parents:
diff changeset
3682 PR fortran/34952
kono
parents:
diff changeset
3683 * gfortran.texi: Create new section for unimplemented extensions.
kono
parents:
diff changeset
3684 Add "STRUCTURE and RECORD" and "ENCODE and DECODE statements".
kono
parents:
diff changeset
3685 Remove "smaller projects" list. Fix a few typos.
kono
parents:
diff changeset
3686
kono
parents:
diff changeset
3687 2008-02-15 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
kono
parents:
diff changeset
3688
kono
parents:
diff changeset
3689 * intrinsic.texi: Rename INDEX node to avoid clashing with
kono
parents:
diff changeset
3690 index.html on case-insensitive systems.
kono
parents:
diff changeset
3691
kono
parents:
diff changeset
3692 2008-02-15 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
kono
parents:
diff changeset
3693
kono
parents:
diff changeset
3694 PR fortran/35150
kono
parents:
diff changeset
3695 * trans-expr.c (gfc_conv_function_call): Force evaluation of
kono
parents:
diff changeset
3696 se->expr.
kono
parents:
diff changeset
3697
kono
parents:
diff changeset
3698 2008-02-10 Daniel Franke <franke.daniel@gmail.com>
kono
parents:
diff changeset
3699
kono
parents:
diff changeset
3700 PR fortran/35019
kono
parents:
diff changeset
3701 * lang.opt: Allow '-J<dir>' next to '-J <dir>',
kono
parents:
diff changeset
3702 likewise '-I <dir>' and '-I<dir>'.
kono
parents:
diff changeset
3703
kono
parents:
diff changeset
3704 2008-02-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
kono
parents:
diff changeset
3705
kono
parents:
diff changeset
3706 PR other/35107
kono
parents:
diff changeset
3707 * Make-lang.in (f951): Add $(GMPLIBS).
kono
parents:
diff changeset
3708
kono
parents:
diff changeset
3709 2008-02-05 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
kono
parents:
diff changeset
3710
kono
parents:
diff changeset
3711 PR fortran/35037
kono
parents:
diff changeset
3712 * trans-common.c (build_field): Mark fields as volatile when needed.
kono
parents:
diff changeset
3713
kono
parents:
diff changeset
3714 2008-02-05 Tobias Burnus <burnus@net-b.de>
kono
parents:
diff changeset
3715
kono
parents:
diff changeset
3716 PR fortran/35093
kono
parents:
diff changeset
3717 * data.c (gfc_assign_data_value): Only free "size" if
kono
parents:
diff changeset
3718 it has not already been freed.
kono
parents:
diff changeset
3719
kono
parents:
diff changeset
3720 2008-02-05 Paul Thomas <pault@gcc.gnu.org>
kono
parents:
diff changeset
3721
kono
parents:
diff changeset
3722 PR fortran/34945
kono
parents:
diff changeset
3723 * array.c (match_array_element_spec): Remove check for negative
kono
parents:
diff changeset
3724 array size.
kono
parents:
diff changeset
3725 (gfc_resolve_array_spec): Add check for negative size.
kono
parents:
diff changeset
3726
kono
parents:
diff changeset
3727 2008-02-05 Paul Thomas <pault@gcc.gnu.org>
kono
parents:
diff changeset
3728
kono
parents:
diff changeset
3729 PR fortran/32315
kono
parents:
diff changeset
3730 * data.c (gfc_assign_data_value): Add bounds check for array
kono
parents:
diff changeset
3731 references.
kono
parents:
diff changeset
3732
kono
parents:
diff changeset
3733 2008-02-04 Daniel Franke <franke.daniel@gmail.com>
kono
parents:
diff changeset
3734
kono
parents:
diff changeset
3735 * resolve.c (resolve_where): Fix typo.
kono
parents:
diff changeset
3736 (gfc_resolve_where_code_in_forall): Likewise.
kono
parents:
diff changeset
3737
kono
parents:
diff changeset
3738 2008-02-03 Paul Thomas <pault@gcc.gnu.org>
kono
parents:
diff changeset
3739
kono
parents:
diff changeset
3740 PR fortran/32760
kono
parents:
diff changeset
3741 * resolve.c (resolve_allocate_deallocate): New function.
kono
parents:
diff changeset
3742 (resolve_code): Call it for allocate and deallocate.
kono
parents:
diff changeset
3743 * match.c (gfc_match_allocate, gfc_match_deallocate) : Remove
kono
parents:
diff changeset
3744 the checking of the STAT tag and put in above new function.
kono
parents:
diff changeset
3745 * primary,c (match_variable): Do not fix flavor of host
kono
parents:
diff changeset
3746 associated symbols yet if the type is not known.
kono
parents:
diff changeset
3747
kono
parents:
diff changeset
3748 2008-01-31 Paul Thomas <pault@gcc.gnu.org>
kono
parents:
diff changeset
3749
kono
parents:
diff changeset
3750 PR fortran/34910
kono
parents:
diff changeset
3751 * expr.c (gfc_check_assign): It is an error to assign
kono
parents:
diff changeset
3752 to a sibling procedure.
kono
parents:
diff changeset
3753
kono
parents:
diff changeset
3754 2008-01-30 Paul Thomas <pault@gcc.gnu.org>
kono
parents:
diff changeset
3755
kono
parents:
diff changeset
3756 PR fortran/34975
kono
parents:
diff changeset
3757 * symbol.c (gfc_delete_symtree, gfc_undo_symbols): Rename
kono
parents:
diff changeset
3758 delete_symtree to gfc_delete_symtree.
kono
parents:
diff changeset
3759 * gfortran.h : Add prototype for gfc_delete_symtree.
kono
parents:
diff changeset
3760 * module.c (load_generic_interfaces): Transfer symbol to a
kono
parents:
diff changeset
3761 unique symtree and delete old symtree, instead of renaming.
kono
parents:
diff changeset
3762 (read_module): The rsym and the found symbol are the same, so
kono
parents:
diff changeset
3763 the found symtree can be deleted.
kono
parents:
diff changeset
3764
kono
parents:
diff changeset
3765 PR fortran/34429
kono
parents:
diff changeset
3766 * decl.c (match_char_spec): Remove the constraint on deferred
kono
parents:
diff changeset
3767 matching of functions and free the length expression.
kono
parents:
diff changeset
3768 delete_symtree to gfc_delete_symtree.
kono
parents:
diff changeset
3769 (gfc_match_type_spec): Whitespace.
kono
parents:
diff changeset
3770 (gfc_match_function_decl): Defer characteristic association for
kono
parents:
diff changeset
3771 all types except BT_UNKNOWN.
kono
parents:
diff changeset
3772 * parse.c (decode_specification_statement): Only derived type
kono
parents:
diff changeset
3773 function matching is delayed to the end of specification.
kono
parents:
diff changeset
3774
kono
parents:
diff changeset
3775 2008-01-28 Tobias Burnus <burnus@net-b.de>
kono
parents:
diff changeset
3776
kono
parents:
diff changeset
3777 PR libfortran/34980
kono
parents:
diff changeset
3778 * simplify.c (gfc_simplify_shape): Simplify rank zero arrays.
kono
parents:
diff changeset
3779
kono
parents:
diff changeset
3780 2008-01-27 Jerry DeLisle <jvdelisle@gcc.gnu.org>
kono
parents:
diff changeset
3781
kono
parents:
diff changeset
3782 PR fortran/34990
kono
parents:
diff changeset
3783 * array.c (gfc_check_constructor_type): Revert clearing the expression.
kono
parents:
diff changeset
3784
kono
parents:
diff changeset
3785 2008-01-26 Tobias Burnus <burnus@net-b.de>
kono
parents:
diff changeset
3786
kono
parents:
diff changeset
3787 PR fortran/34848
kono
parents:
diff changeset
3788 * trans-expr.c (gfc_conv_function_call): Don't call
kono
parents:
diff changeset
3789 gfc_add_interface_mapping if the expression is NULL.
kono
parents:
diff changeset
3790
kono
parents:
diff changeset
3791 2008-01-26 Jerry DeLisle <jvdelisle@gcc.gnu.org>
kono
parents:
diff changeset
3792
kono
parents:
diff changeset
3793 PR fortran/31610
kono
parents:
diff changeset
3794 * trans-array.c (gfc_trans_create_temp_array): Remove call to
kono
parents:
diff changeset
3795 gcc_assert (integer_zerop (loop->from[n])).
kono
parents:
diff changeset
3796
kono
parents:
diff changeset
3797 2008-01-25 Daniel Franke <franke.daniel@gmail.com>
kono
parents:
diff changeset
3798
kono
parents:
diff changeset
3799 PR fortran/34661
kono
parents:
diff changeset
3800 * resolve.c (resolve_where): Added check if user-defined assignment
kono
parents:
diff changeset
3801 operator is an elemental subroutine.
kono
parents:
diff changeset
3802 (gfc_resolve_where_code_in_forall): Likewise.
kono
parents:
diff changeset
3803
kono
parents:
diff changeset
3804 2008-01-24 Daniel Franke <franke.daniel@gmail.com>
kono
parents:
diff changeset
3805
kono
parents:
diff changeset
3806 PR fortran/33375
kono
parents:
diff changeset
3807 PR fortran/34858
kono
parents:
diff changeset
3808 * gfortran.h: Revert changes from 2008-01-17.
kono
parents:
diff changeset
3809 * match.c: Likewise.
kono
parents:
diff changeset
3810 * symbol.c: Likewise.
kono
parents:
diff changeset
3811 (gfc_undo_symbols): Undo namespace changes related to common blocks.
kono
parents:
diff changeset
3812
kono
parents:
diff changeset
3813 2008-01-24 Daniel Franke <franke.daniel@gmail.com>
kono
parents:
diff changeset
3814
kono
parents:
diff changeset
3815 PR fortran/34202
kono
parents:
diff changeset
3816 * data.c (formalize_structure_cons): Skip formalization on
kono
parents:
diff changeset
3817 empty structures.
kono
parents:
diff changeset
3818
kono
parents:
diff changeset
3819 2008-01-24 Daniel Franke <franke.daniel@gmail.com>
kono
parents:
diff changeset
3820
kono
parents:
diff changeset
3821 * gfortran.texi (OpenMP): Extended existing documentation.
kono
parents:
diff changeset
3822 (contributors): Added major contributors of 2008 that were
kono
parents:
diff changeset
3823 not listed yet.
kono
parents:
diff changeset
3824 (proposed extensions): Removed implemented items.
kono
parents:
diff changeset
3825
kono
parents:
diff changeset
3826 2008-01-24 Paul Thomas <pault@gcc.gnu.org>
kono
parents:
diff changeset
3827
kono
parents:
diff changeset
3828 PR fortran/34872
kono
parents:
diff changeset
3829 * parse.c (next_statement) : If ST_GET_FCN_CHARACTERISTICS is
kono
parents:
diff changeset
3830 seen, check for a statement label and, if present, delete it
kono
parents:
diff changeset
3831 and set the locus to the start of the statement.
kono
parents:
diff changeset
3832
kono
parents:
diff changeset
3833 2008-01-22 Paul Thomas <pault@gcc.gnu.org>
kono
parents:
diff changeset
3834
kono
parents:
diff changeset
3835 PR fortran/34875
kono
parents:
diff changeset
3836 * trans-io.c (gfc_trans_transfer): If the array reference in a
kono
parents:
diff changeset
3837 read has a vector subscript, use gfc_conv_subref_array_arg to
kono
parents:
diff changeset
3838 copy back the temporary.
kono
parents:
diff changeset
3839
kono
parents:
diff changeset
3840 2008-01-22 Tobias Burnus <burnus@net-b.de>
kono
parents:
diff changeset
3841
kono
parents:
diff changeset
3842 PR fortran/34848
kono
parents:
diff changeset
3843 * interface.c (compare_actual_formal): Fix adding type
kono
parents:
diff changeset
3844 to missing_arg_type for absent optional arguments.
kono
parents:
diff changeset
3845
kono
parents:
diff changeset
3846 2008-01-22 Tobias Burnus <burnus@net-b.de>
kono
parents:
diff changeset
3847
kono
parents:
diff changeset
3848 PR fortran/34907
kono
parents:
diff changeset
3849 * parse.c (parse_spec): Change = into ==.
kono
parents:
diff changeset
3850
kono
parents:
diff changeset
3851 2008-01-22 Daniel Franke <franke.daniel@gmail.com>
kono
parents:
diff changeset
3852
kono
parents:
diff changeset
3853 PR fortran/34915
kono
parents:
diff changeset
3854 * expr.c (check_elemental): Fix check for valid data types.
kono
parents:
diff changeset
3855
kono
parents:
diff changeset
3856 2008-01-22 Tobias Burnus <burnus@net-b.de>
kono
parents:
diff changeset
3857
kono
parents:
diff changeset
3858 PR fortran/34899
kono
parents:
diff changeset
3859 * scanner.c (load_line): Support <tab><digit> continuation lines.
kono
parents:
diff changeset
3860 * invoke.texi (-Wtabs): Document this.
kono
parents:
diff changeset
3861
kono
parents:
diff changeset
3862 2008-01-22 Paul Thomas <pault@gcc.gnu.org>
kono
parents:
diff changeset
3863
kono
parents:
diff changeset
3864 PR fortran/34896
kono
parents:
diff changeset
3865 * module.c (read_module): Set use_rename attribute.
kono
parents:
diff changeset
3866
kono
parents:
diff changeset
3867 2008-01-21 Tobias Burnus <burnus@net-b.de>
kono
parents:
diff changeset
3868
kono
parents:
diff changeset
3869 PR fortran/34901
kono
parents:
diff changeset
3870 * interface.c (compare_parameter): Improved error message
kono
parents:
diff changeset
3871 for arguments of same type and mismatched kinds.
kono
parents:
diff changeset
3872
kono
parents:
diff changeset
3873 2008-01-20 Paul Thomas <pault@gcc.gnu.org>
kono
parents:
diff changeset
3874
kono
parents:
diff changeset
3875 PR fortran/34861
kono
parents:
diff changeset
3876 * resolve.c (resolve_entries): Do not do an array bounds check
kono
parents:
diff changeset
3877 if the result symbols are the same.
kono
parents:
diff changeset
3878
kono
parents:
diff changeset
3879 PR fortran/34854
kono
parents:
diff changeset
3880 * module.c (read_module) : Hide the symtree of the previous
kono
parents:
diff changeset
3881 version of the symbol if this symbol is renamed.
kono
parents:
diff changeset
3882
kono
parents:
diff changeset
3883 2008-01-20 Paul Thomas <pault@gcc.gnu.org>
kono
parents:
diff changeset
3884
kono
parents:
diff changeset
3885 PR fortran/34784
kono
parents:
diff changeset
3886 * array.c (gfc_check_constructor_type): Clear the expression ts
kono
parents:
diff changeset
3887 so that the checking starts from the deepest level of array
kono
parents:
diff changeset
3888 constructor.
kono
parents:
diff changeset
3889 * primary.c (match_varspec): If an unknown type is changed to
kono
parents:
diff changeset
3890 default character and the attempt to match a substring fails,
kono
parents:
diff changeset
3891 change it back to unknown.
kono
parents:
diff changeset
3892
kono
parents:
diff changeset
3893 PR fortran/34785
kono
parents:
diff changeset
3894 * trans-array.c (gfc_add_loop_ss_code) : If ss->string_length is
kono
parents:
diff changeset
3895 NULL for an array constructor, use the cl.length expression to
kono
parents:
diff changeset
3896 build it.
kono
parents:
diff changeset
3897 (gfc_conv_array_parameter): Change call to gfc_evaluate_now to
kono
parents:
diff changeset
3898 a tree assignment.
kono
parents:
diff changeset
3899
kono
parents:
diff changeset
3900 2008-01-19 Thomas Koenig <tkoenig@gcc.gnu.org>
kono
parents:
diff changeset
3901
kono
parents:
diff changeset
3902 PR fortran/34817
kono
parents:
diff changeset
3903 PR fortran/34838
kono
parents:
diff changeset
3904 * iresolve.c (gfc_resolve_all): Remove conversion of mask
kono
parents:
diff changeset
3905 argument to kind=1 by removing call to resolve_mask_arg().
kono
parents:
diff changeset
3906 (gfc_resolve_any): Likewise.
kono
parents:
diff changeset
3907
kono
parents:
diff changeset
3908 2008-01-19 Tobias Burnus <burnus@net-b.de>
kono
parents:
diff changeset
3909
kono
parents:
diff changeset
3910 PR fortran/34760
kono
parents:
diff changeset
3911 * primary.c (match_variable): Handle FL_UNKNOWN without
kono
parents:
diff changeset
3912 uneducated guessing.
kono
parents:
diff changeset
3913 (match_variable): Improve error message.
kono
parents:
diff changeset
3914
kono
parents:
diff changeset
3915 2008-01-18 Tobias Burnus <burnus@net-b.de>
kono
parents:
diff changeset
3916
kono
parents:
diff changeset
3917 PR fortran/32616
kono
parents:
diff changeset
3918 * interface.c (get_expr_storage_size): Return storage size
kono
parents:
diff changeset
3919 for array element designators.
kono
parents:
diff changeset
3920 (compare_actual_formal): Reject unequal string sizes for
kono
parents:
diff changeset
3921 assumed-shape dummy arguments. And fix error message for
kono
parents:
diff changeset
3922 array-sections with vector subscripts.
kono
parents:
diff changeset
3923
kono
parents:
diff changeset
3924 2008-01-17 Jerry DeLisle <jvdelisle@gcc.gnu.org>
kono
parents:
diff changeset
3925
kono
parents:
diff changeset
3926 PR fortran/34556
kono
parents:
diff changeset
3927 * simplify.c (is_constant_array_expr): New static function that returns
kono
parents:
diff changeset
3928 true if the given expression is an array and is constant.
kono
parents:
diff changeset
3929 (gfc_simplify_reshape): Use new function.
kono
parents:
diff changeset
3930
kono
parents:
diff changeset
3931 2008-01-17 H.J. Lu <hongjiu.lu@intel.com>
kono
parents:
diff changeset
3932
kono
parents:
diff changeset
3933 PR fortran/33375
kono
parents:
diff changeset
3934 * symbol.c (free_common_tree): Renamed to ...
kono
parents:
diff changeset
3935 (gfc_free_common_tree): This. Remove static.
kono
parents:
diff changeset
3936 (gfc_free_namespace): Updated.
kono
parents:
diff changeset
3937
kono
parents:
diff changeset
3938 * gfortran.h (gfc_free_common_tree): New.
kono
parents:
diff changeset
3939
kono
parents:
diff changeset
3940 * match.c (gfc_match_common): Call gfc_free_common_tree () with
kono
parents:
diff changeset
3941 gfc_current_ns->common_root and set gfc_current_ns->common_root
kono
parents:
diff changeset
3942 to NULL on syntax error.
kono
parents:
diff changeset
3943
kono
parents:
diff changeset
3944 2008-01-18 Richard Sandiford <rsandifo@nildram.co.uk>
kono
parents:
diff changeset
3945
kono
parents:
diff changeset
3946 PR fortran/34686
kono
parents:
diff changeset
3947 * trans-expr.c (gfc_conv_function_call): Use proper
kono
parents:
diff changeset
3948 type for returned character pointers.
kono
parents:
diff changeset
3949
kono
parents:
diff changeset
3950 2008-01-17 Paul Thomas <pault@gcc.gnu.org>
kono
parents:
diff changeset
3951
kono
parents:
diff changeset
3952 PR fortran/34429
kono
parents:
diff changeset
3953 PR fortran/34431
kono
parents:
diff changeset
3954 PR fortran/34471
kono
parents:
diff changeset
3955 * decl.c : Remove gfc_function_kind_locus and
kono
parents:
diff changeset
3956 gfc_function_type_locus. Add gfc_matching_function.
kono
parents:
diff changeset
3957 (match_char_length): If matching a function and the length
kono
parents:
diff changeset
3958 does not match, return MATCH_YES and try again later.
kono
parents:
diff changeset
3959 (gfc_match_kind_spec): The same.
kono
parents:
diff changeset
3960 (match_char_kind): The same.
kono
parents:
diff changeset
3961 (gfc_match_type_spec): The same for numeric and derived types.
kono
parents:
diff changeset
3962 (match_prefix): Rename as gfc_match_prefix.
kono
parents:
diff changeset
3963 (gfc_match_function_decl): Except for function valued character
kono
parents:
diff changeset
3964 lengths, defer applying kind, type and charlen info until the
kono
parents:
diff changeset
3965 end of specification block.
kono
parents:
diff changeset
3966 gfortran.h (gfc_statement): Add ST_GET_FCN_CHARACTERISTICS.
kono
parents:
diff changeset
3967 parse.c (decode_specification_statement): New function.
kono
parents:
diff changeset
3968 (decode_statement): Call it when a function has kind = -1. Set
kono
parents:
diff changeset
3969 and reset gfc_matching function, as function statement is being
kono
parents:
diff changeset
3970 matched.
kono
parents:
diff changeset
3971 (match_deferred_characteristics): Simplify with a single call
kono
parents:
diff changeset
3972 to gfc_match_prefix. Do appropriate error handling. In any
kono
parents:
diff changeset
3973 case, make sure that kind = -1 is reset or corrected.
kono
parents:
diff changeset
3974 (parse_spec): Call above on seeing ST_GET_FCN_CHARACTERISTICS.
kono
parents:
diff changeset
3975 Throw an error if kind = -1 after last specification statement.
kono
parents:
diff changeset
3976 parse.h : Prototype for gfc_match_prefix.
kono
parents:
diff changeset
3977
kono
parents:
diff changeset
3978 2008-01-16 Tobias Burnus <burnus@net-b.de>
kono
parents:
diff changeset
3979
kono
parents:
diff changeset
3980 PR fortran/34796
kono
parents:
diff changeset
3981 * interface.c (compare_parameter): Allow AS_DEFERRED array
kono
parents:
diff changeset
3982 elements and reject attr.pointer array elemenents.
kono
parents:
diff changeset
3983 (get_expr_storage_size): Return storage size of elements of
kono
parents:
diff changeset
3984 assumed-shape and pointer arrays.
kono
parents:
diff changeset
3985
kono
parents:
diff changeset
3986 2008-01-15 Sebastian Pop <sebastian.pop@amd.com>
kono
parents:
diff changeset
3987
kono
parents:
diff changeset
3988 * f95-lang.c (gfc_init_builtin_functions): Initialize GOMP builtins
kono
parents:
diff changeset
3989 for flag_tree_parallelize_loops.
kono
parents:
diff changeset
3990
kono
parents:
diff changeset
3991 2008-01-15 Thomas Koenig <tkoenig@gcc.gnu.org>
kono
parents:
diff changeset
3992
kono
parents:
diff changeset
3993 PR libfortran/34671
kono
parents:
diff changeset
3994 * iresolve.c (gfc_resolve_all): Call resolve_mask_arg.
kono
parents:
diff changeset
3995 (gfc_resolve_any): Likewise.
kono
parents:
diff changeset
3996 (gfc_resolve_count): Likewise. Don't append kind of
kono
parents:
diff changeset
3997 argument to function name.
kono
parents:
diff changeset
3998
kono
parents:
diff changeset
3999 2008-01-13 Tobias Burnus <burnus@net-b.de>
kono
parents:
diff changeset
4000
kono
parents:
diff changeset
4001 PR fortran/34665
kono
parents:
diff changeset
4002 * resolve.c (resolve_actual_arglist): For expressions,
kono
parents:
diff changeset
4003 also check for assume-sized arrays.
kono
parents:
diff changeset
4004 * interface.c (compare_parameter): Move F2003 character checks
kono
parents:
diff changeset
4005 here, print error messages here, reject elements of
kono
parents:
diff changeset
4006 assumed-shape array as argument to dummy arrays.
kono
parents:
diff changeset
4007 (compare_actual_formal): Update for the changes above.
kono
parents:
diff changeset
4008
kono
parents:
diff changeset
4009 2008-01-13 Tobias Burnus <burnus@net-b.de>
kono
parents:
diff changeset
4010
kono
parents:
diff changeset
4011 PR fortran/34763
kono
parents:
diff changeset
4012 * decl.c (contained_procedure): Only check directly preceeding state.
kono
parents:
diff changeset
4013
kono
parents:
diff changeset
4014 2008-01-13 Tobias Burnus <burnus@net-b.de>
kono
parents:
diff changeset
4015
kono
parents:
diff changeset
4016 PR fortran/34759
kono
parents:
diff changeset
4017 * check.c (gfc_check_shape): Accept array ranges of
kono
parents:
diff changeset
4018 assumed-size arrays.
kono
parents:
diff changeset
4019
kono
parents:
diff changeset
4020 2008-01-12 Jerry DeLisle <jvdelisle@gcc.gnu.org>
kono
parents:
diff changeset
4021
kono
parents:
diff changeset
4022 PR fortran/34432
kono
parents:
diff changeset
4023 * match.c (gfc_match_name): Don't error if leading character is a '(',
kono
parents:
diff changeset
4024 just return MATCH_NO.
kono
parents:
diff changeset
4025
kono
parents:
diff changeset
4026 2008-01-11 Jerry DeLisle <jvdelisle@gcc.gnu.org>
kono
parents:
diff changeset
4027
kono
parents:
diff changeset
4028 PR fortran/34722
kono
parents:
diff changeset
4029 * trans-io.c (create_dummy_iostat): Commit the symbol.
kono
parents:
diff changeset
4030
kono
parents:
diff changeset
4031 2008-01-11 Paul Thomas <pault@gcc.gnu.org>
kono
parents:
diff changeset
4032
kono
parents:
diff changeset
4033 PR fortran/34537
kono
parents:
diff changeset
4034 * simplify.c (gfc_simplify_transfer): Return NULL if the size
kono
parents:
diff changeset
4035 of the element is unavailable and only assign character length
kono
parents:
diff changeset
4036 to the result, if 'mold' is constant.
kono
parents:
diff changeset
4037
kono
parents:
diff changeset
4038 2008-01-10 Paul Thomas <pault@gcc.gnu.org>
kono
parents:
diff changeset
4039
kono
parents:
diff changeset
4040 PR fortran/34396
kono
parents:
diff changeset
4041 * trans-array.c (gfc_trans_array_ctor_element): Use gfc_trans_string_copy
kono
parents:
diff changeset
4042 to assign strings and perform bounds checks on the string length.
kono
parents:
diff changeset
4043 (get_array_ctor_strlen): Remove bounds checking.
kono
parents:
diff changeset
4044 (gfc_trans_array_constructor): Initialize string length checking.
kono
parents:
diff changeset
4045 * trans-array.h : Add prototype for gfc_trans_string_copy.
kono
parents:
diff changeset
4046
kono
parents:
diff changeset
4047 2008-01-08 Richard Guenther <rguenther@suse.de>
kono
parents:
diff changeset
4048
kono
parents:
diff changeset
4049 PR fortran/34706
kono
parents:
diff changeset
4050 PR tree-optimization/34683
kono
parents:
diff changeset
4051 * trans-types.c (gfc_get_array_type_bounds): Use an array type
kono
parents:
diff changeset
4052 with known size for accesses if that is known.
kono
parents:
diff changeset
4053
kono
parents:
diff changeset
4054 2008-01-08 Paul Thomas <pault@gcc.gnu.org>
kono
parents:
diff changeset
4055
kono
parents:
diff changeset
4056 PR fortran/34476
kono
parents:
diff changeset
4057 * expr.c (find_array_element): Check that the array bounds are
kono
parents:
diff changeset
4058 constant before using them. Use lower, as well as upper bound.
kono
parents:
diff changeset
4059 (check_restricted): Allow implied index variable.
kono
parents:
diff changeset
4060
kono
parents:
diff changeset
4061 2008-01-08 Paul Thomas <pault@gcc.gnu.org>
kono
parents:
diff changeset
4062
kono
parents:
diff changeset
4063 PR fortran/34681
kono
parents:
diff changeset
4064 * trans_array.c (gfc_trans_deferred_array): Do not null the
kono
parents:
diff changeset
4065 data pointer on entering scope, nor deallocate it on leaving
kono
parents:
diff changeset
4066 scope, if the symbol has the 'save' attribute.
kono
parents:
diff changeset
4067
kono
parents:
diff changeset
4068 PR fortran/34704
kono
parents:
diff changeset
4069 * trans_decl.c (gfc_finish_var_decl): Derived types with
kono
parents:
diff changeset
4070 allocatable components and an initializer must be TREE_STATIC.
kono
parents:
diff changeset
4071
kono
parents:
diff changeset
4072 2008-01-07 Paul Thomas <pault@gcc.gnu.org>
kono
parents:
diff changeset
4073
kono
parents:
diff changeset
4074 PR fortran/34672
kono
parents:
diff changeset
4075 * module.c (write_generic): Rewrite completely.
kono
parents:
diff changeset
4076 (write_module): Change call to write_generic.
kono
parents:
diff changeset
4077
kono
parents:
diff changeset
4078 2008-01-06 Jerry DeLisle <jvdelisle@gcc.gnu.org>
kono
parents:
diff changeset
4079
kono
parents:
diff changeset
4080 PR fortran/34659
kono
parents:
diff changeset
4081 * scanner.c (load_line): Do not count ' ' as printable when checking for
kono
parents:
diff changeset
4082 continuations.
kono
parents:
diff changeset
4083
kono
parents:
diff changeset
4084 2008-01-06 Paul Thomas <pault@gcc.gnu.org>
kono
parents:
diff changeset
4085
kono
parents:
diff changeset
4086 PR fortran/34545
kono
parents:
diff changeset
4087 * module.c (load_needed): If the namespace has no proc_name
kono
parents:
diff changeset
4088 give it the module symbol.
kono
parents:
diff changeset
4089
kono
parents:
diff changeset
4090 2008-01-06 Jerry DeLisle <jvdelisle@gcc.gnu.org>
kono
parents:
diff changeset
4091
kono
parents:
diff changeset
4092 PR fortran/34387
kono
parents:
diff changeset
4093 * trans-expr.c (gfc_conv_missing_dummy): Use a temporary to type convert
kono
parents:
diff changeset
4094 the dummy variable expression, test for NULL, and pass the variable
kono
parents:
diff changeset
4095 address to the called function.
kono
parents:
diff changeset
4096
kono
parents:
diff changeset
4097 2008-01-06 Tobias Burnus <burnus@net-b.de>
kono
parents:
diff changeset
4098
kono
parents:
diff changeset
4099 PR fortran/34658
kono
parents:
diff changeset
4100 * match.c (gfc_match_common): Remove blank common in
kono
parents:
diff changeset
4101 DATA BLOCK warning.
kono
parents:
diff changeset
4102 * resolve.c (resolve_common_vars): New function.
kono
parents:
diff changeset
4103 (resolve_common_blocks): Move checks to resolve_common_vars
kono
parents:
diff changeset
4104 and invoke that function.
kono
parents:
diff changeset
4105 (resolve_types): Call resolve_common_vars for blank commons.
kono
parents:
diff changeset
4106
kono
parents:
diff changeset
4107 2008-01-06 Tobias Burnus <burnus@net-b.de>
kono
parents:
diff changeset
4108
kono
parents:
diff changeset
4109 PR fortran/34655
kono
parents:
diff changeset
4110 * resolve.c (resolve_equivalence_derived): Reject derived types with
kono
parents:
diff changeset
4111 default initialization if equivalenced with COMMON variable.
kono
parents:
diff changeset
4112
kono
parents:
diff changeset
4113 2008-01-06 Tobias Burnus <burnus@net-b.de>
kono
parents:
diff changeset
4114
kono
parents:
diff changeset
4115 PR fortran/34654
kono
parents:
diff changeset
4116 * io.c (check_io_constraints): Disallow unformatted I/O for
kono
parents:
diff changeset
4117 internal units.
kono
parents:
diff changeset
4118
kono
parents:
diff changeset
4119 2008-01-06 Tobias Burnus <burnus@net-b.de>
kono
parents:
diff changeset
4120
kono
parents:
diff changeset
4121 PR fortran/34660
kono
parents:
diff changeset
4122 * resolve.c (resolve_formal_arglist): Reject dummy procedure in
kono
parents:
diff changeset
4123 ELEMENTAL functions.
kono
parents:
diff changeset
4124
kono
parents:
diff changeset
4125 2008-01-06 Tobias Burnus <burnus@net-b.de>
kono
parents:
diff changeset
4126
kono
parents:
diff changeset
4127 PR fortran/34662
kono
parents:
diff changeset
4128 * interface.c (compare_actual_formal): Reject parameter
kono
parents:
diff changeset
4129 actual to intent(out) dummy.
kono
parents:
diff changeset
4130
kono
parents:
diff changeset
4131 2008-01-04 Tobias Burnus <burnus@net-b.de>
kono
parents:
diff changeset
4132
kono
parents:
diff changeset
4133 PR fortran/34557
kono
parents:
diff changeset
4134 * primary.c (match_varspec): Gobble whitespace before
kono
parents:
diff changeset
4135 checking for '('.
kono
parents:
diff changeset
4136
kono
parents:
diff changeset
4137
kono
parents:
diff changeset
4138 Copyright (C) 2008 Free Software Foundation, Inc.
kono
parents:
diff changeset
4139
kono
parents:
diff changeset
4140 Copying and distribution of this file, with or without modification,
kono
parents:
diff changeset
4141 are permitted in any medium without royalty provided the copyright
kono
parents:
diff changeset
4142 notice and this notice are preserved.