summaryrefslogtreecommitdiff
path: root/gcc/ada/make.adb
diff options
context:
space:
mode:
authorguerby <guerby@138bc75d-0d04-0410-961f-82ee72b054a4>2009-05-04 15:32:00 +0000
committerguerby <guerby@138bc75d-0d04-0410-961f-82ee72b054a4>2009-05-04 15:32:00 +0000
commitca9bc976e94685d2352c4a6341270d3042c575f2 (patch)
tree91af37f36c7586409c27cccb9192eedf888b6c82 /gcc/ada/make.adb
parentada4bf4ef965e52a1ebc1aca6ceed82549f7540c (diff)
downloadgcc-ca9bc976e94685d2352c4a6341270d3042c575f2.tar.gz
2009-05-04 Laurent GUERBY <laurent@guerby.net>
PR ada/38874 * make.adb (Scan_Make_Arg): Pass --param= to compiler and linker. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@147102 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ada/make.adb')
-rw-r--r--gcc/ada/make.adb7
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/ada/make.adb b/gcc/ada/make.adb
index 3206bc1b009..955e6185cad 100644
--- a/gcc/ada/make.adb
+++ b/gcc/ada/make.adb
@@ -7778,6 +7778,12 @@ package body Make is
end;
end if;
+ elsif Argv'Length >= 8 and then
+ Argv (1 .. 8) = "--param="
+ then
+ Add_Switch (Argv, Compiler, And_Save => And_Save);
+ Add_Switch (Argv, Linker, And_Save => And_Save);
+
else
Scan_Make_Switches (Argv, Success);
end if;
@@ -7792,6 +7798,7 @@ package body Make is
elsif (Argv'Length > 5 and then Argv (1 .. 5) = "-RTS=")
or else (Argv'Length > 5 and then Argv (1 .. 5) = "-GCC=")
+ or else (Argv'Length > 8 and then Argv (1 .. 7) = "-param=")
or else (Argv'Length > 10 and then Argv (1 .. 10) = "-GNATLINK=")
or else (Argv'Length > 10 and then Argv (1 .. 10) = "-GNATBIND=")
then