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

            Bug ID: 117909
           Summary: gcc fails to save registers with
                    no_caller_saved_registers
           Product: gcc
           Version: 14.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: izaberina at gmail dot com
  Target Milestone: ---

c version https://godbolt.org/z/z3v1W3njb
c++ version https://godbolt.org/z/T3cns6rPe

i need countbar to save rdi, and any registers used by __tls_get_addr

somehow the definition being above or below seems to affect the result

is this miscompiled or am i doing things wrong?

Reply via email to