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

            Bug ID: 122600
           Summary: pr120908 testcase ICEs with -O -fpic
                    -mforce-indirect-call
           Product: gcc
           Version: 14.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: aoliva at gcc dot gnu.org
  Target Milestone: ---

The TLS testcase from bug 120908, when compiled with -O -fpic
-mforce-indirect-call, fails to recognize the *tls_global_dynamic_64_<mode>
insn because ix86_tls_get_addr returns a symbolic call target address in a form
that constant_call_address_operand doesn't accept, and even if it did, the
_largepic variant of the insn, that could accept alternate forms, isn't enabled
unless -mcmodel=largepic.  There seem to be other circumstances in which
constant_call_address_operand can fail similarly.

Reply via email to