rs6000.h, [...]: Revert last two patches.
authorJakub Jelinek <jakub@redhat.com>
Thu, 8 Aug 2002 17:55:37 +0000 (19:55 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 8 Aug 2002 17:55:37 +0000 (19:55 +0200)
* config/rs6000/rs6000.h, config/rs6000/aix.h,
config/rs6000/darwin.h, config/rs6000/linux64.h: Revert last
two patches.
* config/rs6000/sysv4.h: Likewise, remove #undef ADJUST_FIELD_ALIGN.

From-SVN: r56135

gcc/ChangeLog
gcc/config/rs6000/aix.h
gcc/config/rs6000/darwin.h
gcc/config/rs6000/linux64.h
gcc/config/rs6000/rs6000.h
gcc/config/rs6000/sysv4.h

index 3c578c278b29229ff89f99e3bb2f865ce6b8b1de..596f5ab694feb76cee1e091669aaa9b9ce58c866 100644 (file)
@@ -1,3 +1,10 @@
+2002-08-08  Jakub Jelinek  <jakub@redhat.com>
+
+       * config/rs6000/rs6000.h, config/rs6000/aix.h,
+       config/rs6000/darwin.h, config/rs6000/linux64.h: Revert last
+       two patches.
+       * config/rs6000/sysv4.h: Likewise, remove #undef ADJUST_FIELD_ALIGN.
+
 2002-08-08  Lars Brinkhoff  <lars@nocrew.org>
            Richard Henderson  <rth@redhat.com>
 
index 592ca555de29d5099fcb2a98c2f74f68c02dc9c8..051780cfcfc08ebb6ebda658732fdad798f0d41b 100644 (file)
@@ -128,6 +128,13 @@ Boston, MA 02111-1307, USA.  */
 #define LIB_SPEC "%{pg:-L/lib/profiled -L/usr/lib/profiled}\
 %{p:-L/lib/profiled -L/usr/lib/profiled} %{!shared:%{g*:-lg}} -lc"
 
+/* AIX word-aligns FP doubles but doubleword-aligns 64-bit ints.  */
+#define ADJUST_FIELD_ALIGN(FIELD, COMPUTED) \
+  (TYPE_MODE (TREE_CODE (TREE_TYPE (FIELD)) == ARRAY_TYPE \
+             ? get_inner_array_type (FIELD) \
+             : TREE_TYPE (FIELD)) == DFmode \
+   ? MIN ((COMPUTED), 32) : (COMPUTED))
+
 /* AIX increases natural record alignment to doubleword if the first
    field is an FP double while the FP fields remain word aligned.  */
 #define ROUND_TYPE_ALIGN(STRUCT, COMPUTED, SPECIFIED)  \
index 6b6ca11dddbb08ccc4540b561e63f155c79da08f..417cfb9697d803c2dde8f12f0a8460d3ba1c3b54 100644 (file)
@@ -196,6 +196,13 @@ Boston, MA 02111-1307, USA.  */
 /* Fix for emit_group_load (): force large constants to be pushed via regs.  */
 #define ALWAYS_PUSH_CONSTS_USING_REGS_P                1
 
+/* Darwin word-aligns FP doubles but doubleword-aligns 64-bit ints.  */
+#define ADJUST_FIELD_ALIGN(FIELD, COMPUTED) \
+  (TYPE_MODE (TREE_CODE (TREE_TYPE (FIELD)) == ARRAY_TYPE \
+             ? get_inner_array_type (FIELD) \
+             : TREE_TYPE (FIELD)) == DFmode \
+   ? MIN ((COMPUTED), 32) : (COMPUTED))
+
 /* Darwin increases natural record alignment to doubleword if the first
    field is an FP double while the FP fields remain word aligned.  */
 #define ROUND_TYPE_ALIGN(STRUCT, COMPUTED, SPECIFIED)  \
index 1d9b1a1d9f0d6e2a791bc36d6accb501923bb49c..a1f162e05586697aba9c7e2dbc5f1cb3e6ffb64c 100644 (file)
@@ -72,6 +72,13 @@ Boston, MA 02111-1307, USA.  */
 
 #define USER_LABEL_PREFIX  ""
 
+/* AIX word-aligns FP doubles but doubleword-aligns 64-bit ints.  */
+#define ADJUST_FIELD_ALIGN(FIELD, COMPUTED) \
+  (TYPE_MODE (TREE_CODE (TREE_TYPE (FIELD)) == ARRAY_TYPE \
+             ? get_inner_array_type (FIELD) \
+             : TREE_TYPE (FIELD)) == DFmode \
+   ? MIN ((COMPUTED), 32) : (COMPUTED))
+
 /* AIX increases natural record alignment to doubleword if the first
    field is an FP double while the FP fields remain word aligned.  */
 #undef ROUND_TYPE_ALIGN
index dadcc21c7b28c43db577bf57260d9053e2cca50a..17a3015e3fbcc94a08948a6c860c0793cb38e8cc 100644 (file)
@@ -631,15 +631,6 @@ extern int rs6000_default_long_calls;
 /* A bitfield declared as `int' forces `int' alignment for the struct.  */
 #define PCC_BITFIELD_TYPE_MATTERS 1
 
-/* Most ABIs word-align FP doubles but doubleword-align 64-bit ints.  */
-#define ADJUST_FIELD_ALIGN(FIELD, COMPUTED) \
-  (DEFAULT_ABI == ABI_V4                                               \
-   ? ((TARGET_ALTIVEC                                                  \
-       && TREE_CODE (get_inner_array_type (FIELD)) == VECTOR_TYPE)     \
-      ? 128 : (COMPUTED))                                              \
-   : ((TYPE_MODE (get_inner_array_type (FIELD)) == DFmode)             \
-      ? MIN (32, (COMPUTED)) : (COMPUTED)))
-
 /* Make strings word-aligned so strcpy from constants will be faster.
    Make vector constants quadword aligned.  */
 #define CONSTANT_ALIGNMENT(EXP, ALIGN)                           \
index 24a5c9c5d7bb291f8113f7686b367262b6319f6e..8b6cf1c3b292fc107057778dd03bf3fd828e2a33 100644 (file)
@@ -380,6 +380,12 @@ do {                                                                       \
 /* Real stack boundary as mandated by the appropriate ABI.  */
 #define ABI_STACK_BOUNDARY ((TARGET_EABI && !TARGET_ALTIVEC_ABI) ? 64 : 128)
 
+/* An expression for the alignment of a structure field FIELD if the
+   alignment computed in the usual way is COMPUTED.  */
+#define ADJUST_FIELD_ALIGN(FIELD, COMPUTED)                                  \
+       ((TARGET_ALTIVEC && TREE_CODE (TREE_TYPE (FIELD)) == VECTOR_TYPE)     \
+        ? 128 : COMPUTED)
+
 /* Define this macro as an expression for the alignment of a type
    (given by TYPE as a tree node) if the alignment computed in the
    usual way is COMPUTED and the alignment explicitly specified was