diff options
author | Benjamin Kosnik <bkoz@gcc.gnu.org> | 2000-11-21 07:32:03 +0000 |
---|---|---|
committer | Benjamin Kosnik <bkoz@gcc.gnu.org> | 2000-11-21 07:32:03 +0000 |
commit | 66bc5940f137cfe9a38e37c2619189604fd246b7 (patch) | |
tree | 2e7ae88a58eaf808e44c5bd9e7d1a338f4e3eca5 | |
parent | 6b16805ede8c2ea6163d01a61c1a087497d2a769 (diff) | |
download | gcc-66bc5940f137cfe9a38e37c2619189604fd246b7.zip gcc-66bc5940f137cfe9a38e37c2619189604fd246b7.tar.gz gcc-66bc5940f137cfe9a38e37c2619189604fd246b7.tar.bz2 |
mkcheck.in (explanation): Don't paste output of passing compiles into log file.
2000-11-20 Benjamin Kosnik <bkoz@redhat.com>
* mkcheck.in (explanation): Don't paste output of passing compiles
into log file. Use -static. Get version info.
* testsuite/23_containers/vector_ctor.cc (test02): Fix thinko.
From-SVN: r37606
-rw-r--r-- | libstdc++-v3/ChangeLog | 11 | ||||
-rwxr-xr-x | libstdc++-v3/mkcheck.in | 21 |
2 files changed, 17 insertions, 15 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index f26e8ff..0a46073 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,4 +1,11 @@ -2000-11-21 Gabriel Dos Reis <gdr@codesourcery.com> +2000-11-20 Benjamin Kosnik <bkoz@redhat.com> + + * mkcheck.in (explanation): Don't paste output of passing compiles + into log file. Use -static. Get version info. + + * testsuite/23_containers/vector_ctor.cc (test02): Fix thinko. + +2000-11-20 Gabriel Dos Reis <gdr@codesourcery.com> * include/bits/std_complex.h (complex<double>): Constructor complex<double>::complex(const complex<float>&) is not explicit; @@ -17,8 +24,6 @@ * testsuite/23_containers/vector_ctor.cc (test02): Add test from libstdc++/102. - - * src/string-inst.cc: Tweaks. 2000-11-20 Joseph S. Myers <jsm28@cam.ac.uk> diff --git a/libstdc++-v3/mkcheck.in b/libstdc++-v3/mkcheck.in index 1eaa18d..b4b38e1 100755 --- a/libstdc++-v3/mkcheck.in +++ b/libstdc++-v3/mkcheck.in @@ -112,18 +112,16 @@ CXX_FLAG="-ggdb3 -DDEBUG_ASSERT @SECTION_FLAGS@ @SECTION_LDFLAGS@" SH_FLAG="" # specific libtool flag(s) to force the use of static libraries, if any -#ST_FLAG="-static" -ST_FLAG="-all-static" +ST_FLAG="-static" +#ST_FLAG="-all-static" # LTCXX == how to call libtool when creating an executable -# LTEXE == how to call libtool when running an executable # LIBS == any extra needed -l switches, etc (may need more libs, lose lose) if [ $WHICH -eq 0 ]; then LTCXX="$LIBTOOL --tag=CXX --mode=link \ $CXX $CXX_FLAG $INC_PATH \ $LIB_PATH/../libsupc++/libsupc++.la $LIB_PATH/libstdc++.la \ -no-install" - LTEXE="$LIBTOOL --mode=execute" LIBS="-nodefaultlibs -lc -lgcc -lc" elif [ $WHICH -eq 1 ]; then # For the installed version, we really only need to use libtool and @@ -131,9 +129,10 @@ elif [ $WHICH -eq 1 ]; then LTCXX="$LIBTOOL --tag=CXX --mode=link \ $CXX $CXX_FLAG $INC_PATH -L$LIB_PATH \ $LIB_PATH/libstdc++.la -no-install -rpath $LIB_PATH" - LTEXE="$LIBTOOL --mode=execute" LIBS= fi +# LTEXE == how to call libtool when running an executable +LTEXE="$LIBTOOL --mode=execute" # Set up the testing directory, which should be in a directory called # "testsuite" in the root level of the build directory. @@ -200,8 +199,7 @@ chmod u+w $TEST_DIR/*.tst # Emit useful info about compiler and platform echo "host: $(uname -mrsv)" >> $RESULTS_FILE -echo "compiler: $($CXX -v 2>&1 | tail -1)" >> $RESULTS_FILE -echo "$($CXX -v 2>&1 | grep ^Configured)" >> $RESULTS_FILE +echo "compiler: $($CXX -v 2>&1)" >> $RESULTS_FILE echo "compiler flags: $CXX_FLAG" >> $RESULTS_FILE echo "date: $(date +%Y%m%d)" >> $RESULTS_FILE echo "" >> $RESULTS_FILE @@ -377,12 +375,9 @@ test_file() # eventually have to calculate time_t anyhow. Or 3) just grab two # time_t's (no more overhead than grabbing two date(1)'s). compiler_invocation="$LTCXX $S_FLAG $SRC_NAME -o $EXENAME $LIBS" - # Why the leading weird character, like a colon? That way you can - # 'grep -v ^: *mkchecklog.txt' and just see the errors. - #printf "\n: " >> $LOG_FILE printf "\n" >> $LOG_FILE COMP_TIME_START=$($TEST_DIR/printnow) - $compiler_invocation + $compiler_invocation >> compile.out 2>&1 COMP_TIME_END=$($TEST_DIR/printnow) if [ $COMP_TIME_START -lt $COMP_TIME_END ]; then @@ -392,6 +387,7 @@ test_file() fi if [ -f $EXENAME ]; then + rm compile.out size_command TEXT size_command DATA size_command SIZE @@ -427,7 +423,8 @@ test_file() fi else # the file did not compile/link. - $compiler_invocation >> $LOG_FILE 2>&1 + `cat compile.out > $LOG_FILE` + rm compile.out RESULT="-b" TEXT="0" DATA="0" |