[committed] testsuite: Fix duplicated content of gcc.c-torture/execute/ieee/pr29302-1.x

Jakub Jelinek jakub@redhat.com
Wed Aug 4 09:51:14 GMT 2021


Hi!

After seeing the config/t-slibgcc-fuchsia issue, I ran a dumb and slow
for f in `find . -type f`; do sz=`ls -l $f | awk '{print $5}'`; sz=`expr $sz / 2`; [ $sz = 0 ] && continue; if [ $sz -gt 16 ]; then dd if=$f of=/tmp/1 bs=1 count=16 2>/dev/null; dd if=$f of=/tmp/2 bs=1 skip=$sz count=16 2>/dev/null; cmp -s /tmp/1 /tmp/2 || continue; fi; dd if=$f of=/tmp/1 bs=1 count=$sz 2>/dev/null; dd if=$f of=/tmp/2 bs=1 skip=$sz 2>/dev/null; cmp -s /tmp/1 /tmp/2 && echo $f; done
command to discover similar cases of files that have both halves identical.
The script found
gcc/testsuite/gcc.c-torture/execute/ieee/pr29302-1.x
gcc/testsuite/go.test/test/fixedbugs/bug206.out
gcc/testsuite/go.test/test/fixedbugs/issue30709.out
gcc/testsuite/go.test/test/fixedbugs/issue21879.out
gcc/testsuite/go.test/test/ken/cplx0.out
libgcc/config/t-slibgcc-fuchsia
libgo/misc/cgo/life/testdata/main.out
libgo/go/compress/flate/testdata/huffman-zero.in
libstdc++-v3/testsuite/data/wostream_inserter_char-1.txt
libstdc++-v3/testsuite/data/ios_base_members_static-1.tst
libstdc++-v3/testsuite/data/istream_unformatted-1.tst
libstdc++-v3/testsuite/data/wostream_inserter_char-1.tst
libstdc++-v3/testsuite/data/ostream_inserter_char-1.tst
libstdc++-v3/testsuite/data/ostream_inserter_char-1.txt
libstdc++-v3/testsuite/data/istream_unformatted-1.txt
libstdc++-v3/testsuite/data/wistream_unformatted-1.tst
libstdc++-v3/testsuite/data/wistream_unformatted-1.txt
from which libgcc/config/t-slibgcc-fuchsia is fixed,
gcc/testsuite/gcc.c-torture/execute/ieee/pr29302-1.x is also a clear bug
that I've committed fix now and the rest most probably is intentional.

Committed to trunk as obvious.

2021-08-04  Jakub Jelinek  <jakub@redhat.com>

	* gcc.c-torture/execute/ieee/pr29302-1.x: Undo doubly applied patch.

--- gcc/testsuite/gcc.c-torture/execute/ieee/pr29302-1.x
+++ gcc/testsuite/gcc.c-torture/execute/ieee/pr29302-1.x
@@ -4,9 +4,3 @@ if { [istarget "tic6x-*-*"] && [check_effective_target_ti_c67x] } {
     return 1
 }
 return 0
-if { [istarget "tic6x-*-*"] && [check_effective_target_ti_c67x] } {
-    # C6X uses -freciprocal-math by default.
-    set torture_execute_xfail "tic6x-*-*"
-    return 1
-}
-return 0

	Jakub



More information about the Gcc-patches mailing list