https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92029
--- Comment #5 from rguenther at suse dot de <rguenther at suse dot de> --- On Wed, 9 Oct 2019, jakub at gcc dot gnu.org wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92029 > > --- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> --- > Just a general comment, what we need to ensure is that the tables contain the > same variables in the same order between what we emit on the host and in LTO > for the offloading targets. It is fine if we are able to remove some variable > as unused before the LTO streaming, as long as we manage to update whatever > needs to be to ensure the tables are the same. After the streaming, we can't > remove anything mentioned in the tables. OK, so ideally we'd compute the table contents at the time we stream then, using IPA-REF info in case that is readily available.