This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] prevent -Wno-system-headers from suppressing -Wstringop-overflow (PR 79214)


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]