aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/riscv/riscv.h
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/config/riscv/riscv.h')
-rw-r--r--gcc/config/riscv/riscv.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/gcc/config/riscv/riscv.h b/gcc/config/riscv/riscv.h
index e53555e..a802a3f 100644
--- a/gcc/config/riscv/riscv.h
+++ b/gcc/config/riscv/riscv.h
@@ -615,7 +615,12 @@ typedef struct {
#define MOVE_MAX UNITS_PER_WORD
#define MAX_MOVE_MAX 8
-#define SLOW_BYTE_ACCESS 0
+/* The SPARC port says:
+ Nonzero if access to memory by bytes is slow and undesirable.
+ For RISC chips, it means that access to memory by bytes is no
+ better than access by words when possible, so grab a whole word
+ and maybe make use of that. */
+#define SLOW_BYTE_ACCESS 1
#define SHIFT_COUNT_TRUNCATED 1