diff options
author | charlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-10-11 10:24:08 +0000 |
---|---|---|
committer | charlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-10-11 10:24:08 +0000 |
commit | 23c0ddf3e86ea8af78bc881975300dc79b14f6d1 (patch) | |
tree | cadb7f8e64b74dd68b8d3be233527091a162548c /gcc/ada/gnatcmd.adb | |
parent | 752dfce02cb1f476da04979af06ce8fcc725f58f (diff) | |
download | gcc-23c0ddf3e86ea8af78bc881975300dc79b14f6d1.tar.gz |
2010-10-11 Javier Miranda <miranda@adacore.com>
* debug.adb: Update comment.
2010-10-11 Vincent Celier <celier@adacore.com>
* gnatcmd.adb (GNATCmd): Set Opt.Unchecked_Shared_Lib_Imports to True
unconditionally as for "gnat make" the projects are not processed in
the GNAT driver.
2010-10-11 Ed Schonberg <schonberg@adacore.com>
* sem_ch10.ads, sem_ch10.adb (Load_Needed_Body): Add parameter to
suppress semantic analysis of the body when inlining, prior to
verifying that the body does not have a with_clause on a descendant
unit.
* inline.adb (Analyze_Inlined_Bodies): Do not inline a body if it has a
with_clause on a descendant.
(Scope_In_Main_Unit): Simplify.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165298 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ada/gnatcmd.adb')
-rw-r--r-- | gcc/ada/gnatcmd.adb | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/gcc/ada/gnatcmd.adb b/gcc/ada/gnatcmd.adb index 174a8db1481..372c38b5473 100644 --- a/gcc/ada/gnatcmd.adb +++ b/gcc/ada/gnatcmd.adb @@ -1577,12 +1577,14 @@ begin Program_Name (Command_List (The_Command).Unixcmd.all, "gnat"); end if; - -- For all tools other than gnatmake, allow shared library projects to - -- import projects that are not shared library projects. - - if The_Command /= Make then - Opt.Unchecked_Shared_Lib_Imports := True; - end if; + -- For the tools where the GNAT driver processes the project files, + -- allow shared library projects to import projects that are not shared + -- library projects, to avoid adding a switch for these tools. For the + -- builder (gnatmake), if a shared library project imports a project + -- that is not a shared library project and the appropriate switch is + -- not specified, the invocation of gnatmake will fail. + + Opt.Unchecked_Shared_Lib_Imports := True; -- Locate the executable for the command |