* config/xtensa/xtensa.h (MEMBER_TYPE_FORCES_BLK): Define.
authorBob Wilson <bob.wilson@acm.org>
Thu, 10 Mar 2005 16:44:48 +0000 (16:44 +0000)
committerBob Wilson <bwilson@gcc.gnu.org>
Thu, 10 Mar 2005 16:44:48 +0000 (16:44 +0000)
From-SVN: r96245

gcc/ChangeLog
gcc/config/xtensa/xtensa.h

index 2e5b1f14ca1d8bd00862ef10f59ef7c388e5787a..22849e206f603451cc6d7cf9911a99ce22747c46 100644 (file)
@@ -1,3 +1,7 @@
+2005-03-10  Bob Wilson  <bob.wilson@acm.org>
+
+       * config/xtensa/xtensa.h (MEMBER_TYPE_FORCES_BLK): Define.
+
 2005-03-10  Nathan Sidwell  <nathan@codesourcery.com>
 
        * bitmap.c (bitmap_copy): Remove manual loop unrolling.
index 2f4b3d37c48ceac6baea8b9c91e5711032a70f99..a2b4b4850a5a565f4a188b52a1d80f17120f8f5d 100644 (file)
@@ -209,6 +209,15 @@ extern unsigned xtensa_current_frame_size;
    bitfields and the structures that contain them.  */
 #define PCC_BITFIELD_TYPE_MATTERS 1
 
+/* Disable the use of word-sized or smaller complex modes for structures,
+   and for function arguments in particular, where they cause problems with
+   register a7.  The xtensa_copy_incoming_a7 function assumes that there is
+   a single reference to an argument in a7, but with small complex modes the
+   real and imaginary components may be extracted separately, leading to two
+   uses of the register, only one of which would be replaced.  */
+#define MEMBER_TYPE_FORCES_BLK(FIELD, MODE) \
+  ((MODE) == CQImode || (MODE) == CHImode)
+
 /* Align string constants and constructors to at least a word boundary.
    The typical use of this macro is to increase alignment for string
    constants to be word aligned so that 'strcpy' calls that copy