This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug string/19261] test-string.h questionable pointer arithmetic


https://sourceware.org/bugzilla/show_bug.cgi?id=19261

--- Comment #2 from Florian Weimer <fweimer at redhat dot com> ---
(In reply to Jakub Jelinek from comment #1)
> Bet you should just
>   extern impl_t *stop;
>   __asm ("" : "=g" (stop) : "0" (__stop_impls));
> and use stop instead of __stop_impls or something similar to hide it from
> the optimizers.

I was planning to compute the difference in uintptr_t.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]