https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104970
--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> --- I can't speak for Siddhesh, but at least the testcase coverage in r12-6480 only covered the access attribute. So perhaps the fix could be to just limit to that case if it is possible easily to differentiate that from the other cases. And certainly if it uses TYPE_SIZE_UNIT for something it needs to punt if it isn't a constant (or perhaps POLY_INT_CST), because the trees mentioned in there can't be reliably used during objsz1.