This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug ada/38874] gnatmake doesn't pass through --param options
- From: "laurent at guerby dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 16 Jan 2009 15:33:42 -0000
- Subject: [Bug ada/38874] gnatmake doesn't pass through --param options
- References: <bug-38874-87@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from laurent at guerby dot net 2009-01-16 15:33 -------
for the --param= case the following should work (untested):
Index: gcc/ada/make.adb
===================================================================
--- gcc/ada/make.adb (revision 143273)
+++ gcc/ada/make.adb (working copy)
@@ -8039,6 +8039,7 @@
or else Argv (2 .. Argv'Last) = "pg"
or else (Argv (2) = 'm' and then Argv'Last > 2)
or else (Argv (2) = 'f' and then Argv'Last > 2)
+ or else (Argv'Last >= 8 and then Argv (2 .. 8) == "-param=")
then
Add_Switch (Argv, Compiler, And_Save => And_Save);
Add_Switch (Argv, Linker, And_Save => And_Save);
--
laurent at guerby dot net changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |laurent at guerby dot net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38874