Minor bugfix, committed.

        * config/rx/rx.c (rx_option_override): Fix alignment values.
        (rx_align_for_label): Likewise.

Index: config/rx/rx.c
===================================================================
--- config/rx/rx.c      (revision 212709)
+++ config/rx/rx.c      (working copy)
@@ -2787,12 +2787,13 @@
 
   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 @@
 
   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

Reply via email to