mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2024-11-23 07:57:38 +01:00
Drop include of <ia64intrin.h>.
(unw_flush_cache): Replace __sync_fetch_and_add() with fetch_and_add1(). (Logical change 1.123)
This commit is contained in:
parent
9a2388db17
commit
a0b454581a
1 changed files with 2 additions and 6 deletions
|
@ -25,10 +25,6 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||||
|
|
||||||
#include "unwind_i.h"
|
#include "unwind_i.h"
|
||||||
|
|
||||||
#ifdef HAVE_IA64INTRIN_H
|
|
||||||
# include <ia64intrin.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
void
|
void
|
||||||
unw_flush_cache (unw_addr_space_t as, unw_word_t lo, unw_word_t hi)
|
unw_flush_cache (unw_addr_space_t as, unw_word_t lo, unw_word_t hi)
|
||||||
{
|
{
|
||||||
|
@ -40,8 +36,8 @@ unw_flush_cache (unw_addr_space_t as, unw_word_t lo, unw_word_t hi)
|
||||||
unw_flush_cache() is allowed to flush more than the requested
|
unw_flush_cache() is allowed to flush more than the requested
|
||||||
range. */
|
range. */
|
||||||
|
|
||||||
#ifdef HAVE_IA64INTRIN_H
|
#ifdef HAVE_FETCH_AND_ADD1
|
||||||
__sync_fetch_and_add(&as->cache_generation, 1);
|
fetch_and_add1(&as->cache_generation);
|
||||||
#else
|
#else
|
||||||
# warning unw_flush_cache(): need a way to atomically increment an integer.
|
# warning unw_flush_cache(): need a way to atomically increment an integer.
|
||||||
++as->cache_generation;
|
++as->cache_generation;
|
||||||
|
|
Loading…
Reference in a new issue