aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/sem_ch10.adb
diff options
context:
space:
mode:
authorArnaud Charlet <charlet@gcc.gnu.org>2013-02-06 11:35:52 +0100
committerArnaud Charlet <charlet@gcc.gnu.org>2013-02-06 11:35:52 +0100
commitd7761b2d64f02ce7b9fd7c354c2f5b98805235c6 (patch)
treeeb7188a0eeffb5040590e4c4c719f34aa0054d7b /gcc/ada/sem_ch10.adb
parent6d840d998086aa54b0a43c45b7a323f0408bf308 (diff)
downloadgcc-d7761b2d64f02ce7b9fd7c354c2f5b98805235c6.zip
gcc-d7761b2d64f02ce7b9fd7c354c2f5b98805235c6.tar.gz
gcc-d7761b2d64f02ce7b9fd7c354c2f5b98805235c6.tar.bz2
[multiple changes]
2013-02-06 Robert Dewar <dewar@adacore.com> * sem_ch3.adb, sem_ch10.adb: Minor reformatting. * exp_disp.adb: Minor comment update. * comperr.ads, osint.ads, rtsfind.adb, sem_prag.adb: Minor addition of No_Return pragmas. 2013-02-06 Thomas Quinot <quinot@adacore.com> * targparm.ads, sem_ch13.adb (Support_Nondefault_SSO): New target parameter, defaulted to False for now, indicates targets where non-default scalar storage order may be specified. 2013-02-06 Thomas Quinot <quinot@adacore.com> * sprint.adb (Write_Itype): Treat E_Record_Subtype_With_Private same as E_Record_Subtype. Display E_Class_Wide_Subtype as subtype, not type. From-SVN: r195797
Diffstat (limited to 'gcc/ada/sem_ch10.adb')
-rw-r--r--gcc/ada/sem_ch10.adb9
1 files changed, 4 insertions, 5 deletions
diff --git a/gcc/ada/sem_ch10.adb b/gcc/ada/sem_ch10.adb
index e936838..a4241af 100644
--- a/gcc/ada/sem_ch10.adb
+++ b/gcc/ada/sem_ch10.adb
@@ -4741,11 +4741,10 @@ package body Sem_Ch10 is
-- compiling the body of the child unit.
if P = Cunit_Entity (Current_Sem_Unit)
- or else
- (Nkind (Unit (Cunit (Current_Sem_Unit))) = N_Package_Body
- and then P = Main_Unit_Entity
- and then
- Is_Ancestor_Unit (Cunit (Main_Unit), Cunit (Current_Sem_Unit)))
+ or else (Nkind (Unit (Cunit (Current_Sem_Unit))) = N_Package_Body
+ and then P = Main_Unit_Entity
+ and then Is_Ancestor_Unit
+ (Cunit (Main_Unit), Cunit (Current_Sem_Unit)))
then
return;
end if;