]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* config/rx/rx.c (rx_option_override): Fix alignment values.
authordj <dj@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 17 Jul 2014 02:24:58 +0000 (02:24 +0000)
committerdj <dj@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 17 Jul 2014 02:24:58 +0000 (02:24 +0000)
(rx_align_for_label): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@212710 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/rx/rx.c

index be12f9f45c156586fc6637b51483603a25c5beae..c938206a8c988de4a56e528b5681ca3bb82666e2 100644 (file)
@@ -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.
index 3fc2847ac60cbf2e416df1b92a0ba7f1d7f3a3b5..d55616ed93b26d7707c14dabeae363992bb8d594 100644 (file)
@@ -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);
 }
 
 \f
@@ -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