aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBob Wilson <bob.wilson@acm.org>2002-06-28 17:24:34 +0000
committerBob Wilson <bwilson@gcc.gnu.org>2002-06-28 17:24:34 +0000
commit5f9dc2143bf260b6436c3582dd50dbbecbc71d45 (patch)
tree61923837ad29c60d2b4a3daff4ae818cc7d42642
parent53501a19fa31272638948d247ad7988afa69d3a4 (diff)
downloadgcc-5f9dc2143bf260b6436c3582dd50dbbecbc71d45.zip
gcc-5f9dc2143bf260b6436c3582dd50dbbecbc71d45.tar.gz
gcc-5f9dc2143bf260b6436c3582dd50dbbecbc71d45.tar.bz2
* config/xtensa/xtensa.h (RETURN_IN_MEMORY): Update comment.
From-SVN: r55066
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/config/xtensa/xtensa.h14
2 files changed, 11 insertions, 7 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 0b8c5a7..1a0445d 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@
+2002-06-28 Bob Wilson <bob.wilson@acm.org>
+
+ * config/xtensa/xtensa.h (RETURN_IN_MEMORY): Update comment.
+
2001-06-08 Bernd Schmidt <bernds@redhat.com>
* emit-rtl.c (gen_lowpart_common): Don't create paradoxical FLOAT_MODE
diff --git a/gcc/config/xtensa/xtensa.h b/gcc/config/xtensa/xtensa.h
index 22fcb79..836bd8d 100644
--- a/gcc/config/xtensa/xtensa.h
+++ b/gcc/config/xtensa/xtensa.h
@@ -796,13 +796,13 @@ extern enum reg_class xtensa_char_to_class[256];
/* Don't worry about compatibility with PCC. */
#define DEFAULT_PCC_STRUCT_RETURN 0
-/* For Xtensa, we would like to be able to return up to 6 words in
- memory but GCC cannot support that. The return value must be given
- one of the standard MODE_INT modes, and there is no 6 word mode.
- Instead, if we try to return a 6 word structure, GCC selects the
- next biggest mode (OImode, 8 words) and then the register allocator
- fails because there is no 8-register group beginning with a10. So
- we have to fall back on the next largest size which is 4 words... */
+/* For Xtensa, up to 4 words can be returned in registers. (It would
+ have been nice to allow up to 6 words in registers but GCC cannot
+ support that. The return value must be given one of the standard
+ MODE_INT modes, and there is no 6 word mode. Instead, if we try to
+ return a 6 word structure, GCC selects the next biggest mode
+ (OImode, 8 words) and then the register allocator fails because
+ there is no 8-register group beginning with a10.) */
#define RETURN_IN_MEMORY(TYPE) \
((unsigned HOST_WIDE_INT) int_size_in_bytes (TYPE) > 4 * UNITS_PER_WORD)