-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;
* 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>
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
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.
# 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
# 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
fi
if [ -f $EXENAME ]; then
+ rm compile.out
size_command TEXT
size_command DATA
size_command SIZE
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"