aboutsummaryrefslogtreecommitdiff
path: root/gcc/gimplify.c
diff options
context:
space:
mode:
authorArnaud Charlet <charlet@adacore.com>2020-03-24 04:40:18 -0400
committerPierre-Marie de Rodat <derodat@adacore.com>2020-06-12 04:29:24 -0400
commit842d28d2acba14a4ebe53f80a35bf1096a1c223e (patch)
tree647a2c558f240596d4f385e57faec866e43468f2 /gcc/gimplify.c
parent3ca9a460f02fc538d314682f456bf3519f311f97 (diff)
downloadgcc-842d28d2acba14a4ebe53f80a35bf1096a1c223e.zip
gcc-842d28d2acba14a4ebe53f80a35bf1096a1c223e.tar.gz
gcc-842d28d2acba14a4ebe53f80a35bf1096a1c223e.tar.bz2
[Ada] Fix handling of subprograms declared in a protected body
2020-06-12 Arnaud Charlet <charlet@adacore.com> gcc/ada/ * exp_ch6.adb (Expand_N_Subprogram_Declaration): Do nothing for a subprogram declared in a protected body. * exp_ch9.ads, exp_ch9.adb (Build_Private_Protected_Declaration): Moved to sem_ch6.adb. (Expand_N_Protected_Body): Do nothing for a subprogram declared in a protected body. * sem_ch6.adb (Build_Internal_Protected_Declaration): Moved from exp_ch9.adb and renamed and fixed to ensure in particular that such subprograms have convention Intrinsic and have no protected version. (Analyze_Subprogram_Body_Helper): Call Build_Internal_Protected_Declaration. (Move_Pragmas): Moved up and merged with the more general version from Build_Private_Protected_Declaration. We only want to copy selected pragmas, most pragmas are not suitable for a copy on the spec.
Diffstat (limited to 'gcc/gimplify.c')
0 files changed, 0 insertions, 0 deletions