]> gcc.gnu.org Git - gcc.git/blame - gcc/fortran/ChangeLog
[multiple changes]
[gcc.git] / gcc / fortran / ChangeLog
CommitLineData
36d3fb4c
PT
12007-03-15 Tobias Burnus <burnus@gcc.gnu.org>
2 Paul Thomas <pault@gcc.gnu.org>
3
4 PR fortran/30922
5 * decl.c (gfc_match_import): If the parent of the current name-
6 space is null, try looking for an imported symbol in the parent
7 of the proc_name interface.
8 * resolve.c (resolve_fl_variable): Do not check for blocking of
9 host association by a same symbol, if the symbol is in an
10 interface body.
11
122007-03-15 Paul Thomas <pault@gcc.gnu.org>
13
14 PR fortran/30879
15 * decl.c (match_data_constant): Before going on to try to match
16 a name, try to match a structure component.
17
18
19 PR fortran/30870
20 * resolve.c (resolve_actual_arglist): Do not reject a generic
21 actual argument if it has a same name specific interface.
22
23 PR fortran/31163
24 * trans-array.c (parse_interface): Do not nullify allocatable
25 components if the symbol has the saved attribute.
26
19ee2065
FXC
272007-03-14 Francois-Xavier Coudert <coudert@clipper.ens.fr>
28
29 * trans-array.c (gfc_trans_auto_array_allocation): Replace
30 fold(convert()) by fold_convert().
31 (gfc_duplicate_allocatable): Likewise.
32 * trans-intrinsic.c (gfc_conv_intrinsic_dot_product): Use
33 build_int_cst instead of converting an integer_zero_node
34 to the final type.
35
3ea04f08
JJ
362007-03-14 Jakub Jelinek <jakub@redhat.com>
37
38 * module.c (mio_typespec): Don't look at ts->cl if not BT_CHARACTER.
39
ec77243f
BM
402007-03-13 Brooks Moses <brooks.moses@codesourcery.com>
41
05033949 42 PR fortran/30933
ec77243f
BM
43 PR fortran/30948
44 PR fortran/30953
45 * intrinsics.texi (CHDIR): Fix argument names, note
46 that STATUS must be a default integer.
47 (CTIME): Fix argument names, note that RESULT must
48 be a default integer.
49 (EXIT): Note that STATUS must be a default integer.
50
6f50a76a
BM
512007-03-13 Brooks Moses <brooks.moses@codesourcery.com>
52
53 PR fortran/28068
54 * intrinsic.texi: General whitespace cleanup, remove
55 comment about missing intrinsics.
56 (menu): Add lines for new entries listed below.
57 (ACOSH): Mention specific function DACOSH, correct
58 description phrasing.
59 (ASINH): Mention specific function DASINH, correct
60 description phrasing.
61 (ATANH): Mention specific function DATANH, correct
62 description phrasing.
63 (COS): Add index entry for CCOS.
64 (CPU_TIME): Correct "REAL" to "REAL(*)".
65 (EXP): Add index entry for CEXP.
66 (INT): Correct argument name to "A".
67 (INT2): New entry.
68 (INT8): New entry.
69 (LONG): New entry.
70 (MAX): Add index entries for specific variants.
71 (MCLOCK): New entry.
72 (MCLOCK8): New entry.
73 (SECNDS): Adjust to a more standard form.
74 (SECOND): New entry.
75 (TIME): Add cross-reference to MCLOCK.
76 (TIME8): Add cross-reference to MCLOCK8.
77
f68abf4a
PT
782007-03-11 Paul Thomas <pault@gcc.gnu.org>
79
80 PR fortran/30883
81 * parse.c (parse_interface): Use the default types from the
82 formal namespace if a function or its result do not have a type
83 after parsing the specification statements.
84
122e35b4
BM
852007-03-08 Brooks Moses <brooks.moses@codesourcery.com>
86
87 * intrinsic.texi: (ICHAR) Improve internal I/O note.
88 (ACHAR): Reference it.
89 (CHAR): Reference it.
90 (IACHAR): Reference it.
91
435b0aa2
BM
922007-03-08 Brooks Moses <brooks.moses@codesourcery.com>
93
94 * intrinsic.texi: (LINK) Document function form.
95 (RENAME): Likewise.
96 (SYMLNK): Likewise.
97 (SYSTEM): Likewise.
98 (UNLINK): Likewise.
99
e3097489
BM
1002007-03-08 Brooks Moses <brooks.moses@codesourcery.com>
101
102 * intrinsic.texi: minor typo fixes, removed prologue.
103 (FSEEK): moved to correct place in alphabetical order.
104
32af3784
DF
1052007-03-08 Daniel Franke <franke.daniel@gmail.com>
106
107 PR fortran/30947
108 * check.c (gfc_check_alarm_sub): Added check for default integer
109 kind of status argument.
110 * iresolve.c (gfc_resolve_alarm_sub): Removed conversion of
111 status argument.
112 * intrinsic.texi (ALARM): Extended documentation.
113
f53e867d
DF
1142007-03-08 Daniel Franke <franke.daniel@gmail.com>
115
116 * intrinsic.texi (GERROR, ISATTY, TTYNAM): New.
117 (ABORT, FLUSH, FNUM, IRAND, MALLOC, SIGNAL, SRAND): Fixed typo.
118 * intrinsic.c (add_subroutines): Adjusted dummy argument names
119 of GERROR and TTYNAM.
120
56bedf42
TB
1212007-07-08 Tobias Burnus <burnus@net-b.de>
122
123 * module.c (gfc_match_use): Support renaming of operators
124 in USE statements.
125 * gfortran.texi (Fortran 2003 Status): Document support of
126 renaming of operators.
127
ac497e6a
TB
1282007-07-08 Tobias Burnus <burnus@net-b.de>
129
130 PR fortran/30973
131 * module.c (read_module): Always import module name as symbol.
132 (gfc_match_use): Disallow module name in the only clause of
133 a use statement.
134
1352007-03-08 Paul Thomas <pault@gcc.gnu.org>
136
137 PR fortran/31011
138 * expr.c (find_array_section): Correct arithmetic for section
139 size.
140
a24ff43f
BM
1412007-03-07 Brooks Moses <brooks.moses@codesourcery.com>
142
143 * iresolve.c (gfc_resolve_ishftc): Correct s_kind value.
144
cc71ce20
DF
1452007-03-06 Daniel Franke <franke.daniel@gmail.com>
146
147 PR documentation/30950
148 * intrinsic.texi (AND, CPU_TIME): Fix dummy argument names.
149 (FREE): Fix call syntax.
150
db47a442
BM
1512007-03-06 Brooks Moses <brooks.moses@codesourcery.com>
152
153 * intrinsic.texi: Limit column widths to a total of .85.
154
4b4eb648
BM
1552007-03-05 Brooks Moses <brooks.moses@codesourcery.com>
156
157 * gfortran.texi (GFortran and G77): Rewrite completely.
158
090021e9
BM
1592007-03-05 Brooks Moses <brooks.moses@codesourcery.com>
160
161 * match.c (gfc_match_name): Expanded comment.
162
b2b81a3f
BM
1632007-03-05 Brooks Moses <brooks.moses@codesourcery.com>
164
165 * gfortran.texi (Old-style kind specifications): Document
166 special handling of old-style kind specifiers for COMPLEX.
167 * decl.c (gfc_match_old_kind_spec): Document kind/bytesize
168 assumptions for COMPLEX in comment.
169
676a7884
BM
1702007-03-05 Brooks Moses <brooks.moses@codesourcery.com>
171
172 PR 31050
173 * gfortranspec.c (lang_specific_driver): Update program
174 name and copyright date.
175
93a12e36
PT
1762007-03-03 Paul Thomas <pault@gcc.gnu.org>
177
178 PR fortran/30882
179 * check.c (dim_rank_check): The shape of subsections of
180 assumed-size arrays is known.
181
5115f4aa
PT
1822007-03-02 Paul Thomas <pault@gcc.gnu.org>
183 Tobias Burnus <burnus@net-b.de>
184
185 PR fortran/30873
186 * decl.c (gfc_match_entry): Remove erroneous entry result check.
187
b7826893
BM
1882007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
189
190 * Make-lang.in: Add install-pdf target as copied from
191 automake v1.10 rules.
192
9c3e90e3
TB
1932007-03-01 Tobias Burnus <burnus@net-b.de>
194
195 PR fortran/30865
196 * trans-intrinsic.c (gfc_conv_intrinsic_size): Compare pointers.
197
7193e30a
TB
1982007-02-28 Tobias Burnus <burnus@net-b.de>
199 Paul Thomas <pault@gcc.gnu.org>
200
201 PR fortran/30888
202 PR fortran/30887
203 * resolve.c (resolve_actual_arglist): Allow by-value
204 arguments and non-default-kind for %VAL().
205 * trans-expr.c (conv_arglist_function): Allow
206 non-default-kind for %VAL().
207
1355d8e7
TB
2082007-02-28 Tobias Burnus <burnus@net-b.de>
209
210 PR fortran/30968
211 * primary.c (next_string_char): Correct reading a character
212 after the delimiter.
213 (match_string_constant): Print warning message only once.
214
d711ed87
RG
2152007-02-27 Richard Guenther <rguenther@suse.de>
216
217 * trans-array.c (structure_alloc_comps): Use correct type
218 for null pointer constant.
219
7771bb62
BM
2202007-02-26 Brooks Moses <brooks.moses@codesourcery.com>
221
222 * gfortran.texi: Standardize title page, remove version number
223 from copyright page.
224
88f206a4
TK
2252007-02-26 Thomas Koenig <Thomas.Koenig@online.de>
226 Paul Thomas <pault@gcc.gnu.org>
227
228 PR fortran/30865
229 * trans-intrinsic.c (gfc_conv_intrinsic_size):
230 If dim is an optional argument, check for its
231 presence and call size0 or size1, respectively.
232
74a5d8b9
PT
2332007-02-23 Paul Thomas <pault@gcc.gnu.org>
234
235 PR fortran/30660
236 * resolve.c (has_default_initializer): New function.
237 (resolve_fl_variable): Call has_default_initializer to determine if
238 the derived type has a default initializer to its ultimate
239 components.
240
241
a47eec17
JD
2422007-02-22 Jerry DeLisle <jvdelisle@gcc.gnu.org>
243
244 * options.c (set_default_std_flags): New function to consolidate
245 setting the flags.
246 (gfc_init_options): Use new function.
247 (gfc_handle_option): Use new function.
248
b69862d1
BM
2492007-02-22 Brooks Moses <brooks.moses@codesourcery.com>
250
251 * gfortran.texi (Old-style kind specifications): Document
252 special handling of old-style kind specifiers for COMPLEX.
253 * decl.c (gfc_match_old_kind_spec): Documented kind/bytesize
254 assumptions in comment.
255
7efeea5e
JJ
2562007-02-21 Bernhard Fischer <aldot@gcc.gnu.org>
257
258 * parse.c (next_free): Gooble spaces after OpenMP sentinel.
259
b241831b
TK
2602007-02-20 Thomas Koenig <Thomas.Koenig@online.de>
261
262 PR fortran/30869
7efeea5e 263 * match.c (gfc_match_iterator): Remove conflict between
b241831b
TK
264 loop variable and pointer.
265
77bb16aa
TB
2662007-02-20 Tobias Burnus <burnus@net-b.de>
267
268 PR fortran/30522
269 * symbol.c (gfc_add_volatile): Allow to set VOLATILE
270 attribute for host-associated variables.
271 * gfortran.h (symbol_attribute): Save namespace
272 where VOLATILE has been set.
273 * trans-decl.c (gfc_finish_var_decl): Move variable
274 declaration to the top.
275
1084b6b0
TB
2762007-02-20 Tobias Burnus <burnus@net-b.de>
277
278 PR fortran/30783
279 * resolve.c (resolve_symbol): Add character dummy VALUE check.
280
567c915b
TK
2812007-02-19 Thomas Koenig <Thomas.Koenig@online.de>
282
283 PR libfortran/30533
7efeea5e 284 * fortran/iresolve.c (gfc_resolve_maxloc): Remove coercion of
567c915b 285 argument to default integer.
7efeea5e 286 (gfc_resolve_minloc): Likewise.
567c915b 287
bb6a1e6d
JD
2882007-02-18 Jerry DeLisle <jvdelisle@gcc.gnu.org>
289
290 PR fortran/30681
291 * options.c (gfc_init_options): Relax warning level for obsolescent.
292 * match.c (match_arithmetic_if): Change to obsolescent from deleted.
293 (gfc_match_if): Same.
294
61a04b5b
RS
2952007-02-18 Roger Sayle <roger@eyesopen.com>
296
297 * trans-array.c (gfc_build_constant_array_constructor): When the
298 shape of the constructor is known, use that to construct the
299 gfc_array_spec.
300 (gfc_trans_constant_array_constructor): Initialize the "info"
301 information for all of the dimensions of the array constructor.
302 (constant_array_constructor_loop_size): New function.
303 (gfc_trans_array_constructor): Use it to determine whether a
304 loop is suitable for "constant array constructor" optimization.
305
306 * trans-intrinsic.c (gfc_conv_intrinsic_anyall): Use fold_build2
307 instead of build2, to avoid conditions like "(a != b) != 0".
308
9bffa171
RS
3092007-02-18 Roger Sayle <roger@eyesopen.com>
310 Paul Thomas <pault@gcc.gnu.org>
311
1084b6b0
TB
312 PR fortran/30400
313 * match.c (match_forall_iterator): Use gfc_match_expr instead
9bffa171
RS
314 of gfc_match_variable to match the iterator variable. Return
315 MATCH_NO if not a variable. Remove the reset of the symbol's
316 flavor in cleanup.
317
73865312
TB
3182007-02-16 Tobias Burnus <burnus@net-b.de>
319
320 PR fortran/30793
321 * trans-decl.c (gfc_generate_function_code): Do not initialize
61a04b5b 322 pointers to derived components.
73865312 323
5039610b
SL
3242007-02-15 Sandra Loosemore <sandra@codesourcery.com>
325 Brooks Moses <brooks.moses@codesourcery.com>
326 Lee Millward <lee.millward@codesourcery.com>
327
328 * trans-expr.c (gfc_conv_power_op): Use build_call_expr.
329 (gfc_conv_string_tmp): Likewise.
330 (gfc_conv_concat_op): Likewise.
331 (gfc_build_compare_string): Likewise.
332 (gfc_conv_function_call): Use build_call_list instead of build3.
333
334 * trans-array.c (gfc_trans_allocate_array_storage): Use
335 build_call_expr.
336 (gfc_grow_array): Likewise.
337 (gfc_trans_array_ctor_element): Likewise.
338 (gfc_trans_array_constructor_value): Likewise.
339 (gfc_array_allocate): Likewise.
340 (gfc_array_deallocate): Likewise.
341 (gfc_trans_auto_array_allocation): Likewise.
342 (gfc_trans_dummy_array_bias): Likewise.
343 (gfc_conv_array_parameter): Likewise.
344 (gfc_trans_dealloc_allocated): Likewise.
345 (gfc_duplicate_allocatable): Likewise.
346
347 * trans-openmp.c (gfc_trans_omp_barrier): Use build_call_expr.
348 (gfc_trans_omp_flush): Likewise.
349
350 * trans-stmt.c (gfc_conv_elementel_dependencies): Use build_call_expr.
351 (gfc_trans_pause): Likewise.
352 (gfc_trans_stop): Likewise.
353 (gfc_trans_character_select): Likewise.
354 (gfc_do_allocate): Likewise.
355 (gfc_trans_assign_need_temp): Likewise.
356 (gfc_trans_pointer_assign_need_temp): Likewise.
357 (gfc_trans_forall_1): Likewise.
358 (gfc_trans_where_2): Likewise.
359 (gfc_trans_allocate): Likewise.
360 (gfc_trans_deallocate): Likewise.
361
362 * trans.c (gfc_trans_runtime_check): Use build_call_expr.
363
364 * trans-io.c (gfc_trans_open): Use build_call_expr.
365 (gfc_trans_close): Likewise.
366 (build_filepos): Likewise.
367 (gfc_trans_inquire): Likewise.
368 (NML_FIRST_ARG): Delete.
369 (NML_ADD_ARG): Delete.
370 (transfer_namelist_element): Use build_call_expr.
371 (build_dt): Likewise.
372 (gfc_trans_dt_end): Likewise.
373 (transfer_expr): Likewise.
374 (transfer_array-desc): Likewise.
375
376 * trans-decl.c (gfc_generate_function_code): Use build_call_expr.
377 (gfc_generate_constructors): Likewise.
378
379 * trans-intrinsic.c (gfc_conv_intrinsic_ctime): Use build_call_expr.
380 (gfc_conv_intrinsic_fdate): Likewise.
381 (gfc_conv_intrinsic_ttynam): Likewise.
382 (gfc_conv_intrinsic_array_transfer): Likewise.
383 (gfc_conv_associated): Likewise.
384 (gfc_conv_intrinsic_si_kind): Likewise.
385 (gfc_conv_intrinsic_trim): Likewise.
386 (gfc_conv_intrinsic_repeat: Likewise.
387 (gfc_conv_intrinsic_iargc): Likewise.
388
0267ffdc
JD
3892007-02-14 Jerry DeLisle <jvdelisle@gcc.gnu.org>
390
391 PR fortran/30779
392 * scanner.c (gfc_next_char_literal): Add check for end of file after
393 call to advance_line.
394
eb62be44
SK
3952007-02-14 Steven G. Kargl <kargl@gcc.gnu.org>
396
397 PR fortran/30799
398 * primary.c (match_logical_constant): Return MATCH_ERROR on invalid
399 kind.
400
64e56cf2
SK
4012007-02-14 Steven G. Kargl <kargl@gcc.gnu.org>
402
403 * misc.c (gfc_typename): Fix potential buffer overflow.
404
e8c30b5f
PT
4052007-02-13 Paul Thomas <pault@gcc.gnu.org>
406
407 PR fortran/30554
408 * module.c (read_module): Set pointer_info to referenced if the
409 symbol has no namespace.
410
c662432e
NC
4112007-02-12 Nick Clifton <nickc@redhat.com>
412
7efeea5e 413 * lang.opt: Add Warning attribute to warning options.
c662432e 414
013d5907
DF
4152007-02-11 Daniel Franke <franke.daniel@gmail.com>
416
417 * intrinsic.texi (HOSTNM): Fix typographical error in syntax.
418 (SLEEP): Added section and documentation.
419
6133c68a
TS
420