* sh.h (ROUND_TYPE_ALIGN): Remove.
authorJ"orn Rennecke <joern.rennecke@superh.com>
Fri, 20 Jun 2003 19:28:13 +0000 (19:28 +0000)
committerJoern Rennecke <amylaar@gcc.gnu.org>
Fri, 20 Jun 2003 19:28:13 +0000 (20:28 +0100)
From-SVN: r68279

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

index 99b1289d4f903c0c423f86212825425016724fe4..4c915836d1d7833178bea3944ef361b84bb18328 100644 (file)
@@ -1,3 +1,7 @@
+2003-06-20  J"orn Rennecke <joern.rennecke@superh.com>
+
+       * sh.h (ROUND_TYPE_ALIGN): Remove.
+
 2003-06-20  Richard Henderson  <rth@redhat.com>
 
        * hooks.c (hook_int_void_no_regs): Rename from
index c74bb3ada28930da87ce5c1b4c98e759737e6647..2c62d4705a954bb5f3a83a150e7e9cc54a84e868 100644 (file)
@@ -634,14 +634,8 @@ do {                                                                       \
 /* get_mode_alignment assumes complex values are always held in multiple
    registers, but that is not the case on the SH; CQImode and CHImode are
    held in a single integer register.  SH5 also holds CSImode and SCmode
-   values in integer regsters.  Thus the alignment needs to be bumped up
-   to match the size of the mode.  */
-#define ROUND_TYPE_ALIGN(STRUCT, COMPUTED, SPECIFIED) \
-  (MAX ((GET_MODE_CLASS (TYPE_MODE (STRUCT)) == MODE_COMPLEX_INT \
-        || GET_MODE_CLASS (TYPE_MODE (STRUCT)) == MODE_COMPLEX_FLOAT) \
-       ? MIN (BIGGEST_ALIGNMENT, GET_MODE_BITSIZE (TYPE_MODE (STRUCT))) \
-       : (COMPUTED), \
-       (SPECIFIED)))
+   values in integer regsters.  This is relevant for argument passing on
+   SHcompact as we use a stack temp in order to pass CSImode by reference.  */
 #define LOCAL_ALIGNMENT(TYPE, ALIGN) \
   ((GET_MODE_CLASS (TYPE_MODE (TYPE)) == MODE_COMPLEX_INT \
     || GET_MODE_CLASS (TYPE_MODE (TYPE)) == MODE_COMPLEX_FLOAT) \