Bug 95490 - [10/11 Regression] writing 1 byte into a region of size 0 [-Wstringop-overflow=] since r10-5451-gef29b12cfbb4979a89b3cbadbf485a77c8fd8fce
Summary: [10/11 Regression] writing 1 byte into a region of size 0 [-Wstringop-overflo...
Status: RESOLVED DUPLICATE of bug 95353
Alias: None
Product: gcc
Classification: Unclassified
Component: tree-optimization (show other bugs)
Version: 11.0
: P2 normal
Target Milestone: 10.2
Assignee: Not yet assigned to anyone
URL:
Keywords: diagnostic
Depends on:
Blocks: Wstringop-overflow
  Show dependency treegraph
 
Reported: 2020-06-03 05:48 UTC by Martin Liška
Modified: 2020-06-03 16:10 UTC (History)
1 user (show)

See Also:
Host: x86_64-linux-gnu
Target: ppc64le-linux-gnu
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments
test-case (2.61 KB, text/plain)
2020-06-03 05:48 UTC, Martin Liška
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Liška 2020-06-03 05:48:07 UTC
Since the revision I see:

$ gcc/bin/ppc64le-linux-gnu-gcc suse.i -c -Wall -O2
/tmp/suse.c: In function ‘reset_tlb_mmu_ways56.constprop.isra’:
/tmp/suse.c:131:31: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=]
/tmp/suse.c:132:31: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=]
/tmp/suse.c:131:31: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=]
/tmp/suse.c:132:31: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=]
/tmp/suse.c:131:31: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=]
/tmp/suse.c:132:31: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=]
/tmp/suse.c:131:31: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=]
/tmp/suse.c:132:31: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=]
/tmp/suse.c:131:31: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=]
/tmp/suse.c:132:31: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=]
/tmp/suse.c:131:31: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=]
/tmp/suse.c:132:31: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=]
/tmp/suse.c:131:31: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=]
/tmp/suse.c:132:31: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=]
Comment 1 Martin Liška 2020-06-03 05:48:31 UTC
Created attachment 48664 [details]
test-case
Comment 2 Martin Sebor 2020-06-03 16:10:49 UTC
This is in all likelihood a duplicate of pr95353.  The patch I posted for it yesterday (https://gcc.gnu.org/pipermail/gcc-patches/2020-June/547124.html) eliminates the warnings.

*** This bug has been marked as a duplicate of bug 95353 ***