lto/96591 - walk VECTOR_CST elements in walk_tree
authorRichard Biener <rguenther@suse.de>
Mon, 8 Feb 2021 08:52:56 +0000 (09:52 +0100)
committerRichard Biener <rguenther@suse.de>
Mon, 8 Feb 2021 12:05:44 +0000 (13:05 +0100)
commitd4536e431316b4568e236afd7a6017e5efd1b0a1
treed441b8a714952a95d33657cae42b7d11b7e01f56
parent0d701e3eb89870237669ef7bf41394d90c35ae70
lto/96591 - walk VECTOR_CST elements in walk_tree

This implements walking of VECTOR_CST elements in walk_tree, mimicing
the walk of COMPLEX_CST elements.  Without this free-lang-data fails
to see some types in case they are only refered to via tree constants
used only as VECTOR_CST elements.

2021-02-08  Richard Biener  <rguenther@suse.de>

PR lto/96591
* tree.c (walk_tree_1): Walk VECTOR_CST elements.

* g++.dg/lto/pr96591_0.C: New testcase.
gcc/testsuite/g++.dg/lto/pr96591_0.C [new file with mode: 0644]
gcc/tree.c