summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2004-06-11 07:06:22 +0000
committerReid Spencer <rspencer@reidspencer.com>2004-06-11 07:06:22 +0000
commit80ae844ea87333c06c351faf5920da9533df801e (patch)
tree144c8bd2ff6befc70d02bb4eb6ba51960add22fc
parent5888b5d4b19677af709ec5cc48607f2071b25637 (diff)
downloadbcm5719-llvm-80ae844ea87333c06c351faf5920da9533df801e.tar.gz
bcm5719-llvm-80ae844ea87333c06c351faf5920da9533df801e.zip
Add two options to the program:
-release causes ENABLE_OPTIMIZED=1 to be added to the make line so that the test runs against optimized code. -pedantic causes the CompileOptimizeOpts variable to be overridden to add several additional warnings not picked up by -Wall. This should help catch additional programming faux pas. See the diff for the specific details. llvm-svn: 14153
-rwxr-xr-xllvm/utils/NightlyTest.pl9
1 files changed, 8 insertions, 1 deletions
diff --git a/llvm/utils/NightlyTest.pl b/llvm/utils/NightlyTest.pl
index 791a12ea858..7393041c277 100755
--- a/llvm/utils/NightlyTest.pl
+++ b/llvm/utils/NightlyTest.pl
@@ -20,6 +20,8 @@
# -norunningtests Do not run the Olden benchmark suite with
# LARGE_PROBLEM_SIZE enabled.
# -parallel Run two parallel jobs with GNU Make.
+# -release Build an LLVM Release version
+# -pedantic Enable additional GCC warnings to detect possible errors.
# -enable-linscan Enable linearscan tests
# -disable-codegen Disable LLC and JIT tests in the nightly tester.
# -verbose Turn on some debug output
@@ -147,7 +149,12 @@ while (scalar(@ARGV) and ($_ = $ARGV[0], /^[-+]/)) {
if (/^-noregressiontests$/){ $NOREGRESSIONS = 1; next; }
if (/^-notest$/) { $NOTEST = 1; $NORUNNINGTESTS = 1; next; }
if (/^-norunningtests$/) { $NORUNNINGTESTS = 1; next; }
- if (/^-parallel$/) { $MAKEOPTS = "-j2 -l3.0"; next; }
+ if (/^-parallel$/) { $MAKEOPTS = "$MAKEOPTS -j2 -l3.0"; next; }
+ if (/^-release$/) { $MAKEOPTS = "$MAKEOPTS ENABLE_OPTIMIZED=1"; next; }
+ if (/^-pedantic$/) {
+ $MAKEOPTS = "$MAKEOPTS CompileOptimizeOpts='-O3 -DNDEBUG -finline-functions -Wpointer-arith -Wcast-align -Wno-deprecated -Wold-style-cast -Wabi -Woverloaded-virtual -Weffc++ -ffor-scope'";
+ next;
+ }
if (/^-enable-linscan$/) { $PROGTESTOPTS .= " ENABLE_LINEARSCAN=1"; next; }
if (/^-disable-codegen$/){ $PROGTESTOPTS .= " DISABLE_JIT=1 DISABLE_LLC=1";
$CONFIGUREARGS="--disable-jit --disable-llc_diffs";
OpenPOWER on IntegriCloud