diff options
author | Bob Wilson <bob.wilson@acm.org> | 2007-07-18 18:51:21 +0000 |
---|---|---|
committer | Bob Wilson <bwilson@gcc.gnu.org> | 2007-07-18 18:51:21 +0000 |
commit | 2a48b790b26895fd7fb56c9ce1d64f083dd278bb (patch) | |
tree | 491a671d2873d5b092054d056294c21999ed9248 /include | |
parent | 8a91c45bbfb3d5c99560ab89dc1dc55a1add8719 (diff) | |
download | gcc-2a48b790b26895fd7fb56c9ce1d64f083dd278bb.tar.gz |
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
Diffstat (limited to 'include')
-rw-r--r-- | include/ChangeLog | 5 | ||||
-rw-r--r-- | include/xtensa-config.h | 11 |
2 files changed, 15 insertions, 1 deletions
diff --git a/include/ChangeLog b/include/ChangeLog index 6d54a48880a..fe03cb2fd77 100644 --- a/include/ChangeLog +++ b/include/ChangeLog @@ -1,3 +1,8 @@ +2007-07-18 Bob Wilson <bob.wilson@acm.org> + + * xtensa-config.h (XCHAL_HAVE_THREADPTR): New. + (XCHAL_HAVE_RELEASE_SYNC, XCHAL_HAVE_S32C1I): New. + 2007-07-17 Nick Clifton <nickc@redhat.com> * COPYING3: New file. Contains version 3 of the GNU General diff --git a/include/xtensa-config.h b/include/xtensa-config.h index 36f9719fe33..2aca5feda05 100644 --- a/include/xtensa-config.h +++ b/include/xtensa-config.h @@ -1,5 +1,5 @@ /* Xtensa configuration settings. - Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006 + Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007 Free Software Foundation, Inc. Contributed by Bob Wilson (bwilson@tensilica.com) at Tensilica. @@ -73,6 +73,15 @@ #undef XCHAL_HAVE_LOOPS #define XCHAL_HAVE_LOOPS 1 +#undef XCHAL_HAVE_THREADPTR +#define XCHAL_HAVE_THREADPTR 1 + +#undef XCHAL_HAVE_RELEASE_SYNC +#define XCHAL_HAVE_RELEASE_SYNC 0 + +#undef XCHAL_HAVE_S32C1I +#define XCHAL_HAVE_S32C1I 0 + #undef XCHAL_HAVE_BOOLEANS #define XCHAL_HAVE_BOOLEANS 0 |