aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/frontend.adb
diff options
context:
space:
mode:
authorGhjuvan Lacambre <lacambre@adacore.com>2022-11-18 16:05:12 +0100
committerMarc Poulhiès <poulhies@adacore.com>2022-11-22 13:34:51 +0100
commit05894d1c5c136fe3f8a36cc33cc750c3f5fb6283 (patch)
treeafdad51d38f35504ffa2ce82d52e0380bfe8c4e6 /gcc/ada/frontend.adb
parent29b7e00589f1c1c00029928ac1b7ba8ff53288f5 (diff)
downloadgcc-05894d1c5c136fe3f8a36cc33cc750c3f5fb6283.zip
gcc-05894d1c5c136fe3f8a36cc33cc750c3f5fb6283.tar.gz
gcc-05894d1c5c136fe3f8a36cc33cc750c3f5fb6283.tar.bz2
ada: Disable checking of Elab_Spec procedures in CodePeer_Mode
This commit re-enables the Validate_Subprogram_Calls check that had been disabled in a previous commit and has said check skip over Elab_Spec procedures in CodePeer_Mode. gcc/ada/ * frontend.adb (Frontend): Re-enable Validate_Subprogram_Calls. * exp_ch6.adb (Check_BIP_Actuals): When in CodePeer mode, do not attempt to validate procedures coming from an Elab_Spec/Elab_Body/Elab_Subp_Body procedure.
Diffstat (limited to 'gcc/ada/frontend.adb')
-rw-r--r--gcc/ada/frontend.adb2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/ada/frontend.adb b/gcc/ada/frontend.adb
index bc3da30..033ecf3b 100644
--- a/gcc/ada/frontend.adb
+++ b/gcc/ada/frontend.adb
@@ -531,7 +531,7 @@ begin
-- formals). It is invoked using pragma Debug to avoid adding any cost
-- when the compiler is built with assertions disabled.
- if not Debug_Flag_Underscore_XX and then not CodePeer_Mode then
+ if not Debug_Flag_Underscore_XX then
pragma Debug (Exp_Ch6.Validate_Subprogram_Calls (Cunit (Main_Unit)));
end if;