debug/102507: ICE in btf_finalize when compiling with -gbtf
commitd6a87d96d7473cbd2404d5dcc7eef36a7f53b2b2
authorIndu Bhagat <indu.bhagat@oracle.com>
Wed, 29 Sep 2021 20:25:39 +0000 (29 13:25 -0700)
committerIndu Bhagat <indu.bhagat@oracle.com>
Wed, 29 Sep 2021 20:27:19 +0000 (29 13:27 -0700)
tree187a41df87b75408405c2ac6a1afb0f7b47a9d06
parentcd5448f6c534c0d386f6b561ab903ffd5d3884b2
debug/102507: ICE in btf_finalize when compiling with -gbtf

Fix the free up of btf_var_ids hash_map in btf_finalize ().

gcc/ChangeLog:

PR debug/102507
* btfout.c (GTY): Add GTY (()) albeit for cosmetic only purpose.
(btf_finalize): Empty the hash_map btf_var_ids.
gcc/btfout.c