https://bugs.kde.org/show_bug.cgi?id=492549

--- Comment #10 from Paul Floyd <pjfl...@wanadoo.fr> ---
With Fedora 40, GCC 14.2.1 and glibc 2.39 I still have no problem with tests2.

objdump --disassemble=main test2

gives me

0000000000401156 <main>:
  401156:       55                      push   %rbp
  401157:       48 89 e5                mov    %rsp,%rbp
  40115a:       48 83 ec 10             sub    $0x10,%rsp
  40115e:       66 c7 45 fe 68 00       movw   $0x68,-0x2(%rbp)
  401164:       48 8d 45 fe             lea    -0x2(%rbp),%rax
  401168:       ba 01 00 00 00          mov    $0x1,%edx
  40116d:       be 78 00 00 00          mov    $0x78,%esi
  401172:       48 89 c7                mov    %rax,%rdi
  401175:       e8 e6 fe ff ff          call   401060 <memchr@plt>
  40117a:       48 89 c6                mov    %rax,%rsi
  40117d:       bf 40 40 40 00          mov    $0x404040,%edi
  401182:       e8 b9 fe ff ff          call   401040 <_ZNSolsEPKv@plt>
  401187:       be 30 10 40 00          mov    $0x401030,%esi
  40118c:       48 89 c7                mov    %rax,%rdi
  40118f:       e8 bc fe ff ff          call   401050 <_ZNSolsEPFRSoS_E@plt>
  401194:       b8 00 00 00 00          mov    $0x0,%eax
  401199:       c9                      leave
  40119a:       c3                      ret

memchr is an ifunc and on my old system it's resolving to __memchr_sse2.

Can you tell which version your system is using? (I used GDB and step inst (si)
/ next inst (ni) until I reached the memchr implementation).

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to