]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/fortran/ChangeLog
ada: Fix up handling of ghost units [PR104027]
[thirdparty/gcc.git] / gcc / fortran / ChangeLog
CommitLineData
ad3f0d08
GA
12022-01-13 Hafiz Abid Qadeer <abidh@codesourcery.com>
2
3 * dump-parse-tree.c (show_omp_clauses): Handle OMP_LIST_ALLOCATE.
4 * gfortran.h (OMP_LIST_ALLOCATE): New enum value.
5 * openmp.c (enum omp_mask1): Add OMP_CLAUSE_ALLOCATE.
6 (gfc_match_omp_clauses): Handle OMP_CLAUSE_ALLOCATE
7 (OMP_PARALLEL_CLAUSES, OMP_DO_CLAUSES, OMP_SECTIONS_CLAUSES)
8 (OMP_TASK_CLAUSES, OMP_TASKLOOP_CLAUSES, OMP_TARGET_CLAUSES)
9 (OMP_TEAMS_CLAUSES, OMP_DISTRIBUTE_CLAUSES)
10 (OMP_SINGLE_CLAUSES): Add OMP_CLAUSE_ALLOCATE.
11 (OMP_TASKGROUP_CLAUSES): New.
12 (gfc_match_omp_taskgroup): Use OMP_TASKGROUP_CLAUSES instead of
13 OMP_CLAUSE_TASK_REDUCTION.
14 (resolve_omp_clauses): Handle OMP_LIST_ALLOCATE.
15 (resolve_omp_do): Avoid warning when loop iteration variable is
16 in allocate clause.
17 * trans-openmp.c (gfc_trans_omp_clauses): Handle translation of
18 allocate clause.
19 (gfc_split_omp_clauses): Update for OMP_LIST_ALLOCATE.
20
212022-01-13 Harald Anlauf <anlauf@gmx.de>
22
23 PR fortran/67804
24 * primary.c (gfc_match_structure_constructor): Recover from errors
25 that occurred while checking for a valid structure constructor in
26 a DATA statement.
27
01a254e3
GA
282022-01-11 Thomas Koenig <tkoenig@gcc.gnu.org>
29
30 * libgfortran.h (unit_convert): Add flags.
31
322022-01-11 Jakub Jelinek <jakub@redhat.com>
33
34 * trans-types.c (gfc_init_kinds): When setting abi_kind to 17, if not
35 targetting glibc 2.32 or later and -fbuilding-libgfortran, set
36 gfc_real16_is_float128 and c_float128 in gfc_real_kinds.
37 (gfc_build_real_type): Don't set c_long_double if c_float128 is
38 already set.
39 * trans-intrinsic.c (builtin_decl_for_precision): Don't use
40 long_double_built_in if gfc_real16_is_float128 and
41 long_double_type_node == gfc_float128_type_node.
42 * lang.opt (fbuilding-libgfortran): New undocumented option.
43
442022-01-11 Jakub Jelinek <jakub@redhat.com>
45
46 * trans-intrinsic.c (gfc_get_intrinsic_lib_fndecl): Use
47 gfc_type_abi_kind.
48
492022-01-11 Jakub Jelinek <jakub@redhat.com>
50
51 * trans-io.c (transfer_array_desc): Pass abi kind instead of kind
52 to libgfortran.
53
542022-01-11 Jakub Jelinek <jakub@redhat.com>
55
56 * trans-io.c (transfer_namelist_element): Use gfc_type_abi_kind,
57 formatting fixes.
58 (transfer_expr): Use gfc_type_abi_kind, use *REAL128* APIs even
59 for abi_kind == 17.
60
612022-01-11 Jakub Jelinek <jakub@redhat.com>
62
63 * gfortran.h (gfc_real_info): Add abi_kind member.
64 (gfc_type_abi_kind): Declare.
65 * trans-types.c (gfc_init_kinds): Initialize abi_kind.
66 * intrinsic.c (gfc_type_abi_kind): New function.
67 (conv_name): Use it.
68 * iresolve.c (resolve_transformational, gfc_resolve_abs,
69 gfc_resolve_char_achar, gfc_resolve_acos, gfc_resolve_acosh,
70 gfc_resolve_aimag, gfc_resolve_and, gfc_resolve_aint, gfc_resolve_all,
71 gfc_resolve_anint, gfc_resolve_any, gfc_resolve_asin,
72 gfc_resolve_asinh, gfc_resolve_atan, gfc_resolve_atanh,
73 gfc_resolve_atan2, gfc_resolve_bessel_n2, gfc_resolve_ceiling,
74 gfc_resolve_cmplx, gfc_resolve_complex, gfc_resolve_cos,
75 gfc_resolve_cosh, gfc_resolve_count, gfc_resolve_dble,
76 gfc_resolve_dim, gfc_resolve_dot_product, gfc_resolve_dprod,
77 gfc_resolve_exp, gfc_resolve_floor, gfc_resolve_hypot,
78 gfc_resolve_int, gfc_resolve_int2, gfc_resolve_int8, gfc_resolve_long,
79 gfc_resolve_log, gfc_resolve_log10, gfc_resolve_logical,
80 gfc_resolve_matmul, gfc_resolve_minmax, gfc_resolve_maxloc,
81 gfc_resolve_findloc, gfc_resolve_maxval, gfc_resolve_merge,
82 gfc_resolve_minloc, gfc_resolve_minval, gfc_resolve_mod,
83 gfc_resolve_modulo, gfc_resolve_nearest, gfc_resolve_or,
84 gfc_resolve_real, gfc_resolve_realpart, gfc_resolve_reshape,
85 gfc_resolve_sign, gfc_resolve_sin, gfc_resolve_sinh, gfc_resolve_sqrt,
86 gfc_resolve_tan, gfc_resolve_tanh, gfc_resolve_transpose,
87 gfc_resolve_trigd, gfc_resolve_xor, gfc_resolve_random_number):
88 Likewise.
89 * trans-decl.c (gfc_build_intrinsic_function_decls): Likewise.
90
d9450aa0
GA
912022-01-10 Paul Thomas <pault@gcc.gnu.org>
92
93 PR fortran/103366
94 * trans-expr.c (gfc_conv_gfc_desc_to_cfi_desc): Allow unlimited
95 polymorphic actual argument passed to assumed type formal.
96
3a5702df
GA
972022-01-09 Harald Anlauf <anlauf@gmx.de>
98
99 PR fortran/103777
100 * simplify.c (gfc_simplify_maskr): Check validity of argument 'I'
101 before simplifying.
102 (gfc_simplify_maskl): Likewise.
103
1042022-01-09 Harald Anlauf <anlauf@gmx.de>
105
106 PR fortran/101762
107 * expr.c (gfc_check_pointer_assign): For pointer initialization
108 targets, check that subscripts and substring indices in
109 specifications are constant expressions.
110
1112022-01-09 Mikael Morin <mikael@gcc.gnu.org>
112
113 PR fortran/103789
114 * trans-array.c (arg_evaluated_for_scalarization): Add MASKL, MASKR,
115 SCAN and VERIFY to the list of intrinsics whose KIND argument is to be
116 ignored.
117
55e96bf9
GA
1182022-01-07 Sandra Loosemore <sandra@codesourcery.com>
119
120 PR fortran/103898
121 * trans-intrinsic.c (gfc_conv_intrinsic_size): Make size_var
122 actually be a variable and fix surrounding code.
123
11ce8d04
GA
1242022-01-06 Steve Kargl <kargl@gcc.gnu.org>
125 Sandra Loosemore <sandra@codesourcery.com>
126
127 PR fortran/103287
128 * interface.c (argument_rank_mismatch): Replace incorrect assertion
129 with return.
130
0fbefa25
GA
1312022-01-05 Sandra Loosemore <sandra@codesourcery.com>
132
133 PR fortran/103258
134 * decl.c (gfc_match_char_spec): Suppress errors around call
135 to gfc_reduce_init_expr.
136 * error.c (gfc_query_suppress_errors): New.
137 * gfortran.h (gfc_query_suppress_errors): Declare.
138 * symbol.c (gfc_set_default_type): Check gfc_query_suppress_errors.
139
a4ae8c37
GA
1402022-01-03 Sandra Loosemore <sandra@codesourcery.com>
141
142 PR fortran/103390
143 * expr.c (gfc_is_simply_contiguous): Make it smarter about
144 function calls.
145 * trans-expr.c (gfc_conv_gfc_desc_to_cfi_desc): Do not generate
146 copy loops for array expressions that are not "variables" (lvalues).
147
1482022-01-03 Jakub Jelinek <jakub@redhat.com>
149
150 * gfortranspec.c (lang_specific_driver): Update copyright notice
151 dates.
152 * gfc-internals.texi: Bump @copying's copyright year.
153 * gfortran.texi: Ditto.
154 * intrinsic.texi: Ditto.
155 * invoke.texi: Ditto.
156
21fa2a29 157\f
6123f29a 158Copyright (C) 2022 Free Software Foundation, Inc.
ad41bd84
JM
159
160Copying and distribution of this file, with or without modification,
161are permitted in any medium without royalty provided the copyright
162notice and this notice are preserved.