48fb7bfab7
highlights from: http://gcc.gnu.org/gcc-4.6/changes.html GCC now has stricter checks for invalid command-line options New -Wunused-but-set-variable and -Wunused-but-set-parameter warnings Many platforms have been obsoleted Link-time optimization improvements A new switch -fstack-usage has been added A new function attribute leaf was introduced A new warning, enabled by -Wdouble-promotion Support for selectively enabling and disabling warnings via #pragma GCC diagnostic has been added There is now experimental support for some features from the upcoming C1X revision of the ISO C standard Improved experimental support for the upcoming C++0x ISO C++ standard G++ now issues clearer diagnostics in several cases Updates for ARM, x86, MIPS, PPC/PPC64, SPARC Darwin, FreeBSD, Solaris 2, MinGW and Cygwin now all support __float128 on 32-bit and 64-bit x86 targets. [*1] highlights from: http://gcc.gnu.org/gcc-4.7/changes.html The -fconserve-space flag has been deprecated Support for a new parameter --param case-values-threshold=n was added Interprocedural and Link-time optimization improvements A new built-in, __builtin_assume_aligned, has been added A new warning option -Wunused-local-typedefs was added A new experimental command-line option -ftrack-macro-expansion was added Support for atomic operations specifying the C++11/C11 memory model has been added There is support for some more features from the C11 revision of the ISO C standard Improved experimental support for the new ISO C++ standard, C++11 Updates for ARM, x86, MIPS, PPC/PPC64, SH, SPARC, TILE* A new option (-grecord-gcc-switches) was added highlights from: http://gcc.gnu.org/gcc-4.8/changes.html GCC now uses C++ as its implementation language. This means that to build GCC from sources, you will need a C++ compiler that understands C++ 2003 DWARF4 is now the default when generating DWARF debug information A new general optimization level, -Og, has been introduced A new option -ftree-partial-pre was added The option -fconserve-space has been removed The command-line options -fipa-struct-reorg and -fipa-matrix-reorg have been removed Interprocedural and Link-time optimization improvements AddressSanitizer, a fast memory error detector, has been added [*2] A new -Wsizeof-pointer-memaccess warning has been added G++ now supports a -std=c++1y option for experimentation with features proposed for the next revision of the standard, expected around 2014 Improved experimental support for the new ISO C++ standard, C++11 A new port has been added to support AArch64 Updates for ARM, x86, MIPS, PPC/PPC64, SH, SPARC, TILE* [*1] we should support this too! [*2] we should look into this. https://code.google.com/p/address-sanitizer/
99 lines
2.0 KiB
Bash
Executable File
99 lines
2.0 KiB
Bash
Executable File
#! /bin/sh
|
|
|
|
# (C) 2010 Free Software Foundation
|
|
# Written by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
|
|
|
|
# This script is Free Software, and it can be copied, distributed and
|
|
# modified as defined in the GNU General Public License. A copy of
|
|
# its license can be downloaded from http://www.gnu.org/copyleft/gpl.html
|
|
|
|
PROGNAME=test_recheck
|
|
|
|
usage ()
|
|
{
|
|
cat <<EOF
|
|
Usage: $PROGNAME [-h] [-n] DIR|FILE.sum...
|
|
|
|
Rerun unsuccessful tests for testsuites below DIR or for FILE.sum.
|
|
|
|
-h display this help and exit
|
|
-n dry run, only show what would be run
|
|
EOF
|
|
exit $?
|
|
}
|
|
|
|
error ()
|
|
{
|
|
echo "$@" >&2
|
|
exit 1
|
|
}
|
|
|
|
dry=
|
|
for arg
|
|
do
|
|
case $arg in
|
|
-h | \?) usage ;;
|
|
-n) dry=:; shift ;;
|
|
-*) error "unknown argument $arg" ;;
|
|
*) break ;;
|
|
esac
|
|
done
|
|
test $# -gt 0 || usage
|
|
|
|
# Find a good awk.
|
|
if test -z "$AWK" ; then
|
|
for AWK in gawk nawk awk
|
|
do
|
|
if type $AWK 2>&1 | grep 'not found' > /dev/null 2>&1 ; then
|
|
:
|
|
else
|
|
break
|
|
fi
|
|
done
|
|
fi
|
|
|
|
: ${MAKE=make}
|
|
: ${filesuffix=}
|
|
cwd=`pwd`
|
|
files=`find "$@" -name \*.sum$filesuffix -print | grep testsuite | sort`
|
|
st=0
|
|
|
|
for file in $files; do
|
|
dir=`echo $file | sed 's,/[^/]*$,,'`
|
|
base=`echo $file | sed 's,.*/,,; s,\.sum$,,'`
|
|
flags=`$AWK '
|
|
/^Running .*\.exp \.\.\./ {
|
|
if (expfile != "" && tests != "")
|
|
printf (" %s=\"%s\"", expfile, tests)
|
|
expfile = $2
|
|
sub (/^[^ ]*\//, "", expfile)
|
|
sep = ""
|
|
tests = ""
|
|
}
|
|
/^(FAIL|XPASS|UNRESOLVED|WARNING|ERROR): / {
|
|
if (test != $2 "" && $2 != "" ) {
|
|
test = $2
|
|
tests = tests sep test
|
|
sep = " "
|
|
}
|
|
}
|
|
END {
|
|
if (expfile != "" && tests != "")
|
|
printf (" %s=\"%s\"", expfile, tests)
|
|
}' $file`
|
|
if test -n "$flags"; then
|
|
cd $dir
|
|
amflags=
|
|
if grep '^AM_RUNTESTFLAGS =' Makefile >/dev/null 2>&1; then
|
|
amflags=`echo 'print-runtestflags: ; @echo $(AM_RUNTESTFLAGS)' \
|
|
| ${MAKE} -s -f Makefile -f - print-runtestflags`
|
|
fi
|
|
echo "(cd $dir && runtest $amflags --tool $base $flags)"
|
|
if test -z "$dry"; then
|
|
eval runtest --tool $base $flags || st=$?
|
|
fi
|
|
cd "$cwd"
|
|
fi
|
|
done
|
|
exit $st
|