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>
Tue, 17 Aug 2021 18:48:06 +0000 (19:48 +0100)
commit2d9da1c89778be1d6604cc1465b0dd50f241a352
tree5d5d82e51bf6f1d59c1668ebbc5844fe609239f0
parent743b8dd6fd757e997eb060d70fd4ae8e04fb56cd
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.
gcc/config/darwin.c