Skip to content

Commit 6738224

Browse files
author
GCC Administrator
committed
Daily bump.
1 parent d6cb779 commit 6738224

File tree

6 files changed

+193
-1
lines changed

6 files changed

+193
-1
lines changed

gcc/ChangeLog

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
2024-09-21 Mikael Morin <[email protected]>
2+
3+
PR fortran/90608
4+
* flag-types.h (enum gfc_inlineable_intrinsics): New type.
5+
16
2024-09-20 David Malcolm <[email protected]>
27

38
PR other/116613

gcc/DATESTAMP

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
20240921
1+
20240922

gcc/fortran/ChangeLog

+102
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,105 @@
1+
2024-09-21 Mikael Morin <[email protected]>
2+
3+
PR fortran/90608
4+
* invoke.texi(finline-intrinsics): Document new flag.
5+
* lang.opt (finline-intrinsics, finline-intrinsics=,
6+
fno-inline-intrinsics): New flags.
7+
* options.cc (gfc_post_options): If the option variable controlling
8+
the inlining of MAXLOC (respectively MINLOC) has not been set, set
9+
it or clear it depending on the optimization option variables.
10+
* trans-intrinsic.cc (gfc_inline_intrinsic_function_p): Return false
11+
if inlining for the intrinsic is disabled according to the option
12+
variable.
13+
14+
2024-09-21 Mikael Morin <[email protected]>
15+
16+
PR fortran/90608
17+
* trans-intrinsic.cc (gfc_conv_intrinsic_minmaxloc): Generate a set
18+
of index variables. Set them using the loop indexes before leaving
19+
the first set of loops. Generate a new loop entry predicate.
20+
Initialize it. Set it before leaving the first set of loops. Clear
21+
it in the body of the second set of loops. For the second set of
22+
loops, update each loop lower bound to use the corresponding index
23+
variable if the predicate variable is set.
24+
25+
2024-09-21 Mikael Morin <[email protected]>
26+
27+
PR fortran/90608
28+
* trans-intrinsic.cc (gfc_conv_intrinsic_minmaxloc): Initialize
29+
and update all the variables. Put the label and goto in the
30+
outermost scalarizer loop. Don't start the second loop where the
31+
first stopped.
32+
(gfc_inline_intrinsic_function_p): Also return TRUE for array MASK
33+
or for any REAL type.
34+
35+
2024-09-21 Mikael Morin <[email protected]>
36+
37+
PR fortran/90608
38+
* trans-intrinsic.cc (gfc_conv_intrinsic_minmaxloc): Generate
39+
variable initialization for each dimension in the else branch of
40+
the toplevel condition.
41+
(gfc_inline_intrinsic_function_p): Return TRUE for scalar MASK.
42+
43+
2024-09-21 Mikael Morin <[email protected]>
44+
45+
PR fortran/90608
46+
* trans-array.cc (gfc_conv_ss_startstride): Set the MINLOC/MAXLOC
47+
result upper bound using the rank of the ARRAY argument. Ajdust
48+
the error message for intrinsic result arrays. Only check array
49+
bounds for array references. Move bound check decision code...
50+
(bounds_check_needed): ... here as a new predicate. Allow bound
51+
check for MINLOC/MAXLOC intrinsic results.
52+
* trans-intrinsic.cc (gfc_conv_intrinsic_minmaxloc): Change the
53+
result array upper bound to the rank of ARRAY. Update the NONEMPTY
54+
variable to depend on the non-empty extent of every dimension. Use
55+
one variable per dimension instead of a single variable for the
56+
position and the offset. Update their declaration, initialization,
57+
and update to affect the variable of each dimension. Use the first
58+
variable only in areas only accessed with rank 1 ARRAY argument.
59+
Set every element of the result using its corresponding variable.
60+
(gfc_inline_intrinsic_function_p): Return true for integral ARRAY
61+
and absent DIM and MASK.
62+
63+
2024-09-21 Mikael Morin <[email protected]>
64+
65+
* trans-array.cc (gfc_conv_ss_startstride): Move array bound check
66+
generation code...
67+
(add_check_section_in_array_bounds): ... here as a new function.
68+
69+
2024-09-21 Mikael Morin <[email protected]>
70+
71+
* frontend-passes.cc (optimize_minmaxloc): Remove.
72+
(optimize_expr): Remove dispatch to optimize_minmaxloc.
73+
74+
2024-09-21 Mikael Morin <[email protected]>
75+
76+
PR fortran/90608
77+
* trans-array.cc (gfc_conv_ss_startstride): Set the scalarization
78+
rank based on the MINLOC/MAXLOC rank if needed. Call the inline
79+
code generation and setup the scalarizer array descriptor info
80+
in the MINLOC and MAXLOC cases.
81+
* trans-intrinsic.cc (gfc_conv_intrinsic_minmaxloc): Return the
82+
result array element if the scalarizer is setup and we are inside
83+
the loops. Restrict library function call dispatch to the case
84+
where inline expansion is not supported. Declare an array result
85+
if the expression isn't scalar. Initialize the array result single
86+
element and return the result variable if the expression isn't
87+
scalar.
88+
(walk_inline_intrinsic_minmaxloc): New function.
89+
(walk_inline_intrinsic_function): Add MINLOC and MAXLOC cases,
90+
dispatching to walk_inline_intrinsic_minmaxloc.
91+
(gfc_add_intrinsic_ss_code): Add MINLOC and MAXLOC cases.
92+
(gfc_inline_intrinsic_function_p): Return true if ARRAY has rank 1,
93+
regardless of DIM.
94+
95+
2024-09-21 Mikael Morin <[email protected]>
96+
97+
PR fortran/90608
98+
* frontend-passes.cc (optimize_minmaxloc): Skip if we can generate
99+
inline code for the unmodified expression.
100+
* trans-intrinsic.cc (gfc_inline_intrinsic_function_p): Add
101+
MINLOC and MAXLOC cases.
102+
1103
2024-09-20 David Malcolm <[email protected]>
2104

