[cfe-commits] r55324 - in /cfe/trunk/utils: ccc-analyzer scan-build
Ted Kremenek
kremenek at apple.com
Mon Aug 25 13:10:45 PDT 2008
Author: kremenek
Date: Mon Aug 25 15:10:45 2008
New Revision: 55324
URL: http://llvm.org/viewvc/llvm-project?rev=55324&view=rev
Log:
ccc-analyzer now correctly reports the exit code from 'cc'.
scan-build now correctly reports the exit code from the build command.
Fixes: <rdar://problem/6172224>
Modified:
cfe/trunk/utils/ccc-analyzer
cfe/trunk/utils/scan-build
Modified: cfe/trunk/utils/ccc-analyzer
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/utils/ccc-analyzer?rev=55324&r1=55323&r2=55324&view=diff
==============================================================================
--- cfe/trunk/utils/ccc-analyzer (original)
+++ cfe/trunk/utils/ccc-analyzer Mon Aug 25 15:10:45 2008
@@ -187,7 +187,7 @@
my $CC = $ENV{'CCC_CC'};
if (!defined $CC) { $CC = "gcc"; }
my $Status = system($CC, at ARGV);
-if ($Status) { exit($Status); }
+if ($Status) { exit($Status >> 8); }
# Get the analysis options.
my $Analyses = $ENV{'CCC_ANALYZER_ANALYSIS'};
@@ -323,6 +323,8 @@
if (!($Arg =~ /^-/)) {
push @Files,$Arg; next;
}
+
+ exit 0;
}
if ($Action eq 'compile' or $Action eq 'link') {
Modified: cfe/trunk/utils/scan-build
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/utils/scan-build?rev=55324&r1=55323&r2=55324&view=diff
==============================================================================
--- cfe/trunk/utils/scan-build (original)
+++ cfe/trunk/utils/scan-build Mon Aug 25 15:10:45 2008
@@ -680,7 +680,7 @@
$ENV{'LDPLUSPLUS'} = $LDPLUSPLUS;
}
- return system(@$Args);
+ return (system(@$Args) >> 8);
}
##----------------------------------------------------------------------------##
More information about the cfe-commits
mailing list