]> git.ipfire.org Git - thirdparty/gcc.git/commit
xtensa-config.h (XCHAL_HAVE_THREADPTR): New.
authorBob Wilson <bob.wilson@acm.org>
Wed, 18 Jul 2007 18:51:21 +0000 (18:51 +0000)
committerBob Wilson <bwilson@gcc.gnu.org>
Wed, 18 Jul 2007 18:51:21 +0000 (18:51 +0000)
commit2a48b790b26895fd7fb56c9ce1d64f083dd278bb
tree491a671d2873d5b092054d056294c21999ed9248
parent8a91c45bbfb3d5c99560ab89dc1dc55a1add8719
xtensa-config.h (XCHAL_HAVE_THREADPTR): New.

include/
* xtensa-config.h (XCHAL_HAVE_THREADPTR): New.
(XCHAL_HAVE_RELEASE_SYNC, XCHAL_HAVE_S32C1I): New.
gcc/
* config/xtensa/xtensa.c (xtensa_expand_mask_and_shift): New.
(struct alignment_context, init_alignment_context): New.
(xtensa_expand_compare_and_swap, xtensa_expand_atomic): New.
* config/xtensa/xtensa.h (XCHAL_HAVE_RELEASE_SYNC): Add default.
(XCHAL_HAVE_S32C1I): Likewise.
(TARGET_RELEASE_SYNC, TARGET_S32C1I): New.
* config/xtensa/xtensa.md (UNSPECV_MEMW): New constant.
(UNSPECV_S32RI, UNSPECV_S32C1I): Likewise.
(ATOMIC, HQI): New macros.
(memory_barrier, *memory_barrier): New.
(sync_lock_releasesi): New.
(sync_compare_and_swapsi, sync_compare_and_swap<mode>): New.
(sync_lock_test_and_set<mode>): New.
(sync_<atomic><mode>): New.
(sync_old_<atomic><mode>, sync_new_<atomic><mode>): New.
* config/xtensa/xtensa-protos.h (xtensa_expand_compare_and_swap): New.
(xtensa_expand_atomic): New.
gcc/testsuite/
* lib/target-supports.exp (check_effective_target_sync_int_long):
Enable for xtensa.
(check_effective_target_sync_char_short): Likewise.

From-SVN: r126728
gcc/ChangeLog
gcc/config/xtensa/xtensa-protos.h
gcc/config/xtensa/xtensa.c
gcc/config/xtensa/xtensa.h
gcc/config/xtensa/xtensa.md
gcc/testsuite/ChangeLog
gcc/testsuite/lib/target-supports.exp
include/ChangeLog
include/xtensa-config.h