diff options
author | DJ Delorie <dj@redhat.com> | 2014-07-16 22:24:58 -0400 |
---|---|---|
committer | DJ Delorie <dj@gcc.gnu.org> | 2014-07-16 22:24:58 -0400 |
commit | 3fad4d00acc3ccc59e4d028eb94d759e9ed4c55f (patch) | |
tree | 687668a0fd583adc46b2a959b4ecda92ef7fd542 /gcc | |
parent | e832590c9104a378c4e79f07e11ddf7bb3ba76d7 (diff) | |
download | gcc-3fad4d00acc3ccc59e4d028eb94d759e9ed4c55f.zip gcc-3fad4d00acc3ccc59e4d028eb94d759e9ed4c55f.tar.gz gcc-3fad4d00acc3ccc59e4d028eb94d759e9ed4c55f.tar.bz2 |
rx.c (rx_option_override): Fix alignment values.
* config/rx/rx.c (rx_option_override): Fix alignment values.
(rx_align_for_label): Likewise.
From-SVN: r212710
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/config/rx/rx.c | 12 |
2 files changed, 12 insertions, 5 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index be12f9f..c938206 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2014-07-16 DJ Delorie <dj@redhat.com> + + * config/rx/rx.c (rx_option_override): Fix alignment values. + (rx_align_for_label): Likewise. + 2014-07-17 Hans-Peter Nilsson <hp@axis.com> PR target/61737. diff --git a/gcc/config/rx/rx.c b/gcc/config/rx/rx.c index 3fc2847..d55616e 100644 --- a/gcc/config/rx/rx.c +++ b/gcc/config/rx/rx.c @@ -2787,12 +2787,13 @@ rx_option_override (void) rx_override_options_after_change (); + /* These values are bytes, not log. */ if (align_jumps == 0 && ! optimize_size) - align_jumps = ((rx_cpu_type == RX100 || rx_cpu_type == RX200) ? 2 : 3); + align_jumps = ((rx_cpu_type == RX100 || rx_cpu_type == RX200) ? 4 : 8); if (align_loops == 0 && ! optimize_size) - align_loops = ((rx_cpu_type == RX100 || rx_cpu_type == RX200) ? 2 : 3); + align_loops = ((rx_cpu_type == RX100 || rx_cpu_type == RX200) ? 4 : 8); if (align_labels == 0 && ! optimize_size) - align_labels = ((rx_cpu_type == RX100 || rx_cpu_type == RX200) ? 2 : 3); + align_labels = ((rx_cpu_type == RX100 || rx_cpu_type == RX200) ? 4 : 8); } @@ -3199,9 +3200,10 @@ rx_align_for_label (rtx lab, int uses_threshold) if (optimize_size) return 0; + /* These values are log, not bytes. */ if (rx_cpu_type == RX100 || rx_cpu_type == RX200) - return 2; - return 2; + return 2; /* 4 bytes */ + return 3; /* 8 bytes */ } static int |