This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC 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 c/68908] inefficient code for _Atomic operations


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.

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