Christopher Li wrote:
On Mon, Dec 7, 2009 at 10:04 AM, Blue Swirl <blauwirbel@xxxxxxxxx> wrote:My Perl skills are not very bright, but the suggested patch (http://marc.info/?l=linux-sparse&m=126010091922942&w=2) looks correct.Same here. Rubisher, can you please send me a Signed-Off-By: line for the patch you submit? Thanks Chris
if that could help you: a possible fix to cgcc issue in sparse 0.4.2: Use of uninitialized value $bits in exists at /usr/bin/cgcc line 139. /usr/bin/cgcc: weird number of bits. at /usr/bin/cgcc line 139. Signed-off-by: Joel Soete <rubisher@xxxxxxxxxx> --- cgcc.orig 2009-11-28 17:41:28.000000000 +0000 +++ cgcc 2009-12-06 11:55:32.000000000 +0000 @@ -133,7 +133,7 @@ my @types = (['SCHAR',''], ['SHRT',''], ['INT',''], ['LONG','L'], ['LONG_LONG','LL'], ['LONG_LONG_LONG','LLL']); my $result = " -D__CHAR_BIT__=$char"; - while (@types) { + while (@types && @_) { my $bits = shift @_; my ($name,$suffix) = @{ shift @types }; die "$0: weird number of bits." unless exists $pow2m1{$bits}; === <> === Also attached in case of mail client issue Tx a lot, J.
Attachment:
CGCC.diff.gz
Description: GNU Zip compressed data