diff options
author | guerby <guerby@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-05-04 15:32:00 +0000 |
---|---|---|
committer | guerby <guerby@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-05-04 15:32:00 +0000 |
commit | ca9bc976e94685d2352c4a6341270d3042c575f2 (patch) | |
tree | 91af37f36c7586409c27cccb9192eedf888b6c82 /gcc/ada | |
parent | ada4bf4ef965e52a1ebc1aca6ceed82549f7540c (diff) | |
download | gcc-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')
-rw-r--r-- | gcc/ada/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/ada/make.adb | 7 |
2 files changed, 12 insertions, 0 deletions
diff --git a/gcc/ada/ChangeLog b/gcc/ada/ChangeLog index c11325e1197..384f4394c69 100644 --- a/gcc/ada/ChangeLog +++ b/gcc/ada/ChangeLog @@ -1,3 +1,8 @@ +2009-05-04 Laurent GUERBY <laurent@guerby.net> + + PR ada/38874 + * make.adb (Scan_Make_Arg): Pass --param= to compiler and linker. + 2009-04-29 Ed Schonberg <schonberg@adacore.com> * sem_ch8.adb (Analyze_Subprogram_Renaming): Improve error message on 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 |