https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80644
Bug ID: 80644 Summary: [8 regression] many test cases fails starting with 247622 Product: gcc Version: 8.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: seurer at gcc dot gnu.org Target Milestone: --- All these tests fail now on powerpc64 LE. From the details it looks like they all are triggering overflow warnings from -Wstringop-overflow=. > FAIL: gcc.dg/pr78138.c (test for warnings, line 23) > FAIL: gcc.dg/pr78138.c (test for excess errors) > FAIL: gcc.dg/pr79214.c (test for warnings, line 25) > FAIL: gcc.dg/pr79214.c (test for warnings, line 30) > FAIL: gcc.dg/pr79214.c (test for warnings, line 35) > FAIL: gcc.dg/pr79214.c (test for warnings, line 40) > FAIL: gcc.dg/pr79214.c (test for warnings, line 45) > FAIL: gcc.dg/pr79214.c (test for warnings, line 52) > FAIL: gcc.dg/pr79214.c (test for warnings, line 59) > FAIL: gcc.dg/pr79214.c (test for warnings, line 66) > FAIL: gcc.dg/pr79214.c (test for warnings, line 73) > FAIL: gcc.dg/pr79214.c (test for warnings, line 80) > FAIL: gcc.dg/pr79214.c (test for excess errors) > FAIL: gcc.dg/pr79222.c (test for warnings, line 12) > FAIL: gcc.dg/pr79222.c (test for excess errors) > FAIL: gcc.dg/pr79223.c (test for warnings, line 26) > FAIL: gcc.dg/pr79223.c (test for warnings, line 31) > FAIL: gcc.dg/pr79223.c (test for warnings, line 36) > FAIL: gcc.dg/pr79223.c (test for excess errors) > FAIL: gcc.dg/tree-ssa/builtins-folding-gimple-ub.c (test for excess errors) > FAIL: gfortran.dg/elemental_subroutine_3.f90 -O1 (test for excess errors) > FAIL: gfortran.dg/elemental_subroutine_3.f90 -O2 (test for excess errors) > FAIL: gfortran.dg/elemental_subroutine_3.f90 -O3 -fomit-frame-pointer > -funroll-loops -fpeel-loops -ftracer -finline-functions (test for excess > errors) > FAIL: gfortran.dg/elemental_subroutine_3.f90 -O3 -g (test for excess > errors) > FAIL: gfortran.dg/elemental_subroutine_3.f90 -Os (test for excess errors) > FAIL: gfortran.dg/mvbits_7.f90 -O0 (test for warnings, line 28) Some details below spawn /home/seurer/gcc/build/gcc-trunk/gcc/xgcc -B/home/seurer/gcc/build/gcc-trunk/gcc/ /home/seurer/gcc/gcc-trunk/gcc/testsuite/gcc.dg/pr78138.c -fno-diagnostics-show-caret -fdiagnostics-color=never -O2 -Wformat-overflow -S -o pr78138.s /home/seurer/gcc/gcc-trunk/gcc/testsuite/gcc.dg/pr78138.c: In function 'f': /home/seurer/gcc/gcc-trunk/gcc/testsuite/gcc.dg/pr78138.c:15:3: warning: 'strcpy': writing between 6 and 7 bytes into a region of size 5 overflows the destination [-Wstringop-overflow=] /home/seurer/gcc/gcc-trunk/gcc/testsuite/gcc.dg/pr78138.c: In function 'g': /home/seurer/gcc/gcc-trunk/gcc/testsuite/gcc.dg/pr78138.c:23:3: warning: 'memcpy': writing between 7 and 32 bytes into a region of size 5 overflows the destination [-Wstringop-overflow=] output is: /home/seurer/gcc/gcc-trunk/gcc/testsuite/gcc.dg/pr78138.c: In function 'f': /home/seurer/gcc/gcc-trunk/gcc/testsuite/gcc.dg/pr78138.c:15:3: warning: 'strcpy': writing between 6 and 7 bytes into a region of size 5 overflows the destination [-Wstringop-overflow=] /home/seurer/gcc/gcc-trunk/gcc/testsuite/gcc.dg/pr78138.c: In function 'g': /home/seurer/gcc/gcc-trunk/gcc/testsuite/gcc.dg/pr78138.c:23:3: warning: 'memcpy': writing between 7 and 32 bytes into a region of size 5 overflows the destination [-Wstringop-overflow=] PASS: gcc.dg/pr78138.c (test for warnings, line 15) FAIL: gcc.dg/pr78138.c (test for warnings, line 23) FAIL: gcc.dg/pr78138.c (test for excess errors) Excess errors: /home/seurer/gcc/gcc-trunk/gcc/testsuite/gcc.dg/pr78138.c:23:3: warning: 'memcpy': writing between 7 and 32 bytes into a region of size 5 overflows the destination [-Wstringop-overflow=] spawn /home/seurer/gcc/build/gcc-trunk/gcc/xgcc -B/home/seurer/gcc/build/gcc-trunk/gcc/ /home/seurer/gcc/gcc-trunk/gcc/testsuite/gcc.dg/pr79214.c -fno-diagnostics-show-caret -fdiagnostics-color=never -O2 -S -o pr79214.s In file included from /home/seurer/gcc/gcc-trunk/gcc/testsuite/gcc.dg/pr79214.c:6:0: /home/seurer/gcc/gcc-trunk/gcc/testsuite/gcc.dg/pr79214.c: In function 'test_bzero': /home/seurer/gcc/gcc-trunk/gcc/testsuite/gcc.dg/pr79214.c:25:3: warning: '__builtin_bzero': writing 4 or more bytes into a region of size 3 overflows the destination [-Wstringop-overflow=] /home/seurer/gcc/gcc-trunk/gcc/testsuite/gcc.dg/pr79214.c: In function 'test_memcpy': /home/seurer/gcc/gcc-trunk/gcc/testsuite/gcc.dg/pr79214.c:30:3: warning: '__builtin_memcpy': writing 4 or more bytes into a region of size 3 overflows the destination [-Wstringop-overflow=] /home/seurer/gcc/gcc-trunk/gcc/testsuite/gcc.dg/pr79214.c: In function 'test_memmove': /home/seurer/gcc/gcc-trunk/gcc/testsuite/gcc.dg/pr79214.c:35:3: warning: '__builtin_memmove': writing 4 or more bytes into a region of size 3 overflows the destination [-Wstringop-overflow=] /home/seurer/gcc/gcc-trunk/gcc/testsuite/gcc.dg/pr79214.c: In function 'test_mempcpy': /home/seurer/gcc/gcc-trunk/gcc/testsuite/gcc.dg/pr79214.c:40:3: warning: '__builtin_mempcpy': writing 4 or more bytes into a region of size 3 overflows the destination [-Wstringop-overflow=] /home/seurer/gcc/gcc-trunk/gcc/testsuite/gcc.dg/pr79214.c: In function 'test_memset': /home/seurer/gcc/gcc-trunk/gcc/testsuite/gcc.dg/pr79214.c:45:3: warning: '__builtin_memset': writing 4 or more bytes into a region of size 3 overflows the destination [-Wstringop-overflow=] /home/seurer/gcc/gcc-trunk/gcc/testsuite/gcc.dg/pr79214.c: In function 'test_strcat': /home/seurer/gcc/gcc-trunk/gcc/testsuite/gcc.dg/pr79214.c:52:3: warning: '__builtin_strcat': writing between 4 and 5 bytes into a region of size 3 overflows the destination [-Wstringop-overflow=] /home/seurer/gcc/gcc-trunk/gcc/testsuite/gcc.dg/pr79214.c: In function 'test_stpcpy': /home/seurer/gcc/gcc-trunk/gcc/testsuite/gcc.dg/pr79214.c:59:10: warning: '__builtin_stpcpy': writing between 4 and 5 bytes into a region of size 3 overflows the destination [-Wstringop-overflow=] /home/seurer/gcc/gcc-trunk/gcc/testsuite/gcc.dg/pr79214.c: In function 'test_stpncpy': /home/seurer/gcc/gcc-trunk/gcc/testsuite/gcc.dg/pr79214.c:66:10: warning: '__builtin_stpncpy': writing 4 or more bytes into a region of size 3 overflows the destination [-Wstringop-overflow=] /home/seurer/gcc/gcc-trunk/gcc/testsuite/gcc.dg/pr79214.c: In function 'test_strcpy': /home/seurer/gcc/gcc-trunk/gcc/testsuite/gcc.dg/pr79214.c:73:10: warning: '__builtin_strcpy': writing between 4 and 5 bytes into a region of size 3 overflows the destination [-Wstringop-overflow=] /home/seurer/gcc/gcc-trunk/gcc/testsuite/gcc.dg/pr79214.c: In function 'test_strncpy': /home/seurer/gcc/gcc-trunk/gcc/testsuite/gcc.dg/pr79214.c:80:10: warning: '__builtin_strncpy': writing 4 or more bytes into a region of size 3 overflows the destination [-Wstringop-overflow=] /home/seurer/gcc/gcc-trunk/gcc/testsuite/gcc.dg/pr79214.c: In function 'test_strncat': /home/seurer/gcc/gcc-trunk/gcc/testsuite/gcc.dg/pr79214.c:87:10: warning: '__builtin_strncat': specified bound between 4 and 18446744073709551615 exceeds destination size 3 [-Wstringop-overflow=] output is: In file included from /home/seurer/gcc/gcc-trunk/gcc/testsuite/gcc.dg/pr79214.c:6:0: /home/seurer/gcc/gcc-trunk/gcc/testsuite/gcc.dg/pr79214.c: In function 'test_bzero': /home/seurer/gcc/gcc-trunk/gcc/testsuite/gcc.dg/pr79214.c:25:3: warning: '__builtin_bzero': writing 4 or more bytes into a region of size 3 overflows the destination [-Wstringop-overflow=] /home/seurer/gcc/gcc-trunk/gcc/testsuite/gcc.dg/pr79214.c: In function 'test_memcpy': /home/seurer/gcc/gcc-trunk/gcc/testsuite/gcc.dg/pr79214.c:30:3: warning: '__builtin_memcpy': writing 4 or more bytes into a region of size 3 overflows the destination [-Wstringop-overflow=] /home/seurer/gcc/gcc-trunk/gcc/testsuite/gcc.dg/pr79214.c: In function 'test_memmove': /home/seurer/gcc/gcc-trunk/gcc/testsuite/gcc.dg/pr79214.c:35:3: warning: '__builtin_memmove': writing 4 or more bytes into a region of size 3 overflows the destination [-Wstringop-overflow=] /home/seurer/gcc/gcc-trunk/gcc/testsuite/gcc.dg/pr79214.c: In function 'test_mempcpy': /home/seurer/gcc/gcc-trunk/gcc/testsuite/gcc.dg/pr79214.c:40:3: warning: '__builtin_mempcpy': writing 4 or more bytes into a region of size 3 overflows the destination [-Wstringop-overflow=] /home/seurer/gcc/gcc-trunk/gcc/testsuite/gcc.dg/pr79214.c: In function 'test_memset': /home/seurer/gcc/gcc-trunk/gcc/testsuite/gcc.dg/pr79214.c:45:3: warning: '__builtin_memset': writing 4 or more bytes into a region of size 3 overflows the destination [-Wstringop-overflow=] /home/seurer/gcc/gcc-trunk/gcc/testsuite/gcc.dg/pr79214.c: In function 'test_strcat': /home/seurer/gcc/gcc-trunk/gcc/testsuite/gcc.dg/pr79214.c:52:3: warning: '__builtin_strcat': writing between 4 and 5 bytes into a region of size 3 overflows the destination [-Wstringop-overflow=] /home/seurer/gcc/gcc-trunk/gcc/testsuite/gcc.dg/pr79214.c: In function 'test_stpcpy': /home/seurer/gcc/gcc-trunk/gcc/testsuite/gcc.dg/pr79214.c:59:10: warning: '__builtin_stpcpy': writing between 4 and 5 bytes into a region of size 3 overflows the destination [-Wstringop-overflow=] /home/seurer/gcc/gcc-trunk/gcc/testsuite/gcc.dg/pr79214.c: In function 'test_stpncpy': /home/seurer/gcc/gcc-trunk/gcc/testsuite/gcc.dg/pr79214.c:66:10: warning: '__builtin_stpncpy': writing 4 or more bytes into a region of size 3 overflows the destination [-Wstringop-overflow=] /home/seurer/gcc/gcc-trunk/gcc/testsuite/gcc.dg/pr79214.c: In function 'test_strcpy': /home/seurer/gcc/gcc-trunk/gcc/testsuite/gcc.dg/pr79214.c:73:10: warning: '__builtin_strcpy': writing between 4 and 5 bytes into a region of size 3 overflows the destination [-Wstringop-overflow=] /home/seurer/gcc/gcc-trunk/gcc/testsuite/gcc.dg/pr79214.c: In function 'test_strncpy': /home/seurer/gcc/gcc-trunk/gcc/testsuite/gcc.dg/pr79214.c:80:10: warning: '__builtin_strncpy': writing 4 or more bytes into a region of size 3 overflows the destination [-Wstringop-overflow=] /home/seurer/gcc/gcc-trunk/gcc/testsuite/gcc.dg/pr79214.c: In function 'test_strncat': /home/seurer/gcc/gcc-trunk/gcc/testsuite/gcc.dg/pr79214.c:87:10: warning: '__builtin_strncat': specified bound between 4 and 18446744073709551615 exceeds destination size 3 [-Wstringop-overflow=] FAIL: gcc.dg/pr79214.c (test for warnings, line 25) FAIL: gcc.dg/pr79214.c (test for warnings, line 30) FAIL: gcc.dg/pr79214.c (test for warnings, line 35) FAIL: gcc.dg/pr79214.c (test for warnings, line 40) FAIL: gcc.dg/pr79214.c (test for warnings, line 45) FAIL: gcc.dg/pr79214.c (test for warnings, line 52) FAIL: gcc.dg/pr79214.c (test for warnings, line 59) FAIL: gcc.dg/pr79214.c (test for warnings, line 66) FAIL: gcc.dg/pr79214.c (test for warnings, line 73) FAIL: gcc.dg/pr79214.c (test for warnings, line 80) PASS: gcc.dg/pr79214.c (test for warnings, line 87) FAIL: gcc.dg/pr79214.c (test for excess errors) Excess errors: /home/seurer/gcc/gcc-trunk/gcc/testsuite/gcc.dg/pr79214.c:25:3: warning: '__builtin_bzero': writing 4 or more bytes into a region of size 3 overflows the destination [-Wstringop-overflow=] /home/seurer/gcc/gcc-trunk/gcc/testsuite/gcc.dg/pr79214.c:30:3: warning: '__builtin_memcpy': writing 4 or more bytes into a region of size 3 overflows the destination [-Wstringop-overflow=] /home/seurer/gcc/gcc-trunk/gcc/testsuite/gcc.dg/pr79214.c:35:3: warning: '__builtin_memmove': writing 4 or more bytes into a region of size 3 overflows the destination [-Wstringop-overflow=] /home/seurer/gcc/gcc-trunk/gcc/testsuite/gcc.dg/pr79214.c:40:3: warning: '__builtin_mempcpy': writing 4 or more bytes into a region of size 3 overflows the destination [-Wstringop-overflow=] /home/seurer/gcc/gcc-trunk/gcc/testsuite/gcc.dg/pr79214.c:45:3: warning: '__builtin_memset': writing 4 or more bytes into a region of size 3 overflows the destination [-Wstringop-overflow=] /home/seurer/gcc/gcc-trunk/gcc/testsuite/gcc.dg/pr79214.c:52:3: warning: '__builtin_strcat': writing between 4 and 5 bytes into a region of size 3 overflows the destination [-Wstringop-overflow=] /home/seurer/gcc/gcc-trunk/gcc/testsuite/gcc.dg/pr79214.c:59:10: warning: '__builtin_stpcpy': writing between 4 and 5 bytes into a region of size 3 overflows the destination [-Wstringop-overflow=] /home/seurer/gcc/gcc-trunk/gcc/testsuite/gcc.dg/pr79214.c:66:10: warning: '__builtin_stpncpy': writing 4 or more bytes into a region of size 3 overflows the destination [-Wstringop-overflow=] /home/seurer/gcc/gcc-trunk/gcc/testsuite/gcc.dg/pr79214.c:73:10: warning: '__builtin_strcpy': writing between 4 and 5 bytes into a region of size 3 overflows the destination [-Wstringop-overflow=] /home/seurer/gcc/gcc-trunk/gcc/testsuite/gcc.dg/pr79214.c:80:10: warning: '__builtin_strncpy': writing 4 or more bytes into a region of size 3 overflows the destination [-Wstringop-overflow=] Executing on host: /home/seurer/gcc/build/gcc-trunk/gcc/xgcc -B/home/seurer/gcc/build/gcc-trunk/gcc/ /home/seurer/gcc/gcc-trunk/gcc/testsuite/gcc.dg/pr79222.c -fno-diagnostics-show-caret -fdiagnostics-color=never -O2 -S -o pr79222.s (timeout = 300) spawn /home/seurer/gcc/build/gcc-trunk/gcc/xgcc -B/home/seurer/gcc/build/gcc-trunk/gcc/ /home/seurer/gcc/gcc-trunk/gcc/testsuite/gcc.dg/pr79222.c -fno-diagnostics-show-caret -fdiagnostics-color=never -O2 -S -o pr79222.s /home/seurer/gcc/gcc-trunk/gcc/testsuite/gcc.dg/pr79222.c: In function 'f': /home/seurer/gcc/gcc-trunk/gcc/testsuite/gcc.dg/pr79222.c:12:10: warning: 'stpcpy': writing between 9 and 11 bytes into a region of size 3 overflows the destination [-Wstringop-overflow=] output is: /home/seurer/gcc/gcc-trunk/gcc/testsuite/gcc.dg/pr79222.c: In function 'f': /home/seurer/gcc/gcc-trunk/gcc/testsuite/gcc.dg/pr79222.c:12:10: warning: 'stpcpy': writing between 9 and 11 bytes into a region of size 3 overflows the destination [-Wstringop-overflow=] FAIL: gcc.dg/pr79222.c (test for warnings, line 12) FAIL: gcc.dg/pr79222.c (test for excess errors) Excess errors: /home/seurer/gcc/gcc-trunk/gcc/testsuite/gcc.dg/pr79222.c:12:10: warning: 'stpcpy': writing between 9 and 11 bytes into a region of size 3 overflows the destination [-Wstringop-overflow=] Executing on host: /home/seurer/gcc/build/gcc-trunk/gcc/xgcc -B/home/seurer/gcc/build/gcc-trunk/gcc/ /home/seurer/gcc/gcc-trunk/gcc/testsuite/gcc.dg/pr79223.c -fno-diagnostics-show-caret -fdiagnostics-color=never -ansi -pedantic-errors -O2 -Wall -std=gnu99 -S -o pr79223.s (timeout = 300) spawn /home/seurer/gcc/build/gcc-trunk/gcc/xgcc -B/home/seurer/gcc/build/gcc-trunk/gcc/ /home/seurer/gcc/gcc-trunk/gcc/testsuite/gcc.dg/pr79223.c -fno-diagnostics-show-caret -fdiagnostics-color=never -ansi -pedantic-errors -O2 -Wall -std=gnu99 -S -o pr79223.s /home/seurer/gcc/gcc-trunk/gcc/testsuite/gcc.dg/pr79223.c: In function 'test_memcpy': /home/seurer/gcc/gcc-trunk/gcc/testsuite/gcc.dg/pr79223.c:26:3: warning: 'memcpy': writing 4 or more bytes into a region of size 3 overflows the destination [-Wstringop-overflow=] /home/seurer/gcc/gcc-trunk/gcc/testsuite/gcc.dg/pr79223.c: In function 'test_mempcpy': /home/seurer/gcc/gcc-trunk/gcc/testsuite/gcc.dg/pr79223.c:31:3: warning: 'mempcpy': writing 4 or more bytes into a region of size 3 overflows the destination [-Wstringop-overflow=] /home/seurer/gcc/gcc-trunk/gcc/testsuite/gcc.dg/pr79223.c: In function 'test_memmove': /home/seurer/gcc/gcc-trunk/gcc/testsuite/gcc.dg/pr79223.c:36:3: warning: 'memmove': writing 4 or more bytes into a region of size 2 overflows the destination [-Wstringop-overflow=] output is: /home/seurer/gcc/gcc-trunk/gcc/testsuite/gcc.dg/pr79223.c: In function 'test_memcpy': /home/seurer/gcc/gcc-trunk/gcc/testsuite/gcc.dg/pr79223.c:26:3: warning: 'memcpy': writing 4 or more bytes into a region of size 3 overflows the destination [-Wstringop-overflow=] /home/seurer/gcc/gcc-trunk/gcc/testsuite/gcc.dg/pr79223.c: In function 'test_mempcpy': /home/seurer/gcc/gcc-trunk/gcc/testsuite/gcc.dg/pr79223.c:31:3: warning: 'mempcpy': writing 4 or more bytes into a region of size 3 overflows the destination [-Wstringop-overflow=] /home/seurer/gcc/gcc-trunk/gcc/testsuite/gcc.dg/pr79223.c: In function 'test_memmove': /home/seurer/gcc/gcc-trunk/gcc/testsuite/gcc.dg/pr79223.c:36:3: warning: 'memmove': writing 4 or more bytes into a region of size 2 overflows the destination [-Wstringop-overflow=] FAIL: gcc.dg/pr79223.c (test for warnings, line 26) FAIL: gcc.dg/pr79223.c (test for warnings, line 31) FAIL: gcc.dg/pr79223.c (test for warnings, line 36) FAIL: gcc.dg/pr79223.c (test for excess errors) Excess errors: /home/seurer/gcc/gcc-trunk/gcc/testsuite/gcc.dg/pr79223.c:26:3: warning: 'memcpy': writing 4 or more bytes into a region of size 3 overflows the destination [-Wstringop-overflow=] /home/seurer/gcc/gcc-trunk/gcc/testsuite/gcc.dg/pr79223.c:31:3: warning: 'mempcpy': writing 4 or more bytes into a region of size 3 overflows the destination [-Wstringop-overflow=] /home/seurer/gcc/gcc-trunk/gcc/testsuite/gcc.dg/pr79223.c:36:3: warning: 'memmove': writing 4 or more bytes into a region of size 2 overflows the destination [-Wstringop-overflow=]