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

--- Comment #4 from H.J. Lu <hjl.tools at gmail dot com> ---
A testcase without warning:

int __pthread_keys_0_0;
int ___pthread_key_delete(void)
{
  int result = 22;
  int __atg3_old = 0;
  if (__atomic_compare_exchange_n(&__pthread_keys_0_0, &__atg3_old,
                                  0, 0, 2, 0))
    result = 0;
  return result;
}

Reply via email to