]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/fortran/ChangeLog
trans.c (check_inlining_for_nested_subprog): Quote reserved names.
[thirdparty/gcc.git] / gcc / fortran / ChangeLog
CommitLineData
a9c697b8
MS
12019-05-16 Martin Sebor <msebor@redhat.com>
2
3 * gfortranspec.c (append_arg): Spell out the word "argument."
4
4b8e35f1
JJ
52019-05-16 Jakub Jelinek <jakub@redhat.com>
6
7 PR fortran/90329
8 * trans-decl.c (create_function_arglist): Set
9 DECL_HIDDEN_STRING_LENGTH on hidden string length PARM_DECLs if
10 len is constant.
11
193f2419
JB
122019-05-15 Janne Blomqvist <jb@gcc.gnu.org>
13
14 * parse.c (gfc_parse_file): Remove translation string markers.
15
4c016457
JB
162019-05-12 Janne Blomqvist <jb@gcc.gnu.org>
17
18 * dump-parse-tree.c (get_c_type_name): Use macros for complex type
19 names.
20 * parse.c (gfc_parse_file): Define complex macros, add CPP support
21 when printing C prototypes.
22
15e5858f
TK
232019-05-10 Thomas Koenig <tkoenig@gcc.gnu.org>
24
25 PR fortran/61968
26 * interface.c (compare_actual_formal): Do not create a vtab if
27 the actual argument is assumed type.
28
0a524296
PT
292019-05-10 Paul Thomas <pault@gcc.gnu.org>
30
31 PR fortran/90093
32 * trans-decl.c (convert_CFI_desc): Test that the dummy is
33 present before doing any of the conversions.
34
35 PR fortran/90352
36 * decl.c (gfc_verify_c_interop_param): Restore the error for
37 charlen > 1 actual arguments passed to bind(C) procs.
38 Clean up trailing white space.
39
40 PR fortran/90355
41 * trans-array.c (gfc_trans_create_temp_array): Set the 'span'
42 field to the element length for all types.
43 (gfc_conv_expr_descriptor): The force_no_tmp flag is used to
44 prevent temporary creation, especially for substrings.
45 * trans-decl.c (gfc_trans_deferred_vars): Rather than assert
46 that the backend decl for the string length is non-null, use it
47 as a condition before calling gfc_trans_vla_type_sizes.
48 * trans-expr.c (gfc_conv_gfc_desc_to_cfi_desc): 'force_no_tmp'
49 is set before calling gfc_conv_expr_descriptor.
50 * trans.c (get_array_span): Move the code for extracting 'span'
51 from gfc_build_array_ref to this function. This is specific to
52 descriptors that are component and indirect references.
53 * trans.h : Add the force_no_tmp flag bitfield to gfc_se.
54
6328ce1f
TK
552019-05-08 Thomas Koenig <tkoenig@gcc.gnu.org>
56
57 PR fortran/90351
58 PR fortran/90329
93fd52fc 59 * dump-parse-tree.c: Include version.h.
6328ce1f
TK
60 (gfc_dump_external_c_prototypes): New function.
61 (get_c_type_name): Select "char" as a name for a simple char.
62 Adjust to handling external functions. Also handle complex.
63 (write_decl): Add argument bind_c. Adjust for dumping of external
64 procedures.
65 (write_proc): Likewise.
66 (write_interop_decl): Add bind_c argument to call of write_proc.
67 * gfortran.h: Add prototype for gfc_dump_external_c_prototypes.
68 * lang.opt: Add -fc-prototypes-external flag.
69 * parse.c (gfc_parse_file): Move dumping of BIND(C) prototypes.
70 Call gfc_dump_external_c_prototypes if option is set.
71 * invoke.texi: Document -fc-prototypes-external.
72
c21ffa3e
SK
732019-05-06 Steven G. Kargl <kargl@gcc.gnu.org>
74
75 PR fortran/90290
76 * match.c (gfc_match_stopcode): Check F2008 condition on stop code.
77
9f3a481e
AB
782019-05-01 Andrew Benson <abensonca@gmail.com>
79
80 * module.c (write_module): Initialize module_column before writing
81 module to ensure line break occurs at correct column.
82
db9c3729
DH
832019-05-01 Dominique d'Humieres <dominiq@gcc.gnu.org>
84
85 PR fortran/60144
86 * match.c (gfc_match_parens): Change the location for missing ')'.
87 (gfc_match_if): Detect a missing '('. Remove the spurious named
88 constant error. Change the wording of some errors.
89 (gfc_match_else): Change the wording of an error.
90 (gfc_match_elseif): Detect a missing '('. Improve the matching
91 process to get a better syntax analysis.
92
2810dfab
SK
932019-04-19 Steven G. Kargl <kargl@gcc.gnu.org>
94
95 PR fortran/90166
96 * decl.c (in_module_or_interface): New function to check that the
97 current state is in a module, submodule, or interface.
98 (gfc_match_prefix): Use it.
99
16a51cf5
PT
1002019-04-22 Paul Thomas <pault@gcc.gnu.org>
101
102 PR fortran/57284
103 * resolve.c (find_array_spec): If this is a class expression
104 and the symbol and component array specs are the same, this is
105 not an error.
106 *trans-intrinsic.c (gfc_conv_intrinsic_size): If a class symbol
107 argument, has no namespace, it has come from the interface
108 mapping and the _data component must be accessed directly.
109
b39c686b
TS
1102019-04-17 Thomas Schwinge <thomas@codesourcery.com>
111
112 PR fortran/90048
113 * openmp.c (gfc_resolve_do_iterator): Handle sharing_clauses for
114 OpenACC, too.
115 (gfc_resolve_oacc_blocks): Populate sharing_clauses with private
116 clauses.
117
0d78e4aa
PT
1182019-04-14 Paul Thomas <pault@gcc.gnu.org>
119
120 PR fortran/89843
121 * trans-decl.c (gfc_get_symbol_decl): Assumed shape and assumed
122 rank dummies of bind C procs require deferred initialization.
123 (convert_CFI_desc): New procedure to convert incoming CFI
124 descriptors to gfc types and back again.
125 (gfc_trans_deferred_vars): Call it.
126 * trans-expr.c (gfc_conv_gfc_desc_to_cfi_desc): Null the CFI
127 descriptor pointer. Free the descriptor in all cases.
128
129 PR fortran/89846
130 * expr.c (is_CFI_desc): New function.
131 (is_subref_array): Tidy up by referencing the symbol directly.
132 * gfortran.h : Prototype for is_CFI_desc.
133 * trans_array.c (get_CFI_desc): New function.
134 (gfc_get_array_span, gfc_conv_scalarized_array_ref,
135 gfc_conv_array_ref): Use it.
136 * trans.c (get_array_span): Extract the span from descriptors
137 that are indirect references.
138
139 PR fortran/90022
140 * trans-decl.c (gfc_get_symbol_decl): Make sure that the se
141 expression is a pointer type before converting it to the symbol
142 backend_decl type.
143 * trans-expr.c (gfc_conv_gfc_desc_to_cfi_desc): Eliminate
144 temporary creation for intent(in).
145
91797170
DH
1462019-04-13 Dominique d'Humieres <dominiq@gcc.gnu.org>
147
148 PR fortran/79842
149 * module.c (gfc_use_module): use complete sentences.
150
c00d68e8
TK
1512019-04-11 Thomas Koenig <tkoenig@gcc.gnu.org>
152
153 PR translation/89939
154 * frontend-passes.c (B_ERROR): Delete macro.
155 (C_ERROR): Delete macro.
156 (B_ERROR_1): New macro.
157 (C_ERROR_1): New macro.
158 (C_ERROR_2): New macro.
159 (inline_matmul_assign): Use new macros.
160 (call_external_blas): Likewise.
161
b81f7b83
TK
1622019-04-06 Thomas Koenig <tkoenig@gcc.gnu.org>
163
164 PR fortran/87352
165 * gfortran.h (gfc_component): Add finalized field.
166 * class.c (finalize_component): If the component is already
167 finalized, return early. Set component->finalized on exit.
168
2955784c
TK
1692019-04-06 Thomas Koenig <tkoenig@gcc.gnu.org>
170
171 PR fortran/89981
172 * resolve.c (resolve_global_procedure): If the global symbol is an
173 ENTRY, also look up its name among the entries.
174
aace91e2
HA
1752019-04-04 Harald Anlauf <anlauf@gmx.de>
176
c8a5bef3 177 PR fortran/89904
aace91e2
HA
178 * check.c (gfc_check_transfer): Reject procedures as actual
179 arguments for SOURCE and MOLD of TRANSFER intrinsic.
180
c17bad53
DH
1812019-04-03 Steven G. Kargl <kargl@gcc.gnu.org>
182
183 PR fortran/68567
184 * expr.c (gfc_reduce_init_expr): Add extra check to avoid
185 dereferencing a null pointer.
186
3a3976b1
DH
1872019-04-03 Dominique d'Humieres <dominiq@gcc.gnu.org>
188
189 PR fortran/89375
190 * expr.c (comp_pointer): Remove redundant condition.
191
93755deb
HA
1922019-03-31 Harald Anlauf <anlauf@gmx.de>
193
194 PR fortran/83515
195 PR fortran/85797
196 * trans-types.c (gfc_typenode_for_spec): Handle conversion for
197 procedure pointers.
198 * target-memory.c (gfc_element_size): Handle size determination
199 for procedure pointers.
200
60e8cda6
TK
2012019-03-31 Thomas Koenig <tkoenig@gcc.gnu.org>
202
203 * dump-parse-tree.c (debug): Add for symbol_attribute *,
204 symbol_attribute and gfc_ref * arguments.
205
0324a497
PT
2062019-03-30 Paul Thomas <pault@gcc.gnu.org>
207
208 PR fortran/89841
209 * trans-expr.c (gfc_conv_gfc_desc_to_cfi_desc): Use the formal
210 argument attributes rather than those of the actual argument.
211
212 PR fortran/89842
213 * trans-expr.c (gfc_conv_gfc_desc_to_cfi_desc): Call
214 'set_dtype_for_unallocated' for any type of arrayspec.
215
7076b27b
JW
2162019-03-27 Janus Weil <janus@gcc.gnu.org>
217
218 PR fortran/85537
219 * expr.c (gfc_check_assign_symbol): Reject internal and dummy procedures
220 in procedure pointer initialization.
221
d5f48c7c
PT
2222019-03-27 Paul Thomas <pault@gcc.gnu.org>
223
224 PR fortran/88247
225 * expr.c (is_subref_array): Permit substrings to be detected
226 as subref arrays.
227 * trans-array.c (get_array_ctor_var_strlen): Obtain the length
228 of deferred length strings. Handle substrings with a NULL end
229 expression.
230 (trans_array_constructor): Remove an unnecessary blank line.
231 (gfc_conv_scalarized_array_ref): Skip to label 'done' if 'decl'
232 is a pointer array.
233 (get_array_charlen): If the expression is an array, convert the
234 first element of the constructor and use its string length. Get
235 a new charlen if necessary.
236 (gfc_conv_expr_descriptor): Call 'get_array_charlen' for array
237 constructor expressions. If the ss_info string length is
238 available, use that to set the span of character arrays.
239 * trans-expr.c (gfc_get_expr_charlen): Handle substrings
240 * trans-stmt.c (trans_associate_var): Set the pointer array
241 flag for variable targets and constant array constructors. Take
242 care not to reset the string length or the span in the case of
243 expressions that are not converted as direct by reference.
244
4c6d441d
KT
2452019-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
246
247 * intrinsic.texi (MINLOC): Fix typo in BACK argument documentation.
248 (MAXLOC): Likewise.
249
866664a3
TK
2502019-03-24 Thomas Koenig <tkoenig@gcc.gnu.org>
251
252 PR fortran/78865
253 * interface.c (compare_actual_formal): Change errors about
254 missing or extra to gfc_error_now to make sure they are issued.
255 Change "spec" to "specifier" in message.
256 * resolve.c (resolve_global_procedure): Also check for mismatching
257 interface with global symbols if the namespace has already been
258 resolved.
259
64a40f13
TS
2602019-03-21 Thomas Schwinge <thomas@codesourcery.com>
261
2e4182ae
TS
262 PR fortran/72741
263 * openmp.c (gfc_match_oacc_routine): Set the level of parallelism
264 for all variants.
265 (gfc_resolve_oacc_routines): Call gfc_add_omp_declare_target.
266
f6bf4bc1
TS
267 PR fortran/89773
268 * gfortran.h (gfc_oacc_routine_name): Add loc member.
269 (gfc_resolve_oacc_routines): Declare.
270 * openmp.c (gfc_match_oacc_routine): Move some error checking
271 into...
272 (gfc_resolve_oacc_routines): ... this new function.
273 * resolve.c (resolve_codes): Call it.
274
8ced98c6
TS
275 PR fortran/72741
276 * openmp.c (gfc_match_oacc_routine): Clarify.
277
64a40f13
TS
278 PR fortran/72741
279 * module.c (verify_OACC_ROUTINE_LOP_NONE): New function.
280 (enum ab_attribute): Add AB_OACC_ROUTINE_LOP_GANG,
281 AB_OACC_ROUTINE_LOP_WORKER, AB_OACC_ROUTINE_LOP_VECTOR,
282 AB_OACC_ROUTINE_LOP_SEQ.
283 (attr_bits): Add these.
284 (mio_symbol_attribute): Handle these.
285
5d2df818
JW
2862019-03-20 Janus Weil <janus@gcc.gnu.org>
287
288 PR fortran/71861
289 * symbol.c (check_conflict): ABSTRACT attribute conflicts with
290 INTRINSIC attribute.
291
3051b25e
TK
2922019-03-18 Thomas Koenig <tkoeng@gcc.gnu.org>
293
294 PR fortran/68009
295 * iresolve.c: Include trans.h.
296 (gfc_resolve_fe_runtine_error): Set backend_decl on
297 resolved_sym.
298
7e703f01
TK
2992019-03-17 Thomas Koenig <tkoenig@gcc.gnu.org>
300
301 PR fortran/88008
302 * gfortran.h (expr_t): Add EXPR_UNKNOWN.
303 * expr.c (gfc_copy_expr): Add EXPR_UNKNOWN to switch statement.
304 (gfc_simplify_expr): Likewise.
305 * module.c (mio_expr): Likewise.
306 * resovle.c (extract_compcall_passed_object): Issue error on
307 unknown type.
308 (check_typebound_baseobject): Issue error on wrong type.
309 * trans-expr.c (gfc_apply_interface_mapping_to_expr): Add
310 EXPR_UNKNOWN to switch statement.
311
985a7216
JJ
3122019-03-16 Jakub Jelinek <jakub@redhat.com>
313
314 PR fortran/89724
315 * scanner.c (load_line): Remove linenum and current_line static
316 variables, add warned_tabs automatic variable. Use current_file->line
317 instead of current_line and warned_tabs boolean to avoid diagnosing
318 tabs multiple times on the same line.
319
fbf1cec7
TK
3202019-03-16 Thomas Koenig <tkoenig@gcc.gnu.org>
321
322 PR fortran/84394
323 * symbol.c (gfc_add_subroutine): If we are encountering a
324 subrtoutine within a BLOCK DATA and the name starts with an
325 underscore, do not check.
326
eb1474ba
HA
3272019-03-15 Harald Anlauf <anlauf@gmx.de>
328
329 PR fortran/60091
330 * expr.c (gfc_check_pointer_assign): Correct and improve error
331 messages for invalid pointer assignments.
332
c2772236
TK
3332019-03-14 Thomas Koenig <tkoenig@gcc.gnu.org>
334
335 * gfortran.texi: Document Q edit descriptor under
fbf1cec7 336 "Extensions not implemented in GNU Fortran".
c2772236 337
edaff7c9
HA
3382019-03-13 Harald Anlauf <anlauf@gmx.de>
339
340 PR fortran/87045
341 * trans-expr.c (gfc_trans_pointer_assignment): Move check for same
342 string length so that we do not get false errors for deferred
343 length.
344
84083a71
JW
3452019-03-13 Janus Weil <janus@gcc.gnu.org>
346
347 PR fortran/89601
348 * decl.c (gfc_match_formal_arglist): Reject empty type parameter lists.
349 (gfc_match_derived_decl): Mark as PDT only if type parameter list was
350 matched successfully.
351
55b9c612
TK
3522019-03-13 Thomas Koenig <tkoenig@gcc.gnu.org>
353
354 PR fortran/66695
355 PR fortran/77746
356 PR fortran/79485
357 * gfortran.h (gfc_symbol): Add bind_c component.
358 (gfc_get_gsymbol): Add argument bind_c.
359 * decl.c (add_global_entry): Add bind_c argument to
360 gfc_get_symbol.
361 * parse.c (parse_block_data): Likewise.
362 (parse_module): Likewise.
363 (add_global_procedure): Likewise.
364 (add_global_program): Likewise.
365 * resolve.c (resolve_common_blocks): Likewise.
366 (resolve_global_procedure): Likewise.
367 (gfc_verify_binding_labels): Likewise.
368 * symbol.c (gfc_get_gsymbol): Add argument bind_c. Set bind_c
369 in gsym.
370 * trans-decl.c (gfc_get_module_backend_decl): Add bind_c argument
371 to gfc_get_symbol.
372 (gfc_get_extern_function_decl): If the sym has a binding label
373 and it cannot be found in the global symbol tabel, it is the wrong
374 one and vice versa.
375
1eabf876
TK
3762019-03-12 Thomas Koenig <tkoenig@gcc.gnu.org>
377
378 PR fortran/87673
379 * match.c (gfc_match_type_spec): Remove call to
380 gfc_resolve_expr for character length.
381
1fe61adf
ML
3822019-03-12 Martin Liska <mliska@suse.cz>
383
384 * decl.c (add_init_expr_to_sym): Replace usage of 'can't'
385 with 'cannot'.
386 (variable_decl): Likewise.
387 (cray_pointer_decl): Likewise.
388 (match_binding_attributes): Likewise.
389 * f95-lang.c (gfc_init): Likewise.
390 * interface.c (gfc_check_typebound_override): Likewise.
391 * intrinsic.c (make_generic): Likewise.
392 * module.c (dump_module): Likewise.
393 (gfc_use_module): Likewise.
394 * primary.c (gfc_convert_to_structure_constructor): Likewise.
395 * resolve.c (resolve_entries): Likewise.
396 (check_generic_tbp_ambiguity): Likewise.
397 (get_checked_tb_operator_target): Likewise.
398 * scanner.c (load_file): Likewise.
399 * trans-expr.c (gfc_conv_intrinsic_to_class): Likewise.
400
0e308880
PT
4012019-03-12 Paul Thomas <pault@gcc.gnu.org>
402
403 PR fortran/89363
404 PR fortran/89364
405 * trans-expr.c (set_dtype_for_unallocated): New function.
406 (gfc_conv_gfc_desc_to_cfi_desc): Call it for allocatable and
407 pointer arguments.
408 (gfc_conv_procedure_call): Likewise. Also, set the ubound of
409 the final dimension to -1 for assumed rank formal args that are
410 associated with assumed size arrays.
411 * trans-intrinsic.c (gfc_conv_intrinsic_bound): Return -1 for
412 the final dimension of assumed rank entities that are argument
413 associated with assumed size arrays.
414 (gfc_conv_intrinsic_shape): Likewise return -1 for the final
415 dimension of the shape intrinsic.
416
a7b9de8b
JJ
4172019-03-11 Jakub Jelinek <jakub@redhat.com>
418
419 PR fortran/89651
420 * trans-openmp.c (gfc_omp_clause_default_ctor): Set TREE_NO_WARNING
421 on decl if adding COND_EXPR for allocatable.
422 (gfc_omp_clause_copy_ctor): Set TREE_NO_WARNING on dest.
423
a3f9f006
ML
4242019-03-11 Martin Liska <mliska@suse.cz>
425
426 * decl.c (match_record_decl): Wrap an option name
427 in a string format message and fix GNU coding style.
428 (gfc_match_pointer): Likewise.
429 * expr.c (find_array_section): Likewise.
430 * intrinsic.c (gfc_is_intrinsic): Likewise.
431 * options.c (gfc_post_options): Likewise.
432 * primary.c (match_integer_constant): Likewise.
433 * trans-common.c (translate_common): Likewise.
434
4932364b
TK
4352019-03-10 Thomas Koenig <tkoenig@gcc.gnu.org>
436
437 PR fortran/66089
438 * trans-array.c (gfc_scalar_elemental_arg_saved_as_reference):
439 Return false if a scalar tempoary is needed.
440 (gfc_walk_variable_expr): Fix up class refs.
441
2263c69e
TK
4422019-03-10 Thomas Koenig <tkoenig@gcc.gnu.org>
443
444 PR fortran/87734
445 * symbol.c (gfc_add_procedure): Only throw an error if the
446 procedure has not been declared either PUBLIC or PRIVATE.
447
4ea60a39
TK
4482019-03-09 Thomas Koenig <tkoenig@gcc.gnu.org>
449
450 PR fortran/71544
451 * trans-types.c (gfc_typenode_for_spec) Set ts->is_c_interop of
452 C_PTR and C_FUNPTR.
453 (create_fn_spec): Mark argument as escaping if ts->is_c_interop is set.
454
b5c26787
JW
4552019-03-09 Janus Weil <janus@gcc.gnu.org>
456
457 PR fortran/84504
458 * expr.c (gfc_check_assign_symbol): Deal with procedure pointers to
459 pointer-valued functions.
460
8ed5ae52
TK
4612019-03-09 Thomas König <tkoenig@gcc.gnu.org>
462
463 PR fortran/71203
464 * decl.c (add_init_expr_to_sym): Add shape if init has none. Add
465 asserts that it has to be an EXPR_ARRAY in this case.
466
0d7bac69
JJ
4672019-03-08 Jakub Jelinek <jakub@redhat.com>
468
469 PR other/80058
470 * arith.c (gfc_complex2complex): Avoid two spaces in the middle of
471 diagnostics.
472 * resolve.c (resolve_allocate_expr): Likewise.
473
a28a8193
HA
4742019-03-06 Harald Anlauf <anlauf@gmx.de>
475
476 PR fortran/71203
477 * expr.c (simplify_const_ref): Avoid null pointer dereference.
478
de06e54d
HA
4792019-03-03 Harald Anlauf <anlauf@gmx.de>
480 Steven G. Kargl <kargl@gcc.gnu.org>
481
482 PR fortran/77583
483 * symbol.c (check_conflict): Check for valid procedure name
484 passed to error reporting routine.
485
b450b08d
TK
4862019-03-03 Thomas Koenig <tkoenig@gcc.gnu.org>
487
488 PR fortran/72714
489 * resolve.c (resolve_allocate_expr): Add some tests for coarrays.
490
4716603b
HA
4912019-03-02 Harald Anlauf <anlauf@gmx.de>
492
493 PR fortran/89516
494 * check.c (gfc_calculate_transfer_sizes): Correct checks for cases
495 where storage size of elements of MOLD is 0.
496
6f87db2d
TS
4972019-02-28 Thomas Schwinge <thomas@codesourcery.com>
498 Cesar Philippidis <cesar@codesourcery.com>
499
80d6ca01
TS
500 PR fortran/72741
501 PR fortran/89433
502 * openmp.c (gfc_match_oacc_routine): Handle repeated use of the
503 Fortran OpenACC 'routine' directive.
504
e5fd6684
TS
505 PR fortran/72741
506 * gfortran.h (enum oacc_routine_lop): Add OACC_ROUTINE_LOP_ERROR.
507 * openmp.c (gfc_oacc_routine_lop, gfc_match_oacc_routine): Use it.
508 * trans-decl.c (add_attributes_to_decl): Likewise.
509
6f87db2d
TS
510 PR fortran/72741
511 PR fortran/89433
512 * openmp.c (gfc_match_oacc_routine): Accept intrinsic symbols.
513
ec2d749a
HA
5142019-02-26 Harald Anlauf <anlauf@gmx.de>
515
516 PR fortran/89492
517 * check.c (gfc_calculate_transfer_sizes): Handle cases where
518 storage size of elements of MOLD is 0.
519
e5bf8dee
TK
5202019-02-26 Thomas Koenig <tkoenig@gcc.gnu.org>
521
522 PR fortran/89496
523 * trans-types.c (get_formal_from_actual_arglist): If
524 the actual arglist has no expression, the corresponding
525 formal arglist is an alternate return.
526
0eaf1412
JJ
5272019-02-26 Jakub Jelinek <jakub@redhat.com>
528
529 PR fortran/43210
530 * trans-array.c (gfc_conv_array_initializer): Use RANGE_EXPR instead
531 of duplicating the initializer possibly many times.
532
4afe8252
TK
5332019-02-24 Thomas Koenig <tkoenig@gcc.gnu.org>
534
535 PR fortran/89174
536 * trans-expr.c (gfc_find_and_cut_at_last_class_ref): Add is_mold
e5bf8dee 537 to arguments. If we are dealing with a MOLD, call
4afe8252
TK
538 gfc_expr_to_initialize().
539 * trans-stmt.c (gfc_trans_allocate): For MOLD, pass is_mold=true
540 to gfc_find_and_cut_at_last_class_ref.
541 * trans.h (gfc_find_and_cut_at_last_class_ref): Add optional
542 argument is_mold with default false.
543
cdd17931
HA
5442019-02-24 Harald Anlauf <anlauf@gmx.de>
545
546 PR fortran/89266
547 PR fortran/88326
548 * target-memory.c (gfc_element_size): Return false if element size
549 cannot be determined; element size is returned separately.
550 (gfc_target_expr_size): Return false if expression size cannot be
551 determined; expression size is returned separately.
552 * target-memory.h: Adjust prototypes.
553 * check.c (gfc_calculate_transfer_sizes): Adjust references to
554 gfc_target_expr_size, gfc_element_size.
555 * arith.c (hollerith2representation): Likewise.
556 * class.c (find_intrinsic_vtab): Likewise.
557 * simplify.c (gfc_simplify_sizeof): Likewise.
558
85627e2a
JD
5592019-02-23 Jerry DeLisle <jvdelisle@gcc.gnu.org>
560
561 PR fortran/84387
562 * trans-io.c (transfer_expr): Do not return if there are no
563 components to the derived type or class.
564
524cee40
PT
5652019-02-23 Paul Thomas <pault@gcc.gnu.org>
566
567 PR fortran/88117
568 * resolve.c (deferred_op_assign): Return if the lhs expression
569 has the pointer attribute.
570 * trans-expr.c (gfc_trans_assignment_1): Do not fix the string
571 length if the lhs expression has the pointer attribute.
572
c2808389
PT
5732019-02-23 Paul Thomas <pault@gcc.gnu.org>
574
575 PR fortran/89385
576 PR fortran/89366
577 * decl.c (gfc_verify_c_interop_param): Restriction on string
578 length being one is lifted for F2018.
579 * trans-expr.c (gfc_conv_gfc_desc_to_cfi_desc): For scalar
580 characters with intent in, make a temporary and copy the result
581 of the expression evaluation into it.
582 (gfc_conv_procedure_call): Set a flag for character formal args
583 having a character length that is not unity. If the procedure
584 is bind C, call gfc_conv_gfc_desc_to_cfi_desc in this case.
585 Also, extend bind C calls to unconditionally convert both
586 pointers and allocatable expressions.
587
0d527f0d
DM
5882019-02-23 David Malcolm <dmalcolm@redhat.com>
589 Jakub Jelinek <jakub@redhat.com>
590
591 PR middle-end/88074
592 * simplify.c (norm2_do_sqrt, gfc_simplify_norm2): Use
593 mpfr_number_p && !mpfr_zero_p instead of mpfr_regular_p.
594 (norm2_add_squared): Likewise. Use mp_exp_t rather than mpfr_exp_t.
595
56bf85c1
HA
5962019-02-22 Harald Anlauf <anlauf@gmx.de>
597
598 PR fortran/83057
599 * io.c (gfc_match_open): Fix logic in checks of OPEN statement
600 when NEWUNIT= is specified.
601
f3e1797a
SK
6022019-02-22 Steven G. Kargl <kargl@gcc.gnu.org>
603
604 PR fortran/89431
605 * gfortran.texi: Fix documentation to match the implementation.
606
68034b1b
TS
6072019-02-22 Thomas Schwinge <thomas@codesourcery.com>
608 Cesar Philippidis <cesar@codesourcery.com>
609
610 PR fortran/72741
611 * gfortran.h (oacc_routine_lop): New enum.
612 (symbol_attribute): Use it.
613 * openmp.c (gfc_oacc_routine_dims): Replace with...
614 (gfc_oacc_routine_lop): ... this new function.
615 (gfc_match_oacc_routine): Adjust.
616 * trans-decl.c (add_attributes_to_decl): Likewise.
617
c319667a
TS
6182019-02-22 Thomas Schwinge <thomas@codesourcery.com>
619
620 * openmp.c (gfc_match_oacc_declare): Revert earlier changes.
621
5ea0d4df
TK
6222019-02-21 Thomas Koenig <tkoenig@gcc.gnu.org>
623
624 * dump-parse-tree.c (debug): Implement for gfc_expr *,
625 gfc_typespec *, gfc_typespec and gfc_symbol *.
626
9e6644c6
TK
6272019-02-21 Thomas Koenig <tkoenig@gcc.gnu.org>
628
629 PR fortran/86119
630 * class.c (gfc_get_len_component): Add argument k for kind.
631 If the kind of the resulting expression is not equal to k,
632 convert it.
633 * gfortran.h (gfc_len_component): Adjust prototype.
634 * simplify.c (gfc_simplify_len): Pass kind to
635 gfc_get_len_component.
636
c9ea5b63
ML
6372019-02-20 Martin Liska <mliska@suse.cz>
638
639 * gfortran.texi: Change singular to plural.
640
7ac75976
ML
6412019-02-20 Martin Liska <mliska@suse.cz>
642
643 * gfortran.texi: Document Fortran header directive.
644
9d52e1bb
TK
6452019-02-19 Thomas Koenig <tkoenig@gcc.gnu.org>
646
647 PR fortran/89384
648 * trans-expr.c (gfc_conv_gfc_desc_to_cfi_desc): If the dummy
649 argument is contiguous and the actual argument may not be,
650 use gfc_conv_subref_array_arg.
651
54603edc 6522019-02-19 Thomas Schwinge <thomas@codesourcery.com>
19695f4d
CLT
653
654 PR c/87924
655 * openmp.c (gfc_match_omp_clauses): Add representation of wait clause
656 without argument as 'wait (GOMP_ASYNC_NOVAL)'.
657
378f53c7
TK
6582019-02-18 Thomas Koenig <tkoenig@gcc.gnu.org>
659
660 PR fortran/87689
661 * trans-decl.c (gfc_get_extern_function_decl): Add argument
662 actual_args and pass it through to gfc_get_function_type.
663 * trans-expr.c (conv_function_val): Add argument actual_args
664 and pass it on to gfc_get_extern_function_decl.
665 (conv_procedure_call): Pass actual arguments to conv_function_val.
666 * trans-types.c (get_formal_from_actual_arglist): New function.
667 (gfc_get_function_type): Add argument actual_args. Generate
668 formal args from actual args if necessary.
669 * trans-types.h (gfc_get_function_type): Add optional argument.
670 * trans.h (gfc_get_extern_function_decl): Add optional argument.
671
e8cecccc
ML
6722019-02-18 Martin Liska <mliska@suse.cz>
673
674 * decl.c (gfc_match_gcc_builtin): Add support for filtering
675 of builtin directive based on multilib ABI name.
676
0f7cec09
HA
6772019-02-17 Harald Anlauf <anlauf@gmx.de>
678
679 PR fortran/88299
680 * resolve.c (resolve_common_blocks,resolve_common_vars): Move
681 check for obsolent COMMON feature in F2018 to better place.
682
e6ca33ba
HA
6832019-02-17 Harald Anlauf <anlauf@gmx.de>
684
685 PR fortran/89077
686 * decl.c (gfc_set_constant_character_len): Clear original string
687 representation after padding has been performed to target length.
688
843192c0
JJ
6892019-02-16 Jakub Jelinek <jakub@redhat.com>
690
691 PR middle-end/88074
692 * simplify.c (simplify_transformation_to_array): Run post_op
693 immediately after processing corresponding row, rather than at the
694 end.
695 (norm2_scale): New variable.
696 (add_squared): Rename to ...
697 (norm2_add_squared): ... this. Scale down operand and/or result
698 if needed.
699 (do_sqrt): Rename to ...
700 (norm2_do_sqrt): ... this. Handle the result == e case. Scale up
701 result and clear norm2_scale.
702 (gfc_simplify_norm2): Clear norm2_scale. Change add_squared to
703 norm2_add_squared and &do_sqrt to norm2_do_sqrt. Scale up result
704 and clear norm2_scale again.
705
9dbdefbb
TK
7062019-02-17 Thomas Koenig <tkoenig@gcc.gnu.org>
707
708 PR fortran/71066
709 * trans-decl.c (generate_coarray_sym_init): For an array
710 constructor in a DATA statement of a coarray variable, set the
711 rank to 1 to avoid confusion later on. If the constructor
712 contains only one value, use that for initiailizig.
713
66086032
JB
7142019-02-14 Janne Blomqvist <jb@gcc.gnu.org>
715
716 PR fortran/81552
717 * gfortran.h (gfc_option_t): Make flag_init_integer_value a long.
718 * options.c (gfc_handle_option): Use strtol instead of atoi.
719 * invoke.texi: Document -finit-integer behavior in more detail.
720
14b693ba
HA
7212019-02-14 Harald Anlauf <anlauf@gmx.de>
722
723 PR fortran/88248
724 * symbol.c: Move check for labeled DO statement from
725 gfc_define_st_label to gfc_reference_st_label.
726
affd7d47
CP
7272019-02-14 Cesar Philippidis <cesar@codesourcery.com>
728
729 PR fortran/72715
730 * openmp.c (resolve_oacc_nested_loops): Error on do concurrent
731 loops.
732
53fcf729
ML
7332019-02-13 Martin Liska <mliska@suse.cz>
734
735 PR fortran/88649
736 * resolve.c (resolve_operator): Initialize 't' right
737 after function entry. Skip switch (e->value.op.op)
738 for -fdec operands that become function calls.
739
cedf8d2e
TK
7402019-02-10 Thomas Koenig <tkoenig@gcc.gnu.org>
741
f1b7b50a 742 PR fortran/71723
cedf8d2e
TK
743 * expr.c (gfc_check_assign): Add argument is_init_expr. If we are
744 looking at an init expression, issue error if the target is not a
745 TARGET and we are not looking at a procedure pointer.
746 * gfortran.h (gfc_check_assign): Add optional argument
747 is_init_expr.
748
1fe27030
HA
7492019-02-09 Harald Anlauf <anlauf@gmx.de>
750
751 PR fortran/89077
752 * resolve.c (gfc_resolve_substring_charlen): Check substring
753 length for constantness prior to general calculation of length.
754
af3da717
PT
7552019-02-09 Paul Thomas <pault@gcc.gnu.org>
756
757 PR fortran/89200
758 * trans-array.c (gfc_trans_create_temp_array): Set the 'span'
759 field for derived types.
760
bc1efcb7
HA
7612019-02-04 Harald Anlauf <anlauf@gmx.de>
762
763 PR fortran/89077
764 * decl.c (add_init_expr_to_sym): Copy length of string initializer
765 to declared symbol.
766
a693d9b3
ML
7672019-02-04 Martin Liska <mliska@suse.cz>
768
769 PR fortran/89185
770 * resolve.c (resolve_ref): Remove breakout variable as
771 we need to prevent prev = &(*prev)->next to happen
772 with *prev == NULL.
773
fcd698d7
ML
7742019-02-04 Martin Liska <mliska@suse.cz>
775
776 PR fortran/88912
777 * scanner.c (load_file): Report error for -fpre-include
778 file and do not ICE.
779
1bdfc7aa
DH
7802019-02-02 Dominique d'Humieres <dominiq@gcc.gnu.org>
781
782 PR fortran/81344
783 * invoke.texi: Document the behavior of repeated -ffpe-trap
784 and -ffpe-summary.
785
5197d799
TK
7862019-02-02 Thomas Koenig <tkoenig@gcc.gnu.org>
787
788 PR fortran/88298
789 * arith.c (gfc_int2int): Do not warn if src->do_not_warn is set.
790 * gfortran.h (gfc_expr): Add flag do_not_warn.
791 * intrinsic.c (gfc_convert_type_warn): Set expr->do_not_warn if
792 no warning is desired.
793
a3df90b9
PT
7942019-02-02 Paul Thomas <pault@gcc.gnu.org>
795
796 PR fortran/88393
797 * trans-expr.c (gfc_conv_procedure_call): For derived entities,
798 passed in parentheses to class formals, invert the order of
799 copying allocatable components to taking the _data of the
800 class expression.
801
da46c08e
PT
8022019-02-02 Paul Thomas <pault@gcc.gnu.org>
803
804 PR fortran/88980
805 * trans-array.c (gfc_array_init_size): Add element_size to the
806 arguments.
807 (gfc_array_allocate): Remove the recalculation of the size of
808 the element and use element_size from the call to the above.
809 Unconditionally set the span field of the descriptor.
810
6bb45a6b
PT
8112019-02-02 Paul Thomas <pault@gcc.gnu.org>
812
813 PR fortran/88685
814 * expr.c (is_subref_array): Move the check for class pointer
815 dummy arrays to after the reference check. If we haven't seen
816 an array reference other than an element and a component is not
817 class or derived, return false.
818
30253e23
JJ
8192019-02-01 Jakub Jelinek <jakub@redhat.com>
820
821 PR fortran/83246
822 PR fortran/89084
823 * trans-decl.c (generate_local_decl): Add referenced FL_PARAMETERs
824 if sym->ns->construct_entities rather than if
825 sym->ns->parent->code->op == EXEC_BLOCK.
826
1bd83e0b
TK
8272019-01-31 Thomas Koenig <tkoenig@gcc.gnu.org>
828
829 PR fortran/88669
830 * resolve.c (resolve_component): If the reference is a BT_CLASS,
831 copy the contiguous attribute from the reference and use the
832 correct attributes.
833
474175e9
JD
8342019-01-30 Jerry DeLisle <jvdelisle@gcc.gnu.org>
835
836 PR fortran/52564
837 * io.c (match_io): Add check for comma after '*' without subsequent
838 IO list.
839
8ff7780c
DH
8402019-01-30 Dominique d'Humieres <dominiq@gcc.gnu.org>
841
842 PR fortran/52884
843 * invoke.texi: Document the promotion of double precision
844 constants.
845
5af5f1de
TK
8462019-01-29 Thomas Koenig <tkoenig@gcc.gnu.org>
847
848 PR fortran/57048
849 * interface.c (gfc_compare_types): If a derived type and an
850 integer both have a derived type, and they are identical,
851 this is a C binding type and compares equal.
852
3a55c8e2
HA
8532019-01-26 Harald Anlauf <anlauf@gmx.de>
854
855 PR fortran/57553
856 * expr.c (check_inquiry): Add list of inquiry functions allowed in
857 constant expressions for F2008+.
858
f28c46cd
SK
8592019-01-25 Steven G. Kargl <kargl@gcc.gnu.org>
860
861 PR fortran/85780
862 * decl.c (gfc_match_subroutine): Check for conflict between BIND(C)
863 and alternative return.
864
db06a76e
PT
8652019-01-24 Paul Thomas <pault@gcc.gnu.org>
866
867 PR fortran/88929
868 * trans-array.c (gfc_conv_descriptor_elem_len): New function.
869 * trans-array.h : Add prototype for above.
870 * trans-expr.c (gfc_conv_gfc_desc_to_cfi_desc): Take account of
871 assumed rank arrays being flagged by rank = -1 in expressions.
872 Intent in arrays need a pointer to a copy of the data to be
873 assigned to the descriptor passed for conversion. This should
874 then be freed, together with the CFI descriptor on return from
875 the C call.
876
358ebd8f
HA
8772019-01-22 Harald Anlauf <anlauf@gmx.de>
878
879 PR fortran/88579
880 * trans-expr.c (gfc_conv_power_op): Handle cases of (2**e) ** integer
881 and (- 2**e) ** integer.
882
b4e17cad
DH
8832019-01-19 Dominique d'Humieres <dominiq@gcc.gnu.org>
884
885 PR fortran/37835
886 * resolve.c (resolve_types): Add !flag_automatic.
887 * symbol.c (gfc_add_save): Silence warnings.
888
5131b898
SK
8892019-01-19 Steven G. Kargl <kargl@gcc.gnu.org>
890
891 PR fortran/77960
892 * io.c (match_io_element): input-item cannot be an external function.
358ebd8f 893
8558af50
TK
8942018-01-19 Thomas Koenig <tkoenig@gcc.gnu.org>
895 Paul Thomas <pault@gcc.gnu.org>
896
897 PR fortran/56789
898 * trans-expr.c (gfc_conv_procedure_call): Call
899 gfc_conv_subref_array_arg if the formal arg is contiguous
900 and the actual arg may not be.
901
b9e25708
TK
9022019-01-17 Thomas Koenig <tkoenig@gcc.gnu.org>
903
904 PR fortran/88871
905 * resolve.c (resolve_ref): Fix logic for removal of
906 reference.
907
152f258f
JJ
9082019-01-19 Jakub Jelinek <jakub@redhat.com>
909
910 PR fortran/88902
911 * trans-decl.c (gfc_get_symbol_decl): Don't add length to function
912 or parent function if it has been added there already.
913
0335cc37
TK
9142019-01-15 Thomas Koenig <tkoenig@gcc.gnu.org>
915
37879e01 916 PR fortran/43136
0335cc37
TK
917 * resolve.c (resolve_array_ref): Add equal_length argument; set it
918 if the length of the substring equals that of the orignal
919 variable.
920 (resolve_ref): Remove the substring if it is equal in length to
921 the original variable, unless it is an EXPR_SUBSTRING).
922
a81a6d58
SK
9232019-01-15 Steven G. Kargl <kargl@gcc.gnu.org>
924
925 PR fortran/81849
926 * resolve.c (resolve_symbol): Host associated varaibles can appear
927 in the specification statement of a RESULT array.
928
92f3a180
PT
9292019-01-15 Paul Thomas <pault@gcc.gnu.org>
930
931 * trans-expr.c (gfc_conv_gfc_desc_to_cfi_desc): Deal with exprs
932 that are indirect references; ie. dummy arguments.
933
2054522f
DH
9342019-01-13 Dominique d'Humieres <dominiq@gcc.gnu.org>
935
936 PR fortran/88803
937 * gfortran.texi: Replace @xref with @ref and adjust the sentence.
938
8ef8fa9a
TK
9392019-01-13 Thomas Koenig <tkoenig@gcc.gnu.org>
940
941 PR fortran/57992
152f258f 942 * trans-array.c (gfc_conv_array_parameter): Do not pack/unpack
8ef8fa9a
TK
943 functions with contiguous results.
944
5f8865c3
TK
9452019-01-13 Thomas Koenig <tkoenig@gcc.gnu.org>
946
947 PR fortran/59345
948 * trans-array.c (gfc_conv_array_parameter): Remove TODO. Do not
949 pack/unpack results of functions which return an explicit-shaped
950 or allocatable array.
951
26420121
SK
9522019-01-12 Steven G. Kargl <kargl@gcc.gnu.org>
953
954 PR fortran/61765
955 * resolve.c (gfc_verify_binding_labels): Break if-elseif-elseif
956 structure into independent if's with a return to simplify logic.
957 Avoid a check for ENTRY name with bind(c).
958
bbf18dc5
PT
9592019-01-12 Paul Thomas <pault@gcc.gnu.org>
960
152f258f 961 * gfortran.texi: Add description in sections on TS 29113 and
bbf18dc5
PT
962 further interoperability with C.
963 * trans-array.c (gfc_conv_descriptor_attribute): New function.
964 (gfc_get_dataptr_offset): Remove static function attribute.
152f258f
JJ
965 * trans-array.h: Add prototypes for above functions.
966 * trans-decl.c: Add declarations for the library functions
bbf18dc5
PT
967 cfi_desc_to_gfc_desc and gfc_desc_to_cfi_desc.
968 * trans-expr.c (gfc_conv_gfc_desc_to_cfi_desc): New function.
969 (gfc_conv_procedure_call): Call it for scalar and array actual
970 arguments, when the formal arguments are bind_c with assumed
971 shape or assumed rank.
152f258f 972 * trans.h: External declarations for gfor_fndecl_cfi_to_gfc
bbf18dc5
PT
973 and gfor_fndecl_gfc_to_cfi.
974
89508a3f
SK
9752019-01-11 Steven G. Kargl <kargl@gcc.gnu.org>
976
977 PR fortran/35031
978 * decl.c (gfc_match_entry): Check for F2018:C1546. Fix nearby
979 mis-indentation.
980
da972c05
JJ
9812019-01-11 Jakub Jelinek <jakub@redhat.com>
982
983 PR middle-end/85956
984 PR lto/88733
985 * trans-openmp.c: Include attribs.h.
986 (gfc_walk_alloc_comps, gfc_omp_clause_linear_ctor): Handle
987 VAR_DECL max bound with "omp dummy var" attribute like NULL or
988 error_mark_node - recompute number of elts independently.
989
7dc3df08
TK
9902019-01-11 Thomas Koenig <tkoenig@gcc.gnu.org>
991
992 PR fortran/59345
da972c05 993 * trans-array.c (gfc_conv_parameter_array): Temporary
7dc3df08
TK
994 arrays generated for expressions do not need to be repacked.
995
bebf94af
SK
9962019-01-10 Steven G. Kargl <kargl@gcc.gnu.org>
997
998 PR fortran/86322
999 * decl.c (top_var_list): Set locus of expr.
1000 (gfc_match_data): Detect pointer on non-rightmost part-refs.
1001
8c94b8da
SK
10022019-01-09 Steven G. Kargl <kargl@gcc.gnu.org>
1003
1004 PR fortran/88376
1005 * resolve.c (is_illegal_recursion): Remove an assert().
1006
155ed511
SL
10072019-01-09 Sandra Loosemore <sandra@codesourcery.com>
1008
1009 PR other/16615
155ed511
SL
1010 * expr.c: Change "can not" to "cannot".
1011
67914693
SL
10122019-01-09 Sandra Loosemore <sandra@codesourcery.com>
1013
1014 PR other/16615
67914693
SL
1015 * class.c: Mechanically replace "can not" with "cannot".
1016 * decl.c: Likewise.
1017 * expr.c: Likewise.
1018 * gfc-internals.texi: Likewise.
1019 * intrinsic.texi: Likewise.
1020 * invoke.texi: Likewise.
1021 * io.c: Likewise.
1022 * match.c: Likewise.
1023 * parse.c: Likewise.
1024 * primary.c: Likewise.
1025 * resolve.c: Likewise.
1026 * symbol.c: Likewise.
1027 * trans-array.c: Likewise.
1028 * trans-decl.c: Likewise.
1029 * trans-intrinsic.c: Likewise.
1030 * trans-stmt.c: Likewise.
1031
ee0b3cea
TK
10322019-01-09 Thomas Koenig <tkoenig@gcc.gnu.org>
1033
1034 PR fortran/68426
1035 * simplify.c (gfc_simplify_spread): Also simplify if the
1036 type of source is an EXPR_STRUCTURE.
1037
903ecc6c
JW
10382019-01-08 Janus Weil <janus@gcc.gnu.org>
1039
1040 PR fortran/88047
1041 * class.c (gfc_find_vtab): For polymorphic typespecs, the components of
1042 the class container may not be available (in case of invalid code).
1043
eb4a9145
RB
10442019-01-08 Richard Biener <rguenther@suse.de>
1045
1046 PR fortran/88611
1047 * trans-expr.c (gfc_conv_initializer): For ISOCBINDING_NULL_*
1048 directly build the expected GENERIC tree.
1049
419af57c
TK
10502019-01-07 Thomas Koenig <tkoenig@gcc.gnu.org>
1051 Harald Anlauf <anlauf@gmx.de>
1052 Tobias Burnus <burnus@gcc.gnu.org>
1053
1054 PR fortran/45424
1055 * check.c (gfc_check_is_contiguous): New function.
1056 * expr.c (gfc_is_not_contiguous): New function.
1057 * gfortran.h (gfc_isym_id): Add GFC_ISYM_IS_CONTIGUOUS.
1058 Add prototype for gfc_is_not_contiguous.
1059 * intrinsic.c (do_ts29113_check): Add GFC_ISYM_IS_CONTIGUOUS.
1060 (add_function): Add is_contiguous.
1061 * intrinsic.h: Add prototypes for gfc_check_is_contiguous,
1062 gfc_simplify_is_contiguous and gfc_resolve_is_contiguous.
1063 * intrinsic.texi: Add IS_CONTIGUOUS.
1064 * iresolve.c (gfc_resolve_is_contiguous): New function.
1065 * simplify.c (gfc_simplify_is_contiguous): New function.
1066 * trans-decl.c (gfor_fncecl_is_contiguous0): New variable.
1067 (gfc_build_intrinsic_function_decl): Add it.
1068 * trans-intrinsic.c (gfc_conv_intrinsic_is_contiguous): New
1069 function.
1070 (gfc_conv_intrinsic_function): Handle GFC_ISYM_IS_CONTIGUOUS.
1071
13b1afe4
TK
10722019-01-06 Thomas Koenig <tkoenig@gcc.gnu.org>
1073
1074 PR fortran/88658
1075 * gfortran.h: Add macro gfc_real_4_kind
1076 * simplify.c (simplify_min_max): Special case for the types of
1077 AMAX0, AMIN0, MAX1 and MIN1, which actually change the types of
1078 their arguments.
1079
f8add009
JW
10802019-01-05 Janus Weil <janus@gcc.gnu.org>
1081
1082 PR fortran/88009
1083 * class.c (gfc_find_derived_vtab): Mark the _final component as
1084 artificial.
1085 (find_intrinsic_vtab): Ditto. Also add an extra check to avoid
1086 dereferencing a null pointer and adjust indentation.
1087 * resolve.c (resolve_fl_variable): Add extra check to avoid
1088 dereferencing a null pointer. Move variable declarations to local scope.
1089 (resolve_fl_procedure): Add extra check to avoid dereferencing a null
1090 pointer.
1091 * symbol.c (check_conflict): Suppress errors for artificial symbols.
1092
f8fdc8c9
SK
10932019-01-01 Steven G. Kargl <kargl@gcc.gnu.org>
1094
da972c05 1095 * parse.c (decode_statement): Suppress "Unclassifiable statement"
f8fdc8c9
SK
1096 error if previous error messages were emittes.
1097
cf015ca2
TK
10982019-01-01 Thomas Koenig <tkoenig@gcc.gnu.org>
1099
1100 PR fortran/82743
1101 * primary.c (gfc_convert_to_structure_constructor): If a character
1102 in a constructor is too long, add a warning with
1103 -Wcharacter-truncation.
1104
3f27508c 11052019-01-01 Jakub Jelinek <jakub@redhat.com>
85ec4feb 1106
a5544970
JJ
1107 Update copyright years.
1108
65e6aea3
JJ
1109 * gfortranspec.c (lang_specific_driver): Update copyright notice
1110 dates.
1111 * gfc-internals.texi: Bump @copying's copyright year.
1112 * gfortran.texi: Ditto.
1113 * intrinsic.texi: Ditto.
1114 * invoke.texi: Ditto.
21fa2a29 1115\f
3f27508c 1116Copyright (C) 2019 Free Software Foundation, Inc.
ad41bd84
JM
1117
1118Copying and distribution of this file, with or without modification,
1119are permitted in any medium without royalty provided the copyright
1120notice and this notice are preserved.