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
Showing
gcc/testsuite/gnat.dg/pure_function3_pkg.ads
0 → 100644
gcc/testsuite/gnat.dg/pure_function3a.adb
0 → 100644
gcc/testsuite/gnat.dg/pure_function3b.adb
0 → 100644
gcc/testsuite/gnat.dg/pure_function3c.adb
0 → 100644
Please
register
or
sign in
to comment