re PR ada/38874 (gnatmake doesn't pass through --param options)
authorLaurent GUERBY <laurent@guerby.net>
Mon, 4 May 2009 15:32:00 +0000 (15:32 +0000)
committerLaurent Guerby <guerby@gcc.gnu.org>
Mon, 4 May 2009 15:32:00 +0000 (15:32 +0000)
2009-05-04   Laurent GUERBY  <laurent@guerby.net>

PR ada/38874
* make.adb (Scan_Make_Arg): Pass --param= to compiler and linker.

From-SVN: r147102

gcc/ada/ChangeLog
gcc/ada/make.adb

index c11325e1197f0d4d318256dc602e751f44397cbe..384f4394c69a5a70efefa8264c39ed8c3d860847 100644 (file)
@@ -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
index 3206bc1b009ac7f64899105f7bccf6588fedc2f8..955e6185cadd373abee97083425a60da708487a3 100644 (file)
@@ -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