diff options
author | Arnaud Charlet <charlet@gcc.gnu.org> | 2006-10-31 18:59:45 +0100 |
---|---|---|
committer | Arnaud Charlet <charlet@gcc.gnu.org> | 2006-10-31 18:59:45 +0100 |
commit | 64c69860aa9a0a0fda1017d597f6fa5db5ba9e4e (patch) | |
tree | 325aebf90d3f552916c4782ec974ee0fa609808e /gcc/ada/targparm.ads | |
parent | 5b8b9057447820207979224e4aa151b2a6d19d00 (diff) | |
download | gcc-64c69860aa9a0a0fda1017d597f6fa5db5ba9e4e.zip gcc-64c69860aa9a0a0fda1017d597f6fa5db5ba9e4e.tar.gz gcc-64c69860aa9a0a0fda1017d597f6fa5db5ba9e4e.tar.bz2 |
gnatcmd.adb (Process_Link): Use Osint.Executable_Name instead of handling executable extension manually and...
2006-10-31 Arnaud Charlet <charlet@adacore.com>
Robert Dewar <dewar@adacore.com>
* gnatcmd.adb (Process_Link): Use Osint.Executable_Name instead of
handling executable extension manually and duplicating code.
* make.adb: Implement new -S switch
(Gnatmake): Use new function Osint.Executable_Name instead
of handling executable extension manually.
* prj-util.adb (Executable_Of): Make sure that if an Executable_Suffix
is specified, the executable name ends with this suffix.
Take advantage of Osint.Executable_Name instead of duplicating code.
* switch-m.adb: Recognize new gnatmake -S switch
* targparm.ads, targparm.adb (Executable_Extension_On_Target): New
variable.
(Get_Target_Parameters): Set Executable_Extension_On_Target if
available.
* makeusg.adb: Add line for gnatmake -S switch
From-SVN: r118276
Diffstat (limited to 'gcc/ada/targparm.ads')
-rw-r--r-- | gcc/ada/targparm.ads | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/gcc/ada/targparm.ads b/gcc/ada/targparm.ads index 8325e8c..f7406e8 100644 --- a/gcc/ada/targparm.ads +++ b/gcc/ada/targparm.ads @@ -6,7 +6,7 @@ -- -- -- S p e c -- -- -- --- Copyright (C) 1999-2005, Free Software Foundation, Inc. -- +-- Copyright (C) 1999-2006, 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- -- @@ -129,7 +129,7 @@ package Targparm is -- then the flag Opt.Address_Is_Private is set True, otherwise this flag -- is set False. - Restrictions_On_Target : Restrictions_Info; + Restrictions_On_Target : Restrictions_Info := No_Restrictions; -- Records restrictions specified by system.ads. Only the Set and Value -- members are modified. The Violated and Count fields are never modified. -- Note that entries can be set either by a pragma Restrictions or by @@ -161,6 +161,17 @@ package Targparm is -- The name should contain only letters A-Z, digits 1-9, spaces, -- and underscores. + -------------------------- + -- Executable Extension -- + -------------------------- + + Executable_Extension_On_Target : Name_Id := No_Name; + -- Executable extension on the target. + -- This name is useful for setting the executable extension in a + -- dynamic way, e.g. depending on the run-time used, rather than + -- using a configure-time macro as done by Get_Target_Executable_Suffix. + -- If not set (No_Name), use GNAT.OS_Lib.Get_Target_Executable_Suffix. + ----------------------- -- Target Parameters -- ----------------------- |