Reset front end trees before they make it into the middle end (PR middle-end/97172).
authorMartin Sebor <msebor@redhat.com>
Mon, 1 Feb 2021 16:08:21 +0000 (09:08 -0700)
committerMartin Sebor <msebor@redhat.com>
Mon, 1 Feb 2021 16:09:52 +0000 (09:09 -0700)
commit0718336a5284dd5b40fd6691a94d6be93a80f279
treeb873cfd81012cb3152afe090d344c4cb7f9aa89b
parent90c9b2c17688f7be434415e90c5a655a6ecfaa9e
Reset front end trees before they make it into the middle end (PR middle-end/97172).

gcc/ChangeLog:

PR middle-end/97172
* attribs.c (attr_access::free_lang_data): Define new function.
* attribs.h (attr_access::free_lang_data): Declare new function.

gcc/c/ChangeLog:

PR middle-end/97172
* c-decl.c (free_attr_access_data): New function.
(c_parse_final_cleanups): Call free_attr_access_data.

gcc/testsuite/ChangeLog:

PR middle-end/97172
* gcc.dg/pr97172.c: New test.
gcc/attribs.c
gcc/attribs.h
gcc/c/c-decl.c
gcc/testsuite/gcc.dg/pr97172.c [new file with mode: 0644]