diff options
author | Eric Botcazou <ebotcazou@adacore.com> | 2018-07-07 10:06:08 +0000 |
---|---|---|
committer | Eric Botcazou <ebotcazou@gcc.gnu.org> | 2018-07-07 10:06:08 +0000 |
commit | 718364340fa052641189523e41a5006ba6c9966d (patch) | |
tree | 570d31e7786608bb116879802c177ebeb03e7bd4 /gcc/ada/gcc-interface/misc.c | |
parent | 4a669ac35988fa6de5931455fb59c713563bc58b (diff) | |
download | gcc-718364340fa052641189523e41a5006ba6c9966d.zip gcc-718364340fa052641189523e41a5006ba6c9966d.tar.gz gcc-718364340fa052641189523e41a5006ba6c9966d.tar.bz2 |
decl.c (gnat_to_gnu_param): Minor tweak.
* gcc-interface/decl.c (gnat_to_gnu_param): Minor tweak.
(gnat_to_gnu_subprog_type): New pure_flag local variable. Set it for
a pure Ada function with a by-ref In parameter. Propagate it onto the
function type by means of the TYPE_QUAL_RESTRICT flag.
* gcc-interface/utils.c (finish_subprog_decl): Set DECL_PURE_P if the
function type has the TYPE_QUAL_RESTRICT flag set.
From-SVN: r262495
Diffstat (limited to 'gcc/ada/gcc-interface/misc.c')
0 files changed, 0 insertions, 0 deletions