https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107353
--- Comment #14 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Alexander Monakov <amona...@gcc.gnu.org>: https://gcc.gnu.org/g:82e629c26647313be406c41a01e6868cfad0f289 commit r13-3509-g82e629c26647313be406c41a01e6868cfad0f289 Author: Alexander Monakov <amona...@ispras.ru> Date: Wed Oct 26 16:37:34 2022 +0300 ipa-visibility: remove assert in TLS optimization [PR107353] When upgrading TLS access model based on optimized symbol visibility status, we attempted to assert that recomputing the model would not weaken it. It turns out that C, C++, and Fortran front-ends all can (unintentionally) assign a stronger model than what can be derived from the declaration. Let's act conservatively instead of asserting, at least as long as such pre-existing issues remain. gcc/ChangeLog: PR other/107353 * ipa-visibility.cc (function_and_variable_visibility): Conditionally upgrade TLS model instead of asserting.