[PATCH][RFC] Param flags for testsuite

Richard Guenther rguenther@suse.de
Fri Nov 2 23:32:00 GMT 2007


If you try to run the testsuite with an extra --param added, you figure
out that dejagnu doesn't like this.  The only way I got it work is to use

make check RUNTESTFLAGS="--target_board=unix/--param/max-aliased-vops=0"

but then dejagnu makes "--param -mmax-aliased-vops=0" out of that.  Fixed
by the following patch.

Ok?  Better ideas?

Thanks
Richard.

2007-11-03  Richard Guenther  <rguenther@suse.de

	* opts.c (handle_param): If the param name starts with '-m',
	skip that part.

Index: opts.c
===================================================================
--- opts.c	(revision 129832)
+++ opts.c	(working copy)
@@ -1809,7 +1809,11 @@ handle_param (const char *carg)
       else
 	{
 	  *equal = '\0';
-	  set_param_value (arg, value);
+	  if (arg[0] == '-'
+	      && arg[1] == 'm')
+	    set_param_value (arg+2, value);
+	  else
+	    set_param_value (arg, value);
 	}
     }
 



More information about the Gcc-patches mailing list