sh.h (OVERRIDE_OPTIONS): align_functions is in bytes, not bits.
authorToshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
Mon, 9 Sep 2002 08:10:46 +0000 (08:10 +0000)
committerJoern Rennecke <amylaar@gcc.gnu.org>
Mon, 9 Sep 2002 08:10:46 +0000 (09:10 +0100)
2002-09-09  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
            J"orn Rennecke <joern.rennecke@superh.com>

* sh/sh.h (OVERRIDE_OPTIONS): align_functions is in bytes, not bits.

Co-Authored-By: J"orn Rennecke <joern.rennecke@superh.com>
From-SVN: r56968

gcc/ChangeLog
gcc/config/sh/sh.h

index 649a39d601549a5b9b180da81709f9c2670e5abe..57316bcb1f805fc62d7109c93d99287aec316c30 100644 (file)
@@ -1,3 +1,8 @@
+2002-09-09  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
+            J"orn Rennecke <joern.rennecke@superh.com>
+
+       * sh/sh.h (OVERRIDE_OPTIONS): align_functions is in bytes, not bits.
+
 2002-09-09  Alan Modra  <amodra@bigpond.net.au>
 
        * config/rs6000/rs6000.c (rs6000_binds_local_p): Return bool.
index 6f010864fc7eea4f7347fb9cf8d5cad02ca35860..b8dae37e34c94f84b1485d69d4e811b9e9f58497 100644 (file)
@@ -473,13 +473,13 @@ do {                                                                      \
      to the pressure on R0.  */                                                \
   flag_schedule_insns = 0;                                             \
                                                                        \
-  /* Allocation boundary (in *bits*) for the code of a function.       \
+  /* Allocation boundary (in *bytes*) for the code of a function.      \
      SH1: 32 bit alignment is faster, because instructions are always  \
      fetched as a pair from a longword boundary.                       \
      SH2 .. SH5 : align to cache line start.  */                       \
   if (align_functions == 0)                                            \
     align_functions                                                    \
-      = TARGET_SMALLCODE ? FUNCTION_BOUNDARY : (1 << CACHE_LOG) * 8;   \
+      = TARGET_SMALLCODE ? FUNCTION_BOUNDARY/8 : (1 << CACHE_LOG);     \
 } while (0)
 \f
 /* Target machine storage layout.  */