diff options
author | Arnaud Charlet <charlet@gcc.gnu.org> | 2013-02-06 11:27:16 +0100 |
---|---|---|
committer | Arnaud Charlet <charlet@gcc.gnu.org> | 2013-02-06 11:27:16 +0100 |
commit | d7ffe14c000af9bf1f63f8fbfb5a6511bbf66392 (patch) | |
tree | 048ed428886f8760b2f07ebf65de182a448f9203 /gcc/ada/sem_ch10.adb | |
parent | c91dbd184bc0dde2d04895dc15a7fe169d7169d7 (diff) | |
download | gcc-d7ffe14c000af9bf1f63f8fbfb5a6511bbf66392.zip gcc-d7ffe14c000af9bf1f63f8fbfb5a6511bbf66392.tar.gz gcc-d7ffe14c000af9bf1f63f8fbfb5a6511bbf66392.tar.bz2 |
[multiple changes]
2013-02-06 Tristan Gingold <gingold@adacore.com>
* raise-gcc.c: Remove useless includes (sys/stat.h, adaint.h)
Enclosing debugging functions within #ifndef inhibit_libc to
support builds without full C headers.
2013-02-06 Thomas Quinot <quinot@adacore.com>
* gnat_rm.texi: Add a minimal example of Scalar_Storage_Order.
2013-02-06 Hristian Kirtchev <kirtchev@adacore.com>
* sem_ch10.adb (Install_Limited_Withed_Unit): Add a missing
check to detect a parent-child relationship between two units in
order to correctly bypass the installation of a limited view. In
other words, the comment on the intended usage of the check was
correct, but the code itself did not reflect the behavior.
From-SVN: r195794
Diffstat (limited to 'gcc/ada/sem_ch10.adb')
-rw-r--r-- | gcc/ada/sem_ch10.adb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gcc/ada/sem_ch10.adb b/gcc/ada/sem_ch10.adb index 2e04d60..e936838 100644 --- a/gcc/ada/sem_ch10.adb +++ b/gcc/ada/sem_ch10.adb @@ -6,7 +6,7 @@ -- -- -- B o d y -- -- -- --- Copyright (C) 1992-2012, Free Software Foundation, Inc. -- +-- Copyright (C) 1992-2013, Free Software Foundation, Inc. -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- @@ -4743,7 +4743,9 @@ package body Sem_Ch10 is 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 P = Main_Unit_Entity + and then + Is_Ancestor_Unit (Cunit (Main_Unit), Cunit (Current_Sem_Unit))) then return; end if; |