Commit 66bc5940 by Benjamin Kosnik

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
parent 6b16805e
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 * include/bits/std_complex.h (complex<double>): Constructor
complex<double>::complex(const complex<float>&) is not explicit; complex<double>::complex(const complex<float>&) is not explicit;
...@@ -18,8 +25,6 @@ ...@@ -18,8 +25,6 @@
* testsuite/23_containers/vector_ctor.cc (test02): Add test from * testsuite/23_containers/vector_ctor.cc (test02): Add test from
libstdc++/102. libstdc++/102.
* src/string-inst.cc: Tweaks.
2000-11-20 Joseph S. Myers <jsm28@cam.ac.uk> 2000-11-20 Joseph S. Myers <jsm28@cam.ac.uk>
* include/bits/c++config, include/bits/ios_base.h, * include/bits/c++config, include/bits/ios_base.h,
......
...@@ -112,18 +112,16 @@ CXX_FLAG="-ggdb3 -DDEBUG_ASSERT @SECTION_FLAGS@ @SECTION_LDFLAGS@" ...@@ -112,18 +112,16 @@ CXX_FLAG="-ggdb3 -DDEBUG_ASSERT @SECTION_FLAGS@ @SECTION_LDFLAGS@"
SH_FLAG="" SH_FLAG=""
# specific libtool flag(s) to force the use of static libraries, if any # specific libtool flag(s) to force the use of static libraries, if any
#ST_FLAG="-static" ST_FLAG="-static"
ST_FLAG="-all-static" #ST_FLAG="-all-static"
# LTCXX == how to call libtool when creating an executable # 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) # LIBS == any extra needed -l switches, etc (may need more libs, lose lose)
if [ $WHICH -eq 0 ]; then if [ $WHICH -eq 0 ]; then
LTCXX="$LIBTOOL --tag=CXX --mode=link \ LTCXX="$LIBTOOL --tag=CXX --mode=link \
$CXX $CXX_FLAG $INC_PATH \ $CXX $CXX_FLAG $INC_PATH \
$LIB_PATH/../libsupc++/libsupc++.la $LIB_PATH/libstdc++.la \ $LIB_PATH/../libsupc++/libsupc++.la $LIB_PATH/libstdc++.la \
-no-install" -no-install"
LTEXE="$LIBTOOL --mode=execute"
LIBS="-nodefaultlibs -lc -lgcc -lc" LIBS="-nodefaultlibs -lc -lgcc -lc"
elif [ $WHICH -eq 1 ]; then elif [ $WHICH -eq 1 ]; then
# For the installed version, we really only need to use libtool and # For the installed version, we really only need to use libtool and
...@@ -131,9 +129,10 @@ elif [ $WHICH -eq 1 ]; then ...@@ -131,9 +129,10 @@ elif [ $WHICH -eq 1 ]; then
LTCXX="$LIBTOOL --tag=CXX --mode=link \ LTCXX="$LIBTOOL --tag=CXX --mode=link \
$CXX $CXX_FLAG $INC_PATH -L$LIB_PATH \ $CXX $CXX_FLAG $INC_PATH -L$LIB_PATH \
$LIB_PATH/libstdc++.la -no-install -rpath $LIB_PATH" $LIB_PATH/libstdc++.la -no-install -rpath $LIB_PATH"
LTEXE="$LIBTOOL --mode=execute"
LIBS= LIBS=
fi 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 # Set up the testing directory, which should be in a directory called
# "testsuite" in the root level of the build directory. # "testsuite" in the root level of the build directory.
...@@ -200,8 +199,7 @@ chmod u+w $TEST_DIR/*.tst ...@@ -200,8 +199,7 @@ chmod u+w $TEST_DIR/*.tst
# Emit useful info about compiler and platform # Emit useful info about compiler and platform
echo "host: $(uname -mrsv)" >> $RESULTS_FILE echo "host: $(uname -mrsv)" >> $RESULTS_FILE
echo "compiler: $($CXX -v 2>&1 | tail -1)" >> $RESULTS_FILE echo "compiler: $($CXX -v 2>&1)" >> $RESULTS_FILE
echo "$($CXX -v 2>&1 | grep ^Configured)" >> $RESULTS_FILE
echo "compiler flags: $CXX_FLAG" >> $RESULTS_FILE echo "compiler flags: $CXX_FLAG" >> $RESULTS_FILE
echo "date: $(date +%Y%m%d)" >> $RESULTS_FILE echo "date: $(date +%Y%m%d)" >> $RESULTS_FILE
echo "" >> $RESULTS_FILE echo "" >> $RESULTS_FILE
...@@ -377,12 +375,9 @@ test_file() ...@@ -377,12 +375,9 @@ test_file()
# eventually have to calculate time_t anyhow. Or 3) just grab two # eventually have to calculate time_t anyhow. Or 3) just grab two
# time_t's (no more overhead than grabbing two date(1)'s). # time_t's (no more overhead than grabbing two date(1)'s).
compiler_invocation="$LTCXX $S_FLAG $SRC_NAME -o $EXENAME $LIBS" 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 printf "\n" >> $LOG_FILE
COMP_TIME_START=$($TEST_DIR/printnow) COMP_TIME_START=$($TEST_DIR/printnow)
$compiler_invocation $compiler_invocation >> compile.out 2>&1
COMP_TIME_END=$($TEST_DIR/printnow) COMP_TIME_END=$($TEST_DIR/printnow)
if [ $COMP_TIME_START -lt $COMP_TIME_END ]; then if [ $COMP_TIME_START -lt $COMP_TIME_END ]; then
...@@ -392,6 +387,7 @@ test_file() ...@@ -392,6 +387,7 @@ test_file()
fi fi
if [ -f $EXENAME ]; then if [ -f $EXENAME ]; then
rm compile.out
size_command TEXT size_command TEXT
size_command DATA size_command DATA
size_command SIZE size_command SIZE
...@@ -427,7 +423,8 @@ test_file() ...@@ -427,7 +423,8 @@ test_file()
fi fi
else else
# the file did not compile/link. # the file did not compile/link.
$compiler_invocation >> $LOG_FILE 2>&1 `cat compile.out > $LOG_FILE`
rm compile.out
RESULT="-b" RESULT="-b"
TEXT="0" TEXT="0"
DATA="0" DATA="0"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment