diff options
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/config/riscv/riscv.h | 7 |
2 files changed, 10 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ec8af50..285ac20 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2017-11-04 Andrew Waterman <andrew@sifive.com> + + * config/riscv/riscv.h (SLOW_BYTE_ACCESS): Change to 1. + 2017-11-04 Daniel Santos <daniel.santos@pobox.com> config/i386/i386.c (choose_basereg): Use optional scratch 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 |