add missing cc clobbers to intel atomic inlines
On x86, the inc/dec/add/or/and instructions set [er]flags according to the result of the calculation. This means that the atomic_* static inlines need to specify the "cc" clobber register otherwise we risk the compiler not realizing that the flags have changed and suble bugs appearing.
Updated by Electric Monk over 5 years ago
- Status changed from New to Closed
- % Done changed from 50 to 100
commit 6a9ca708361200b105f7a016216808e6058d17cb Author: Josef 'Jeff' Sipek <firstname.lastname@example.org> Date: 2015-09-29T17:07:49.000Z 6263 add missing cc clobbers to intel atomic inlines Reviewed by: Richard Lowe <email@example.com> Reviewed by: Hans Rosenfeld <firstname.lastname@example.org> Approved by: Dan McDonald <email@example.com>