https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69573

--- Comment #14 from Chen Gang <gang.chen.5i5j at gmail dot com> ---
(In reply to Martin Sebor from comment #2)
> Patch posted for review:
> https://gcc.gnu.org/ml/gcc-patches/2016-01/msg02372.html

For your original patch, my test result is below (only compare 5 result files,
because of "make check" fails), I am not quite sure whether it is OK, please
check, thanks.


ShengShiZhuChengdeMacBook-Pro:gcc sszc$ sudo ./contrib/compare_tests
../build-gcc ../build-gcc-new
Password:
# Comparing directories
## Dir1=../build-gcc:        5 sum files
## Dir2=../build-gcc-new:        5 sum files

# Comparing        5 common sum files
## /bin/sh ./contrib/compare_tests  /tmp/gxx-sum1.388 /tmp/gxx-sum2.388
Tests that now fail, but worked before:

c-c++-common/asan/halt_on_error-1.c   -O0  execution test
c-c++-common/asan/halt_on_error-1.c   -O1  execution test
c-c++-common/asan/halt_on_error-1.c   -O2  execution test
c-c++-common/asan/halt_on_error-1.c   -O3 -g  execution test
c-c++-common/asan/halt_on_error-1.c   -Os  execution test
c-c++-common/asan/strncpy-overflow-1.c   -O0  execution test
gcc.dg/pch/save-temps-1.c  -O0 -g -I. -Dwith_PCH (test for excess errors)

Tests that now work, but didn't before:

c-c++-common/asan/halt_on_error-1.c   -O0  execution test
c-c++-common/asan/halt_on_error-1.c   -O1  execution test
c-c++-common/asan/halt_on_error-1.c   -O2  execution test
c-c++-common/asan/halt_on_error-1.c   -O3 -g  execution test
c-c++-common/asan/halt_on_error-1.c   -Os  execution test
c-c++-common/asan/strncpy-overflow-1.c   -O0  execution test

New tests that FAIL:

gcc.dg/pch/save-temps-1.c -O0 -g assembly comparison

New tests that PASS:

gcc.dg/pr61053.c  (test for errors, line 80)
gcc.dg/pr61053.c  (test for errors, line 81)
gcc.dg/pr61053.c  (test for errors, line 82)
gcc.dg/pr61053.c  (test for errors, line 83)
gcc.dg/pr61053.c  (test for errors, line 84)

Old tests that passed, that have disappeared: (Eeek!)

gcc.dg/pch/save-temps-1.c  -O0 -g -I. -Dwithout_PCH (test for excess errors)
gcc.dg/pch/save-temps-1.c  -O0 -g assembly comparison
gcc.dg/pr61053.c  (test for errors, line 70)
gcc.dg/pr61053.c  (test for errors, line 71)
gcc.dg/pr61053.c  (test for errors, line 72)
gcc.dg/pr61053.c  (test for errors, line 73)
gcc.dg/pr61053.c  (test for errors, line 74)

## Differences found: 
# 1 differences in        5 common sum files found



5 result files are (which should be enough for us, I guess):


ShengShiZhuChengdeMacBook-Pro:build-gcc sszc$ sudo find ./ | grep "\.sum$"
.//gcc/testsuite/g++/g++.sum
.//gcc/testsuite/gcc/gcc.sum
.//gcc/testsuite/gfortran/gfortran.sum
.//gcc/testsuite/objc/objc.sum
.//x86_64-apple-darwin14.4.0/libstdc++-v3/testsuite/libstdc++.sum


"make check" fails information (I guess, it should be easy to be fixed):

/Applications/Xcode-2.app/Contents/Developer/usr/bin/make  all-am
true  DO=all multi-do #
/Applications/Xcode-2.app/Contents/Developer/usr/bin/make
/Applications/Xcode-2.app/Contents/Developer/usr/bin/make  btest stest
/Users/sszc/Desktop/build-gcc/./gcc/xgcc -B/Users/sszc/Desktop/build-gcc/./gcc/
-B/usr/local/x86_64-apple-darwin14.4.0/bin/
-B/usr/local/x86_64-apple-darwin14.4.0/lib/ -isystem
/usr/local/x86_64-apple-darwin14.4.0/include -isystem
/usr/local/x86_64-apple-darwin14.4.0/sys-include    -DHAVE_CONFIG_H -I.
-I../../../gcc/libbacktrace  -I ../../../gcc/libbacktrace/../include -I
../../../gcc/libbacktrace/../libgcc -I ../libgcc  -funwind-tables
-frandom-seed=btest-btest.o -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -Wold-style-definition -Wmissing-format-attribute
-Wcast-qual -Werror  -g -O -g -O2 -c -o btest-btest.o `test -f 'btest.c' ||
echo '../../../gcc/libbacktrace/'`btest.c
../../../gcc/libbacktrace/btest.c:624:1: error: ‘test5’ defined but not used
[-Werror=unused-function]
 test5 (void)
 ^~~~~
cc1: all warnings being treated as errors
make[3]: *** [btest-btest.o] Error 1
make[2]: *** [check-am] Error 2
make[1]: *** [check-target-libbacktrace] Error 2
make: *** [do-check] Error 2

Reply via email to