public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/96597] New: valgrind error in do_hoist_insertion during O3 build
@ 2020-08-13 7:18 dcb314 at hotmail dot com
2020-08-13 7:47 ` [Bug c/96597] " marxin at gcc dot gnu.org
` (12 more replies)
0 siblings, 13 replies; 14+ messages in thread
From: dcb314 at hotmail dot com @ 2020-08-13 7:18 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96597
Bug ID: 96597
Summary: valgrind error in do_hoist_insertion during O3 build
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: dcb314 at hotmail dot com
Target Milestone: ---
==62146== Conditional jump or move depends on uninitialised value(s)
==62146== at 0xD2A8FD: do_hoist_insertion (tree-ssa-pre.c:3581)
==62146== by 0xD2A8FD: insert (tree-ssa-pre.c:3685)
==62146== by 0xD2A8FD: (anonymous namespace)::pass_pre::execute(function*)
(tree-ssa-pre.c:4235)
tree-ssa-pre.c:3581 is
&& PRE_EXPR_REFERENCE (expr)->punned
Configure lines are
../trunk.git/configure --prefix=/home/dcb/gcc/results.20200812.valgrind \
--disable-bootstrap \
--disable-multilib \
--disable-werror \
--enable-checking=valgrind \
--enable-languages=c,c++,fortran
sed 's/-O2/-O3/' < Makefile > Makefile.tmp
mv Makefile.tmp Makefile
valgrind is version 3.16.0 and valgrind is configured as follows:
$ more ~/.valgrind*
::::::::::::::
/home/dcb32B/.valgrindrc
::::::::::::::
--suppressions=/home/dcb32B/.valgrind.supp
--expensive-definedness-checks=yes
::::::::::::::
/home/dcb32B/.valgrind.supp
::::::::::::::
{
bug1
Memcheck:Cond
fun:incorporate_penalties
}
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c/96597] valgrind error in do_hoist_insertion during O3 build
2020-08-13 7:18 [Bug c/96597] New: valgrind error in do_hoist_insertion during O3 build dcb314 at hotmail dot com
@ 2020-08-13 7:47 ` marxin at gcc dot gnu.org
2020-08-13 8:25 ` dcb314 at hotmail dot com
` (11 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: marxin at gcc dot gnu.org @ 2020-08-13 7:47 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96597
Martin Liška <marxin at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Ever confirmed|0 |1
Status|UNCONFIRMED |WAITING
Last reconfirmed| |2020-08-13
CC| |marxin at gcc dot gnu.org
--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
Can you please attached pre-processed source file?
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c/96597] valgrind error in do_hoist_insertion during O3 build
2020-08-13 7:18 [Bug c/96597] New: valgrind error in do_hoist_insertion during O3 build dcb314 at hotmail dot com
2020-08-13 7:47 ` [Bug c/96597] " marxin at gcc dot gnu.org
@ 2020-08-13 8:25 ` dcb314 at hotmail dot com
2020-08-13 8:40 ` dcb314 at hotmail dot com
` (10 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: dcb314 at hotmail dot com @ 2020-08-13 8:25 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96597
--- Comment #2 from David Binderman <dcb314 at hotmail dot com> ---
Created attachment 49055
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49055&action=edit
gzipped C source code
This attached file is preprocessed from libgcc/libgcov-driver.c.
This line is required to compile it:
/home/dcb/gcc/working/./gcc/xgcc -B/home/dcb/gcc/working/./gcc/
-B/home/dcb/gcc/results.20200812.valgrind/x86_64-pc-linux-gnu/bin/
-B/home/dcb/gcc/results.20200812.valgrind/x86_64-pc-linux-gnu/lib/ -isystem
/home/dcb/gcc/results.20200812.valgrind/x86_64-pc-linux-gnu/include -isystem
/home/dcb/gcc/results.20200812.valgrind/x86_64-pc-linux-gnu/sys-include -g
-O3 -O2 -g -O3 -DIN_GCC -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual
-Wno-error=format-diag -Wstrict-prototypes -Wmissing-prototypes
-Wno-error=format-diag -Wold-style-definition -isystem ./include -fpic
-mlong-double-80 -DUSE_ELF_SYMVER -fcf-protection -mshstk -g -DIN_LIBGCC2
-fbuilding-libgcc -fno-stack-protector -fpic -mlong-double-80
-DUSE_ELF_SYMVER -fcf-protection -mshstk -I. -I. -I../.././gcc
-I../../../trunk.git/libgcc -I../../../trunk.git/libgcc/.
-I../../../trunk.git/libgcc/../gcc -I../../../trunk.git/libgcc/../include
-I../../../trunk.git/libgcc/config/libbid -DENABLE_DECIMAL_BID_FORMAT
-DHAVE_CC_TLS -DUSE_TLS -MT _gcov.o -MD -MP -MF _gcov.dep -DL_gcov -c
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c/96597] valgrind error in do_hoist_insertion during O3 build
2020-08-13 7:18 [Bug c/96597] New: valgrind error in do_hoist_insertion during O3 build dcb314 at hotmail dot com
2020-08-13 7:47 ` [Bug c/96597] " marxin at gcc dot gnu.org
2020-08-13 8:25 ` dcb314 at hotmail dot com
@ 2020-08-13 8:40 ` dcb314 at hotmail dot com
2020-08-13 8:43 ` dcb314 at hotmail dot com
` (9 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: dcb314 at hotmail dot com @ 2020-08-13 8:40 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96597
--- Comment #3 from David Binderman <dcb314 at hotmail dot com> ---
Reduced command line:
/home/dcb/gcc/working/./gcc/xgcc -B/home/dcb/gcc/working/./gcc/ -O2 -c
Interestingly, -O3 not required.
I'll have a look at previous versions of gcc then have a go
at reducing the code.
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c/96597] valgrind error in do_hoist_insertion during O3 build
2020-08-13 7:18 [Bug c/96597] New: valgrind error in do_hoist_insertion during O3 build dcb314 at hotmail dot com
` (2 preceding siblings ...)
2020-08-13 8:40 ` dcb314 at hotmail dot com
@ 2020-08-13 8:43 ` dcb314 at hotmail dot com
2020-08-13 9:00 ` marxin at gcc dot gnu.org
` (8 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: dcb314 at hotmail dot com @ 2020-08-13 8:43 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96597
--- Comment #4 from David Binderman <dcb314 at hotmail dot com> ---
Code seems ok on date 20200724, so someone has broken something recently.
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c/96597] valgrind error in do_hoist_insertion during O3 build
2020-08-13 7:18 [Bug c/96597] New: valgrind error in do_hoist_insertion during O3 build dcb314 at hotmail dot com
` (3 preceding siblings ...)
2020-08-13 8:43 ` dcb314 at hotmail dot com
@ 2020-08-13 9:00 ` marxin at gcc dot gnu.org
2020-08-13 10:34 ` dcb314 at hotmail dot com
` (7 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: marxin at gcc dot gnu.org @ 2020-08-13 9:00 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96597
Martin Liška <marxin at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |NEW
--- Comment #5 from Martin Liška <marxin at gcc dot gnu.org> ---
Likely introduced with r11-2545-g1af5cdd77985daf76130f527deac425c43df9f49.
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c/96597] valgrind error in do_hoist_insertion during O3 build
2020-08-13 7:18 [Bug c/96597] New: valgrind error in do_hoist_insertion during O3 build dcb314 at hotmail dot com
` (4 preceding siblings ...)
2020-08-13 9:00 ` marxin at gcc dot gnu.org
@ 2020-08-13 10:34 ` dcb314 at hotmail dot com
2020-08-13 10:36 ` marxin at gcc dot gnu.org
` (6 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: dcb314 at hotmail dot com @ 2020-08-13 10:34 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96597
--- Comment #6 from David Binderman <dcb314 at hotmail dot com> ---
Created attachment 49056
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49056&action=edit
C source code
Reduced code attached.
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c/96597] valgrind error in do_hoist_insertion during O3 build
2020-08-13 7:18 [Bug c/96597] New: valgrind error in do_hoist_insertion during O3 build dcb314 at hotmail dot com
` (5 preceding siblings ...)
2020-08-13 10:34 ` dcb314 at hotmail dot com
@ 2020-08-13 10:36 ` marxin at gcc dot gnu.org
2020-08-13 11:02 ` marxin at gcc dot gnu.org
` (5 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: marxin at gcc dot gnu.org @ 2020-08-13 10:36 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96597
Martin Liška <marxin at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Assignee|unassigned at gcc dot gnu.org |marxin at gcc dot gnu.org
--- Comment #7 from Martin Liška <marxin at gcc dot gnu.org> ---
I'm working on that..
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c/96597] valgrind error in do_hoist_insertion during O3 build
2020-08-13 7:18 [Bug c/96597] New: valgrind error in do_hoist_insertion during O3 build dcb314 at hotmail dot com
` (6 preceding siblings ...)
2020-08-13 10:36 ` marxin at gcc dot gnu.org
@ 2020-08-13 11:02 ` marxin at gcc dot gnu.org
2020-08-17 12:34 ` [Bug tree-optimization/96597] " marxin at gcc dot gnu.org
` (4 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: marxin at gcc dot gnu.org @ 2020-08-13 11:02 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96597
Martin Liška <marxin at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
--- Comment #8 from Martin Liška <marxin at gcc dot gnu.org> ---
I've got a fix for it.
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug tree-optimization/96597] valgrind error in do_hoist_insertion during O3 build
2020-08-13 7:18 [Bug c/96597] New: valgrind error in do_hoist_insertion during O3 build dcb314 at hotmail dot com
` (7 preceding siblings ...)
2020-08-13 11:02 ` marxin at gcc dot gnu.org
@ 2020-08-17 12:34 ` marxin at gcc dot gnu.org
2020-08-24 7:30 ` cvs-commit at gcc dot gnu.org
` (3 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: marxin at gcc dot gnu.org @ 2020-08-17 12:34 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96597
Martin Liška <marxin at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |11.0
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug tree-optimization/96597] valgrind error in do_hoist_insertion during O3 build
2020-08-13 7:18 [Bug c/96597] New: valgrind error in do_hoist_insertion during O3 build dcb314 at hotmail dot com
` (8 preceding siblings ...)
2020-08-17 12:34 ` [Bug tree-optimization/96597] " marxin at gcc dot gnu.org
@ 2020-08-24 7:30 ` cvs-commit at gcc dot gnu.org
2020-08-24 7:36 ` marxin at gcc dot gnu.org
` (2 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2020-08-24 7:30 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96597
--- Comment #9 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Martin Liska <marxin@gcc.gnu.org>:
https://gcc.gnu.org/g:adc646b10c7168c3c95373ee9321e3760fc4c5f1
commit r11-2816-gadc646b10c7168c3c95373ee9321e3760fc4c5f1
Author: Martin Liska <mliska@suse.cz>
Date: Thu Aug 13 13:05:12 2020 +0200
Add missing vn_reference_t::punned initialization
gcc/ChangeLog:
PR tree-optimization/96597
* tree-ssa-sccvn.c (vn_reference_lookup_call): Add missing
initialization of ::punned.
(vn_reference_insert): Use consistently false instead of 0.
(vn_reference_insert_pieces): Likewise.
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug tree-optimization/96597] valgrind error in do_hoist_insertion during O3 build
2020-08-13 7:18 [Bug c/96597] New: valgrind error in do_hoist_insertion during O3 build dcb314 at hotmail dot com
` (9 preceding siblings ...)
2020-08-24 7:30 ` cvs-commit at gcc dot gnu.org
@ 2020-08-24 7:36 ` marxin at gcc dot gnu.org
2020-09-01 9:26 ` cvs-commit at gcc dot gnu.org
2021-05-18 7:05 ` cvs-commit at gcc dot gnu.org
12 siblings, 0 replies; 14+ messages in thread
From: marxin at gcc dot gnu.org @ 2020-08-24 7:36 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96597
Martin Liška <marxin at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
Status|ASSIGNED |RESOLVED
--- Comment #10 from Martin Liška <marxin at gcc dot gnu.org> ---
Fixed.
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug tree-optimization/96597] valgrind error in do_hoist_insertion during O3 build
2020-08-13 7:18 [Bug c/96597] New: valgrind error in do_hoist_insertion during O3 build dcb314 at hotmail dot com
` (10 preceding siblings ...)
2020-08-24 7:36 ` marxin at gcc dot gnu.org
@ 2020-09-01 9:26 ` cvs-commit at gcc dot gnu.org
2021-05-18 7:05 ` cvs-commit at gcc dot gnu.org
12 siblings, 0 replies; 14+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2020-09-01 9:26 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96597
--- Comment #11 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-10 branch has been updated by Richard Biener
<rguenth@gcc.gnu.org>:
https://gcc.gnu.org/g:c863dec102e0a636b99100639f523d084aafce4e
commit r10-8696-gc863dec102e0a636b99100639f523d084aafce4e
Author: Martin Liska <mliska@suse.cz>
Date: Thu Aug 13 13:05:12 2020 +0200
Add missing vn_reference_t::punned initialization
gcc/ChangeLog:
PR tree-optimization/96597
* tree-ssa-sccvn.c (vn_reference_lookup_call): Add missing
initialization of ::punned.
(vn_reference_insert): Use consistently false instead of 0.
(vn_reference_insert_pieces): Likewise.
(cherry picked from commit adc646b10c7168c3c95373ee9321e3760fc4c5f1)
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug tree-optimization/96597] valgrind error in do_hoist_insertion during O3 build
2020-08-13 7:18 [Bug c/96597] New: valgrind error in do_hoist_insertion during O3 build dcb314 at hotmail dot com
` (11 preceding siblings ...)
2020-09-01 9:26 ` cvs-commit at gcc dot gnu.org
@ 2021-05-18 7:05 ` cvs-commit at gcc dot gnu.org
12 siblings, 0 replies; 14+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-05-18 7:05 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96597
--- Comment #12 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-9 branch has been updated by Richard Biener
<rguenth@gcc.gnu.org>:
https://gcc.gnu.org/g:f5f932214bf73bbe3334d67a07c632e4fca351f4
commit r9-9538-gf5f932214bf73bbe3334d67a07c632e4fca351f4
Author: Martin Liska <mliska@suse.cz>
Date: Thu Aug 13 13:05:12 2020 +0200
Add missing vn_reference_t::punned initialization
gcc/ChangeLog:
PR tree-optimization/96597
* tree-ssa-sccvn.c (vn_reference_lookup_call): Add missing
initialization of ::punned.
(vn_reference_insert): Use consistently false instead of 0.
(vn_reference_insert_pieces): Likewise.
^ permalink raw reply [flat|nested] 14+ messages in thread
end of thread, other threads:[~2021-05-18 7:05 UTC | newest]
Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-13 7:18 [Bug c/96597] New: valgrind error in do_hoist_insertion during O3 build dcb314 at hotmail dot com
2020-08-13 7:47 ` [Bug c/96597] " marxin at gcc dot gnu.org
2020-08-13 8:25 ` dcb314 at hotmail dot com
2020-08-13 8:40 ` dcb314 at hotmail dot com
2020-08-13 8:43 ` dcb314 at hotmail dot com
2020-08-13 9:00 ` marxin at gcc dot gnu.org
2020-08-13 10:34 ` dcb314 at hotmail dot com
2020-08-13 10:36 ` marxin at gcc dot gnu.org
2020-08-13 11:02 ` marxin at gcc dot gnu.org
2020-08-17 12:34 ` [Bug tree-optimization/96597] " marxin at gcc dot gnu.org
2020-08-24 7:30 ` cvs-commit at gcc dot gnu.org
2020-08-24 7:36 ` marxin at gcc dot gnu.org
2020-09-01 9:26 ` cvs-commit at gcc dot gnu.org
2021-05-18 7:05 ` cvs-commit 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).