OSDN Git Service

2009-08-05 David Daney <ddaney@caviumnetworks.com>
authordaney <daney@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 6 Aug 2009 05:24:25 +0000 (05:24 +0000)
committerdaney <daney@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 6 Aug 2009 05:24:25 +0000 (05:24 +0000)
commit46e2d1d4aa6118a294e27352bc4517c57c2c1ad3
tree410ada2da163b5b1fc35055380a2bd99d9f04c61
parent2d2b8e49e3ccb5644c8469dd37a923dda5807ee0
2009-08-05  David Daney  <ddaney@caviumnetworks.com>

* gcc/config/mips/sync.md (sync_compare_and_swap<mode>,
compare_and_swap_12, sync_add<mode>, sync_<optab>_12,
sync_old_<optab>_12, sync_new_<optab>_12, sync_nand_12,
sync_old_nand_12, sync_new_nand_12, sync_sub<mode>,
sync_old_add<mode>, sync_old_sub<mode>, sync_new_add<mode>,
sync_new_sub<mode>, sync_<optab><mode>, sync_old_<optab><mode>,
sync_new_<optab><mode>, sync_nand<mode>, sync_old_nand<mode>,
sync_new_nand<mode>, sync_lock_test_and_set<mode>,
test_and_set_12): Rewrite calls to mips_output_sync_loop.
* gcc/config/mips/mips-protos.h (mips_output_sync_loop): Make
the prototype declaration match the definition.
* gcc/config/mips/mips.c (mips_output_sync_loop):  Emit sync
instructions explicitly.  Add barrier_before and operands
parameters.
* gcc/config/mips/mips.h (MIPS_COMPARE_AND_SWAP,
MIPS_COMPARE_AND_SWAP_12, MIPS_SYNC_OP, MIPS_SYNC_OP_12,
MIPS_SYNC_OLD_OP_12, MIPS_SYNC_NEW_OP_12, MIPS_SYNC_OLD_OP,
MIPS_SYNC_NEW_OP, MIPS_SYNC_NAND, MIPS_SYNC_OLD_NAND,
MIPS_SYNC_NEW_NAND, MIPS_SYNC_EXCHANGE,
MIPS_SYNC_EXCHANGE_12): Remove sync instructions.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@150512 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/config/mips/mips-protos.h
gcc/config/mips/mips.c
gcc/config/mips/mips.h
gcc/config/mips/sync.md