public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "pinskia at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug lto/56532] valgrind errors with -flto
Date: Sun, 02 Jan 2022 04:30:46 +0000	[thread overview]
Message-ID: <bug-56532-4-0zcbC3dKEz@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-56532-4@http.gcc.gnu.org/bugzilla/>

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56532

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
The only messages from valgrind I get these days are from IRA and LRA:
==15092== Command: ./cc1plus pr46984.C -O -fipa-cp -fno-early-inlining -flto
-quiet --param=ggc-min-expand=0 --param=ggc-min-heapsize=0 -ffat-lto-objects
==15092==
==15092== Conditional jump or move depends on uninitialised value(s)
==15092==    at 0x1526474: sparseset_bit_p(sparseset_def*, unsigned int)
(sparseset.h:146)
==15092==    by 0x1526F2A: mark_pseudo_regno_live(int) (ira-lives.c:326)
==15092==    by 0x15271D4: mark_pseudo_reg_live(rtx_def*, unsigned int)
(ira-lives.c:410)
==15092==    by 0x1527242: mark_ref_live(df_ref_d*) (ira-lives.c:424)
==15092==    by 0x1529ED2: process_bb_node_lives(ira_loop_tree_node*)
(ira-lives.c:1434)
==15092==    by 0x14FC954: ira_traverse_loop_tree(bool, ira_loop_tree_node*,
void (*)(ira_loop_tree_node*), void (*)(ira_loop_tree_node*))
(ira-build.c:1806)
==15092==    by 0x152AD38: ira_create_allocno_live_ranges() (ira-lives.c:1734)
==15092==    by 0x15012FE: ira_build() (ira-build.c:3433)
==15092==    by 0x14F6809: ira(_IO_FILE*) (ira.c:5752)
==15092==    by 0x14F71AC: (anonymous namespace)::pass_ira::execute(function*)
(ira.c:6075)
==15092==    by 0x168E8E5: execute_one_pass(opt_pass*) (passes.c:2637)
==15092==    by 0x168EC76: execute_pass_list_1(opt_pass*) (passes.c:2737)
==15092==  Uninitialised value was created by a heap allocation
==15092==    at 0x52B1B0F: malloc (in
/usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==15092==    by 0x30557BC: xmalloc (xmalloc.c:149)
==15092==    by 0x17C76C7: sparseset_alloc(unsigned int) (sparseset.c:33)
==15092==    by 0x152ACAC: ira_create_allocno_live_ranges() (ira-lives.c:1727)
==15092==    by 0x15012FE: ira_build() (ira-build.c:3433)
==15092==    by 0x14F6809: ira(_IO_FILE*) (ira.c:5752)
==15092==    by 0x14F71AC: (anonymous namespace)::pass_ira::execute(function*)
(ira.c:6075)
==15092==    by 0x168E8E5: execute_one_pass(opt_pass*) (passes.c:2637)
==15092==    by 0x168EC76: execute_pass_list_1(opt_pass*) (passes.c:2737)
==15092==    by 0x168ECA7: execute_pass_list_1(opt_pass*) (passes.c:2738)
==15092==    by 0x168ECFF: execute_pass_list(function*, opt_pass*)
(passes.c:2748)
==15092==    by 0x110B4A2: cgraph_node::expand() (cgraphunit.c:1834)

      reply	other threads:[~2022-01-02  4:30 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-05 10:39 [Bug lto/56532] New: " jakub at gcc dot gnu.org
2022-01-02  4:30 ` pinskia at gcc dot gnu.org [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-56532-4-0zcbC3dKEz@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).