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: David Edelsohn <dje dot gcc at gmail dot com>
- To: Martin Sebor <msebor at gmail dot com>
- Cc: Jeffrey Law <law at redhat dot com>, GCC Patches <gcc-patches at gcc dot gnu dot org>, Andreas Schwab <schwab at linux-m68k dot org>
- Date: Fri, 5 May 2017 17:14:46 -0400
- Subject: Re: [PATCH] prevent -Wno-system-headers from suppressing -Wstringop-overflow (PR 79214)
- Authentication-results: sourceware.org; auth=none
>>>>> Andreas Schwab wrote:
> I see this failure on aarch64 with -mabi=ilp32:
> FAIL: gfortran.dg/alloc_comp_auto_array_2.f90 -O3 -fomit-frame-pointer -funroll-loops -fpeel-loops -ftracer -finline-functions (test for excess errors)
> Excess errors:
> /opt/gcc/gcc-20170505/gcc/testsuite/gfortran.dg/alloc_comp_auto_array_2.f90:33:0: Warning: '__builtin_memcpy': specified size between 2147483648 and 4294967295 exceeds maximum object size 2147483647 [-Wstringop-overflow=]
I'm seeing a huge number of similar, new testsuite failures on AIX
that all match the testcases from the PR79214 commit:
pr79138.c
pr79214.c
pr79222.c
pr79223.c
unconstrained_commons.c
AIX defaults to 32 bit. Do these testcases assume 64 bit types? I
believe that all of the matching text of for the warning messages all
assume 64 bit sizes.
Thanks, David