This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/68908] inefficient code for _Atomic operations
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 17 Dec 2015 16:18:49 +0000
- Subject: [Bug c/68908] inefficient code for _Atomic operations
- Auto-submitted: auto-generated
- References: <bug-68908-4 at http dot gcc dot gnu dot org/bugzilla/>
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.