public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug other/101984] New: [12 Regression] gimple-ssa-warn-access memory leak
@ 2021-08-19 16:20 dje at gcc dot gnu.org
  2021-08-19 16:21 ` [Bug other/101984] " dje at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: dje at gcc dot gnu.org @ 2021-08-19 16:20 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 101984
           Summary: [12 Regression] gimple-ssa-warn-access memory leak
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Keywords: GC
          Severity: normal
          Priority: P3
         Component: other
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dje at gcc dot gnu.org
  Target Milestone: ---

As part of the warning code refactoring, alloc_max_size() was moved from
calls.c to gimple-ssa-warn-access.cc.  The alloc_object_size_limit variable was
removed and the Tree generated by build_int_cst call in the function is not
managed by the GC machinery, leaking memory.

A patch was posted, but gimple-ssa-warn-access.cc is the first file with file
extension ".cc" to use the GC machinery, so the GCC Makefile machinery is not
prepared to automatically generate the GTY header.  (gimple-isel.cc is listed
but does not use GTY.)

https://gcc.gnu.org/pipermail/gcc-patches/2021-August/577723.html

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2021-08-20  7:52 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-19 16:20 [Bug other/101984] New: [12 Regression] gimple-ssa-warn-access memory leak dje at gcc dot gnu.org
2021-08-19 16:21 ` [Bug other/101984] " dje at gcc dot gnu.org
2021-08-19 17:55 ` msebor at gcc dot gnu.org
2021-08-19 18:43 ` cvs-commit at gcc dot gnu.org
2021-08-19 18:45 ` msebor at gcc dot gnu.org
2021-08-20  7:52 ` rguenth 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).