zlaski 02/09/26 14:12:51
Modified: gcc stor-layout.c
Log:
Migrate Stuart's fix for 2981187 into TOT.
Revision Changes Path
1.32 +2 -0 gcc3/gcc/stor-layout.c
Index: stor-layout.c
===================================================================
RCS file: /cvs/Darwin/gcc3/gcc/stor-layout.c,v
retrieving revision 1.31
retrieving revision 1.32
diff -u -r1.31 -r1.32
--- stor-layout.c 2002/08/26 05:39:46 1.31
+++ stor-layout.c 2002/09/26 21:12:51 1.32
@@ -1316,6 +1316,7 @@
if (TREE_CODE (type) == RECORD_TYPE && mode != VOIDmode)
TYPE_MODE (type) = mode;
/* APPLE LOCAL 8-byte-struct hack */
+#if defined RS6000_VARARGS_AREA
/* Make 8-byte structs BLKmode instead of DImode, which fixes both
struct-return methods and attempts to use floats in kernel code.
This should probably become a generic macro similar to
@@ -1323,6 +1324,7 @@
else if (mode_for_size_tree (TYPE_SIZE (type), MODE_INT, 1) == DImode
&& flag_pic)
;
+#endif
else
TYPE_MODE (type) = mode_for_size_tree (TYPE_SIZE (type), MODE_INT, 1);