diff options
author | dj <dj@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-07-17 02:24:58 +0000 |
---|---|---|
committer | dj <dj@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-07-17 02:24:58 +0000 |
commit | 5005fc53898b92435c6065c2f62a071ac71f2951 (patch) | |
tree | 687668a0fd583adc46b2a959b4ecda92ef7fd542 /gcc/config | |
parent | 589f229199657046526e763d8bb43e158d500e61 (diff) | |
download | gcc-5005fc53898b92435c6065c2f62a071ac71f2951.tar.gz |
* config/rx/rx.c (rx_option_override): Fix alignment values.
(rx_align_for_label): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@212710 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config')
-rw-r--r-- | gcc/config/rx/rx.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/gcc/config/rx/rx.c b/gcc/config/rx/rx.c index 3fc2847ac60..d55616ed93b 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 |