This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[rx] fix some alignment constants


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]