This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] prevent -Wno-system-headers from suppressing -Wstringop-overflow (PR 79214)
- From: Rainer Orth <ro at CeBiTec dot Uni-Bielefeld dot DE>
- To: Andreas Schwab <schwab at suse dot de>
- Cc: Martin Sebor <msebor at gmail dot com>, Jeff Law <law at redhat dot com>, Gcc Patch List <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 09 May 2017 22:01:35 +0200
- Subject: Re: [PATCH] prevent -Wno-system-headers from suppressing -Wstringop-overflow (PR 79214)
- Authentication-results: sourceware.org; auth=none
- References: <23de7931-c48a-4f4c-1e59-b32fad02e2b5@gmail.com> <mvmo9v3u5zr.fsf@suse.de>
Andreas Schwab <schwab@suse.de> writes:
> I see these regressions on ia64:
>
> FAIL: c-c++-common/Wsizeof-pointer-memaccess2.c -std=gnu++11 (test for
> excess errors)
> Excess errors:
> /usr/local/gcc/gcc-20170508/gcc/testsuite/c-c++-common/Wsizeof-pointer-memaccess2.c:11:53:
> warning: 'void* __builtin_memcpy(void*, const void*, long unsigned int)'
> reading 8 bytes from a region of size 1 [-Wstringop-overflow=]
> /usr/local/gcc/gcc-20170508/gcc/testsuite/c-c++-common/Wsizeof-pointer-memaccess2.c:12:55:
> warning: 'void* __builtin_memcpy(void*, const void*, long unsigned int)'
> reading 8 bytes from a region of size 1 [-Wstringop-overflow=]
> /usr/local/gcc/gcc-20170508/gcc/testsuite/c-c++-common/Wsizeof-pointer-memaccess2.c:11:53:
> warning: 'void* __builtin_memcpy(void*, const void*, long unsigned int)'
> reading 8 bytes from a region of size 1 [-Wstringop-overflow=]
> /usr/local/gcc/gcc-20170508/gcc/testsuite/c-c++-common/Wsizeof-pointer-memaccess2.c:12:55:
> warning: 'void* __builtin_memcpy(void*, const void*, long unsigned int)'
> reading 8 bytes from a region of size 1 [-Wstringop-overflow=]
> /usr/local/gcc/gcc-20170508/gcc/testsuite/c-c++-common/Wsizeof-pointer-memaccess2.c:11:53:
> warning: 'void* __builtin_memcpy(void*, const void*, long unsigned int)'
> reading 8 bytes from a region of size 1 [-Wstringop-overflow=]
> /usr/local/gcc/gcc-20170508/gcc/testsuite/c-c++-common/Wsizeof-pointer-memaccess2.c:12:55:
> warning: 'void* __builtin_memcpy(void*, const void*, long unsigned int)'
> reading 8 bytes from a region of size 1 [-Wstringop-overflow=]
> /usr/local/gcc/gcc-20170508/gcc/testsuite/c-c++-common/Wsizeof-pointer-memaccess2.c:11:53:
> warning: 'void* __builtin_memcpy(void*, const void*, long unsigned int)'
> reading 8 bytes from a region of size 1 [-Wstringop-overflow=]
> /usr/local/gcc/gcc-20170508/gcc/testsuite/c-c++-common/Wsizeof-pointer-memaccess2.c:12:55:
> warning: 'void* __builtin_memcpy(void*, const void*, long unsigned int)'
> reading 8 bytes from a region of size 1 [-Wstringop-overflow=]
The testcase also regresses on sparc-sun-solaris2.12:
32-bit:
FAIL: c-c++-common/Wsizeof-pointer-memaccess2.c -Wc++-compat (test for excess errors)
Excess errors:
/vol/gcc/src/hg/trunk/local/gcc/testsuite/c-c++-common/Wsizeof-pointer-memaccess2.c:11:30: warning: '__builtin_memcpy' reading 4 bytes from a region of size 0 [-Wstringop-overflow=]
/vol/gcc/src/hg/trunk/local/gcc/testsuite/c-c++-common/Wsizeof-pointer-memaccess2.c:12:31: warning: '__builtin_memcpy' reading 4 bytes from a region of size 0 [-Wstringop-overflow=]
/vol/gcc/src/hg/trunk/local/gcc/testsuite/c-c++-common/Wsizeof-pointer-memaccess2.c:11:30: warning: '__builtin_memcpy' reading 4 bytes from a region of size 0 [-Wstringop-overflow=]
/vol/gcc/src/hg/trunk/local/gcc/testsuite/c-c++-common/Wsizeof-pointer-memaccess2.c:12:31: warning: '__builtin_memcpy' reading 4 bytes from a region of size 0 [-Wstringop-overflow=]
/vol/gcc/src/hg/trunk/local/gcc/testsuite/c-c++-common/Wsizeof-pointer-memaccess2.c:11:30: warning: '__builtin_memcpy' reading 4 bytes from a region of size 1 [-Wstringop-overflow=]
/vol/gcc/src/hg/trunk/local/gcc/testsuite/c-c++-common/Wsizeof-pointer-memaccess2.c:12:31: warning: '__builtin_memcpy' reading 4 bytes from a region of size 1 [-Wstringop-overflow=]
/vol/gcc/src/hg/trunk/local/gcc/testsuite/c-c++-common/Wsizeof-pointer-memaccess2.c:11:30: warning: '__builtin_memcpy' reading 4 bytes from a region of size 1 [-Wstringop-overflow=]
/vol/gcc/src/hg/trunk/local/gcc/testsuite/c-c++-common/Wsizeof-pointer-memaccess2.c:12:31: warning: '__builtin_memcpy' reading 4 bytes from a region of size 1 [-Wstringop-overflow=]
64-bit:
Excess errors:
/vol/gcc/src/hg/trunk/local/gcc/testsuite/c-c++-common/Wsizeof-pointer-memaccess2.c:11:30: warning: '__builtin_memcpy' reading 8 bytes from a region of size 0 [-Wstringop-overflow=]
/vol/gcc/src/hg/trunk/local/gcc/testsuite/c-c++-common/Wsizeof-pointer-memaccess2.c:12:31: warning: '__builtin_memcpy' reading 8 bytes from a region of size 0 [-Wstringop-overflow=]
/vol/gcc/src/hg/trunk/local/gcc/testsuite/c-c++-common/Wsizeof-pointer-memaccess2.c:11:30: warning: '__builtin_memcpy' reading 8 bytes from a region of size 0 [-Wstringop-overflow=]
/vol/gcc/src/hg/trunk/local/gcc/testsuite/c-c++-common/Wsizeof-pointer-memaccess2.c:12:31: warning: '__builtin_memcpy' reading 8 bytes from a region of size 0 [-Wstringop-overflow=]
/vol/gcc/src/hg/trunk/local/gcc/testsuite/c-c++-common/Wsizeof-pointer-memaccess2.c:11:30: warning: '__builtin_memcpy' reading 8 bytes from a region of size 1 [-Wstringop-overflow=]
/vol/gcc/src/hg/trunk/local/gcc/testsuite/c-c++-common/Wsizeof-pointer-memaccess2.c:12:31: warning: '__builtin_memcpy' reading 8 bytes from a region of size 1 [-Wstringop-overflow=]
/vol/gcc/src/hg/trunk/local/gcc/testsuite/c-c++-common/Wsizeof-pointer-memaccess2.c:11:30: warning: '__builtin_memcpy' reading 8 bytes from a region of size 1 [-Wstringop-overflow=]
/vol/gcc/src/hg/trunk/local/gcc/testsuite/c-c++-common/Wsizeof-pointer-memaccess2.c:12:31: warning: '__builtin_memcpy' reading 8 bytes from a region of size 1 [-Wstringop-overflow=]
Rainer
--
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University