[Bug c/68908] inefficient code for _Atomic operations

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Dec 17 16:18:00 GMT 2015


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

--- Comment #11 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
IMHO you should use the current code for _Bool atomic increments/decrements,
_Bool has just doesn't behave like an integer.
Only normal integers (with the precision the same as mode's precision, properly
aligned; perhaps enums too) and pointer types should be optimized.


More information about the Gcc-bugs mailing list