diff options
author | Hans-Peter Nilsson <hp@axis.com> | 2012-06-01 05:49:16 +0000 |
---|---|---|
committer | Hans-Peter Nilsson <hp@gcc.gnu.org> | 2012-06-01 05:49:16 +0000 |
commit | 21ed44440fc2b6148425eb156452507629018b18 (patch) | |
tree | 3748c4b19fefbeba9a6320eb38c3640e4c85681f /gcc/testsuite | |
parent | 183d6a7e728f6c53827ac48060e7a4fb0529b09f (diff) | |
download | gcc-21ed44440fc2b6148425eb156452507629018b18.tar.gz |
Add CRIS atomic patterns for 1, 2, and 4 bytes.
* config/cris/cris.c (cris_emit_trap_for_misalignment): New function.
* config/cris/cris-protos.h: Declare it.
* config/cris/cris.h [!TARGET_DEFAULT, TARGET_CPU_DEFAULT == 32]
(TARGET_DEFAULT): Add alignment by 32.
[!TARGET_DEFAULT, TARGET_CPU_DEFAULT == 10] (TARGET_DEFAULT): New
case, as TARGET_CPU_DEFAULT == 0 but with alignment as for
TARGET_CPU_DEFAULT == 32.
(TARGET_TRAP_UNALIGNED_ATOMIC): New macro.
* config/cris/cris.md: Include sync.md. Avoid allocating specific
numbers by replacing the define_constants for all UNSPECs with the
equivalent define_c_enum construct.
* config/cris/cris.opt (mtrap-unaligned-atomic): New option.
* config/cris/sync.md: New file.
From-SVN: r188096
Diffstat (limited to 'gcc/testsuite')
0 files changed, 0 insertions, 0 deletions