Mike Pagano
2011-Mar-21 12:59 UTC
[klibc] [PATCH] support the gcc parameter --param in klcc
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
@@ -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);
maximilian attems
2011-Mar-29 13:09 UTC
[klibc] [PATCH] support the gcc parameter --param in klcc
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 -0400wrong 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
Reasonably Related Threads
- [PATCH 1/1] Modify --param support to include additional option
- [PATCH] klcc compatibility with gcc
- [PATCH] klcc --version is -V because -v is --verbose already (unbreak -v)
- [klibc:master] klcc: Treat CC, LD, STRIP as multiple words
- [PATCH 1/1] tests: Fix sscanf test where width = 1 and integer is negative