aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/gcc-interface/misc.c
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@adacore.com>2018-07-07 10:06:08 +0000
committerEric Botcazou <ebotcazou@gcc.gnu.org>2018-07-07 10:06:08 +0000
commit718364340fa052641189523e41a5006ba6c9966d (patch)
tree570d31e7786608bb116879802c177ebeb03e7bd4 /gcc/ada/gcc-interface/misc.c
parent4a669ac35988fa6de5931455fb59c713563bc58b (diff)
downloadgcc-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