aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/par.adb
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/ada/par.adb')
-rw-r--r--gcc/ada/par.adb3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/ada/par.adb b/gcc/ada/par.adb
index a4658bf..dc57387 100644
--- a/gcc/ada/par.adb
+++ b/gcc/ada/par.adb
@@ -1577,11 +1577,14 @@ begin
-- versions of these files. Another exception is System.RPC
-- and its children. This allows a user to supply their own
-- communication layer.
+ -- Similarly we do not generate an error in CodePeer mode
+ -- to allow users to analyze third party compier packages.
if Comp_Unit_Node /= Error
and then Operating_Mode = Generate_Code
and then Current_Source_Unit = Main_Unit
and then not GNAT_Mode
+ and then not CodePeer_Mode
then
declare
Uname : constant String :=