]> git.ipfire.org Git - thirdparty/gcc.git/commit
Darwin: Reset section names table at the end of compile.
authorIain Sandoe <iain@sandoe.co.uk>
Fri, 13 Aug 2021 19:20:04 +0000 (20:20 +0100)
committerIain Sandoe <iain@sandoe.co.uk>
Thu, 14 Apr 2022 05:21:10 +0000 (06:21 +0100)
commita34305f0de9e784783253ae0735ed26533fe59a1
treeb869e45a4b2c0d259196893836170f3931ee60b6
parentb8870afdefd7a7f111bd76a80d3337bf623a991b
Darwin: Reset section names table at the end of compile.

For a single use (typical compile) this vector will be reclaimed
as GGC.  For JIT this is not sufficient since it does not reset
the pointer to NULL (and thus we think the the vector is already
allocated when a context is reused).

The clears the vector and sets the pointer to NULL at the end
of object output.

Signed-off-by: Iain Sandoe <iain@sandoe.co.uk>
gcc/ChangeLog:

* config/darwin.c (darwin_file_end): Reset and reclaim the
section names table at the end of compile.

(cherry picked from commit 2d9da1c89778be1d6604cc1465b0dd50f241a352)
gcc/config/darwin.c