From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 9DB3F3857400; Wed, 8 Mar 2023 15:52:30 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9DB3F3857400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1678290750; bh=3GTCsAb/1k8NYYSvfrOsctGf8fepV8BekXFJJ9GJixA=; h=From:To:Subject:Date:In-Reply-To:References:From; b=w1fQfikNVKs3Mx39xX7IlbXn6nfLTxUXUa2YrseosE+9N3Z9+WBhT+de8pbDGxlsd 2Pl5x1BQRxYwCT9SLRJ3fsrqWRClOvBwZyhBeknyo/7iGrB4QYs5MliltHsXK07Bqa DermeVmdlX7/al8fcooKmzozKS0l2Lev+asQo6yE= From: "ishikawa at yk dot rim.or.jp" To: gcc-bugs@gcc.gnu.org Subject: =?UTF-8?B?W0J1ZyB0cmVlLW9wdGltaXphdGlvbi8xMDkwNDFdIEJvZ3VzIGNv?= =?UTF-8?B?bXBpbGUgdGltZSBjaGVjayBieSBfX2J1aWx0aW5fbWVtc2V0PyBlcnJvcjog?= =?UTF-8?B?4oCYX19idWlsdGluX21lbXNldOKAmSB3cml0aW5nIDQgYnl0ZXMgaW50byBh?= =?UTF-8?B?IHJlZ2lvbiBvZiBzaXplIDAgb3ZlcmZsb3dzIHRoZSBkZXN0aW5hdGlvbiBb?= =?UTF-8?B?LVdlcnJvcj1zdHJpbmdvcC1vdmVyZmxvdz1d?= Date: Wed, 08 Mar 2023 15:52:30 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 11.3.0 X-Bugzilla-Keywords: diagnostic, needs-reduction X-Bugzilla-Severity: normal X-Bugzilla-Who: ishikawa at yk dot rim.or.jp X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D109041 --- Comment #6 from ishikawa,chiaki --- Created attachment 54610 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D54610&action=3Dedit The script to produce the warning in the original report with gcc-11. The source file needs to be in /tmp/sqlite3-preprocessed-2.c Run this script with bash this-script and it will print something like this on my linux PC. Here I put the script into t83.sh: bash ~/Dropbox/TB-DIR/WALL-PATCH-DIR/t83.sh /tmp/sqlite3-preprocessed-2.c: In function =E2=80=98posixUnlock=E2=80=99: /tmp/sqlite3-preprocessed-2.c:22632:42: error: self-comparison always evalu= ates to true [-Werror=3Dtautological-compare] 22632 | sqlite3PendingByte+1=3D=3D(sqlite3PendingByte+= 1) | ^~ In function =E2=80=98memset=E2=80=99, inlined from =E2=80=98pager_playback=E2=80=99 at /tmp/sqlite3-preproces= sed-2.c:32113:4: /tmp/sqlite3-preprocessed-2.c:4273:10: error: =E2=80=98__builtin_memset=E2= =80=99 writing 4 bytes into a region of size 0 overflows the destination [-Werror=3Dstringop-overflow=3D] 4273 | return __builtin___memset_chk (__dest, __ch, __len, __builtin_object_size (__dest, 0)); |=20=20=20=20=20=20=20=20=20 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~= ~~~~ /tmp/sqlite3-preprocessed-2.c: In function =E2=80=98pager_playback=E2=80=99: /tmp/sqlite3-preprocessed-2.c:32089:30: note: destination object =E2=80=98*pPager.pTmpSpace=E2=80=99 of size [0, 9223372036854775807] 32089 | zSuper =3D (void *) &pPager->pTmpSpace[4]; | ~~~~~~^~~~~~~~~~~ /tmp/sqlite3-preprocessed-2.c:32089:30: note: destination object =E2=80=98*pPager.pTmpSpace=E2=80=99 of size [0, 9223372036854775807] cc1: all warnings being treated as errors ishikawa@ip030:/NREF-COMM-CENTRAL/mozilla$=