public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug lto/95533] New: Spurious(?) warning "writing 2 bytes into a region of size 0" with -O(2|3) -fwhole-program -flto
@ 2020-06-04 12:47 dominiq at lps dot ens.fr
2020-06-04 16:18 ` [Bug lto/95533] " msebor at gcc dot gnu.org
0 siblings, 1 reply; 2+ messages in thread
From: dominiq at lps dot ens.fr @ 2020-06-04 12:47 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95533
Bug ID: 95533
Summary: Spurious(?) warning "writing 2 bytes into a region of
size 0" with -O(2|3) -fwhole-program -flto
Product: gcc
Version: 11.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: lto
Assignee: unassigned at gcc dot gnu.org
Reporter: dominiq at lps dot ens.fr
CC: marxin at gcc dot gnu.org
Target Milestone: ---
% gfc /opt/gcc/work/gcc/testsuite/gfortran.dg/deferred_character_8.f90 -O3
-fwhole-program -flto
In function 'g',
inlined from 'MAIN__' at
/opt/gcc/work/gcc/testsuite/gfortran.dg/deferred_character_8.f90:73:0:
/opt/gcc/work/gcc/testsuite/gfortran.dg/deferred_character_8.f90:28: warning:
writing 4 bytes into a region of size 0 [-Wstringop-overflow=]
28 | res = [a, b]
|
% gfc /opt/gcc/work/gcc/testsuite/gfortran.dg/deferred_character_8.f90 -O2
-fwhole-program -flto
In function 'g',
inlined from 'MAIN__' at
/opt/gcc/work/gcc/testsuite/gfortran.dg/deferred_character_8.f90:73:0:
/opt/gcc/work/gcc/testsuite/gfortran.dg/deferred_character_8.f90:28: warning:
writing 2 bytes into a region of size 0 [-Wstringop-overflow=]
28 | res = [a, b]
|
/opt/gcc/work/gcc/testsuite/gfortran.dg/deferred_character_8.f90:28: warning:
writing 4 bytes into a region of size 0 [-Wstringop-overflow=]
28 | res = [a, b]
|
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug lto/95533] Spurious(?) warning "writing 2 bytes into a region of size 0" with -O(2|3) -fwhole-program -flto
2020-06-04 12:47 [Bug lto/95533] New: Spurious(?) warning "writing 2 bytes into a region of size 0" with -O(2|3) -fwhole-program -flto dominiq at lps dot ens.fr
@ 2020-06-04 16:18 ` msebor at gcc dot gnu.org
0 siblings, 0 replies; 2+ messages in thread
From: msebor at gcc dot gnu.org @ 2020-06-04 16:18 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95533
Martin Sebor <msebor at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |DUPLICATE
Status|UNCONFIRMED |RESOLVED
Keywords| |diagnostic
Last reconfirmed| |2020-6-4
CC| |msebor at gcc dot gnu.org
--- Comment #1 from Martin Sebor <msebor at gcc dot gnu.org> ---
Confirmed as a likely duplicate of pr95353. I don't see the warnings with the
patch I posted for it yesterday
(https://gcc.gnu.org/pipermail/gcc-patches/2020-June/547124.html).
*** This bug has been marked as a duplicate of bug 95353 ***
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-06-04 16:18 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-04 12:47 [Bug lto/95533] New: Spurious(?) warning "writing 2 bytes into a region of size 0" with -O(2|3) -fwhole-program -flto dominiq at lps dot ens.fr
2020-06-04 16:18 ` [Bug lto/95533] " msebor at gcc dot gnu.org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).