From 3fad4d00acc3ccc59e4d028eb94d759e9ed4c55f Mon Sep 17 00:00:00 2001 From: DJ Delorie Date: Wed, 16 Jul 2014 22:24:58 -0400 Subject: [PATCH] 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 --- gcc/ChangeLog | 5 +++++ gcc/config/rx/rx.c | 12 +++++++----- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index be12f9f45c1..c938206a8c9 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2014-07-16 DJ Delorie + + * config/rx/rx.c (rx_option_override): Fix alignment values. + (rx_align_for_label): Likewise. + 2014-07-17 Hans-Peter Nilsson PR target/61737. 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 -- 2.30.2