https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91502
Andrew Pinski changed:
What|Removed |Added
Severity|normal |enhancement
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91502
Richard Biener changed:
What|Removed |Added
Status|UNCONFIRMED |NEW
Last reconfirmed|
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91502
--- Comment #1 from Ruslan Nikolaev ---
btw, the same problem for
#include
int func(_Atomic(long) *a)
{
return (atomic_fetch_sub(a, 1) <= 0);
}
In the previous case clang/llvm was just like gcc, i.e., unable to optimize; in
this case