https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121352

            Bug ID: 121352
           Summary: tls_model attribute documentation needs update
           Product: gcc
           Version: 13.4.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
          Assignee: unassigned at gcc dot gnu.org
          Reporter: hjl.tools at gmail dot com
  Target Milestone: ---

GCC manual has

‘tls_model ("TLS_MODEL")’
     The ‘tls_model’ attribute sets thread-local storage model (*note
     Thread-Local::) of a particular ‘__thread’ variable, overriding
     ‘-ftls-model=’ command-line switch on a per-variable basis.  The
     TLS_MODEL argument should be one of ‘global-dynamic’,
     ‘local-dynamic’, ‘initial-exec’ or ‘local-exec’.

But after r13-3416-g1d561e1851c466:

ipa-visibility: Optimize TLS access [PR99619]
Fix PR99619, which asks to optimize TLS model based on visibility.
The fix is implemented as an IPA optimization: this allows to take
optimized visibility status into account (as well as avoid modifying
all language frontends).

GCC can optimize the TLS access model.  tls_model attribute specifies
the weakest access model.

Reply via email to