3105
PR other/116613

gcc/m2/ChangeLog

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
2024-09-21 Gaius Mulley <[email protected]>
2+
3+
* gm2-compiler/M2Comp.mod (GenerateDependencies): Remove
4+
unused parameter.
5+
(WriteDep): Remove parameter dep.
6+
(WritePhoneDep): Ditto.
7+
18
2024-09-20 Gaius Mulley <[email protected]>
29

310
* gm2-compiler/M2Check.mod (checkUnboundedArray): New

gcc/testsuite/ChangeLog

+38
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,41 @@
1+
2024-09-21 Mikael Morin <[email protected]>
2+
3+
PR fortran/90608
4+
* gfortran.dg/minmaxloc_18.f90: New test.
5+
* gfortran.dg/minmaxloc_18a.f90: New test.
6+
* gfortran.dg/minmaxloc_18b.f90: New test.
7+
* gfortran.dg/minmaxloc_18c.f90: New test.
8+
* gfortran.dg/minmaxloc_18d.f90: New test.
9+
10+
2024-09-21 Mikael Morin <[email protected]>
11+
12+
PR fortran/90608
13+
* gfortran.dg/maxloc_bounds_5.f90: Additionally accept error
14+
messages reported by the scalarizer.
15+
* gfortran.dg/maxloc_bounds_6.f90: Ditto.
16+
17+
2024-09-21 Mikael Morin <[email protected]>
18+
19+
PR fortran/90608
20+
* gfortran.dg/maxloc_bounds_7.f90: Additionally accept the error message
21+
reported by the scalarizer.
22+
23+
2024-09-21 Mikael Morin <[email protected]>
24+
25+
PR fortran/90608
26+
* gfortran.dg/maxloc_bounds_4.f90: Additionally accept the error
27+
message emitted by the scalarizer.
28+
29+
2024-09-21 Mikael Morin <[email protected]>
30+
31+
PR fortran/90608
32+
* gfortran.dg/ieee/maxloc_nan_1.f90: New test.
33+
* gfortran.dg/ieee/minloc_nan_1.f90: New test.
34+
* gfortran.dg/maxloc_7.f90: New test.
35+
* gfortran.dg/maxloc_with_mask_1.f90: New test.
36+
* gfortran.dg/minloc_8.f90: New test.
37+
* gfortran.dg/minloc_with_mask_1.f90: New test.
38+
139
2024-09-20 David Malcolm <[email protected]>
240

341
PR other/116792

libstdc++-v3/ChangeLog

+40
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,43 @@
1+
2024-09-21 Jason Merrill <[email protected]>
2+
3+
* include/c_compatibility/ctype.h
4+
* include/c_compatibility/errno.h
5+
* include/c_compatibility/float.h
6+
* include/c_compatibility/iso646.h
7+
* include/c_compatibility/limits.h
8+
* include/c_compatibility/locale.h
9+
* include/c_compatibility/setjmp.h
10+
* include/c_compatibility/signal.h
11+
* include/c_compatibility/stdarg.h
12+
* include/c_compatibility/stdbool.h
13+
* include/c_compatibility/stddef.h
14+
* include/c_compatibility/stdio.h
15+
* include/c_compatibility/string.h
16+
* include/c_compatibility/tgmath.h
17+
* include/c_compatibility/time.h
18+
* include/c_compatibility/uchar.h
19+
* include/c_compatibility/wchar.h
20+
* include/c_compatibility/wctype.h
21+
* include/c_global/ccomplex
22+
* include/c_global/cctype
23+
* include/c_global/cerrno
24+
* include/c_global/cfloat
25+
* include/c_global/climits
26+
* include/c_global/clocale
27+
* include/c_global/cmath
28+
* include/c_global/csetjmp
29+
* include/c_global/csignal
30+
* include/c_global/cstdalign
31+
* include/c_global/cstdarg
32+
* include/c_global/cstdbool
33+
* include/c_global/cstdio
34+
* include/c_global/cstdlib
35+
* include/c_global/cstring
36+
* include/c_global/ctgmath
37+
* include/c_global/ctime
38+
* include/c_global/cwchar
39+
* include/c_global/cwctype: Move header guard before #includes.
40+
141
2024-09-20 Jonathan Wakely <[email protected]>
242

343
PR libstdc++/116529

0 commit comments

Comments
 (0)