[klibc] [PATCH] support the gcc parameter --param in klcc

maximilian attems
2011-03-29T13:09:45Z

On Mon, 21 Mar 2011, Mike Pagano wrote:

> This patch adds support to klcc for the --param parameter.
>
> Signed off by: Mike Pagano <mpagano at gentoo.org>
> ---
>  klcc.in |    3 +++
>  1 file changed, 3 insertions(+)
>
> --- klcc/klcc.in.orig	2011-03-21 08:35:02.130497501 -0400
> +++ klcc/klcc.in	2011-03-21 08:47:21.025476293 -0400
wrong path, please use git it adds automatically path prefix
http://git.kernel.org/pub/scm/libs/klibc/klibc.git
> @@ -159,6 +159,9 @@ while ( defined($a = shift(@ARGV)) ) {
>  	# gcc options, that force preprocessing mode
>  	push(@ccopt, $a);
>  	$operation = 'E';
> +    } elsif ( $a eq '--param' ) {
> +	push(@ccopt, $a);
> +	push(@ccopt, shift(@ARGV));
>      } elsif ( $a =~ /^-[gp]/ || $a eq '-p' ) {
>  	# Debugging options to gcc
>  	push(@ccopt, $a);

looks good to me indeed, thank you applied and pushed out.

--
maks