On Thu, Aug 08, 2024 at 11:09:10AM +0200, Mikael Morin wrote:
>
> These patches are about inlining, there is no manipulation of the parse
> tree. So I would rather use a separate option (-finline-intrinsics?).
I've only followed the discussion from afar, but gcc already supports
a -finline and -fno-inline option.
% gfortran13 -o z -fno-inline a.f90
% ./z
0 -2.459358E-01 5.567117E-02
1 4.347283E-02 -9.840712E-03
2 2.546304E-01 -5.763932E-02
3 5.837931E-02 -1.321501E-02
4 -2.196027E-01 4.971030E-02
5 -2.340615E-01 5.298326E-02
6 -1.445877E-02 3.272955E-03
7 2.167110E-01 -4.905571E-02
8 3.178541E-01 -7.195095E-02
9 2.918557E-01 -6.606582E-02
4.347275E-02 2.490154E-01
gcc/opts.cc: SET_OPTION_IF_UNSET (opts, opts_set, flag_inline_functions,
value);
This, of course, controls all inlining not just intrinsic subprograms.
PS: Thanks for the series of cleanup and improvement patches!
--
Steve