summaryrefslogtreecommitdiff
path: root/gcc/config/i386/cygwin.h
diff options
context:
space:
mode:
authorDanny Smith <dannysmith@users.sourceforge.net>2003-02-07 22:10:56 +0000
committerDanny Smith <dannysmith@gcc.gnu.org>2003-02-07 22:10:56 +0000
commit5e062767b9dd4ab2ac51da35b684e574dcfd72b0 (patch)
treed107b6618e9140191b8cee61ba375eec8558425d /gcc/config/i386/cygwin.h
parentb0b74f371eb96d60047b221711bb98361fde5f58 (diff)
downloadgcc-5e062767b9dd4ab2ac51da35b684e574dcfd72b0.tar.gz
i386.h (MS_AGGREGATE_RETURN): New define.
* config/i386/i386.h (MS_AGGREGATE_RETURN): New define. * config/i386/cygwin.h (MS_AGGREGATE_RETURN): Override default definition. * config/i386/i386.h (ix86_return_in_memory): Return aggregate types of up to 8 bytes via registers if MS_AGGREGATE_RETURN. From-SVN: r62547
Diffstat (limited to 'gcc/config/i386/cygwin.h')
-rw-r--r--gcc/config/i386/cygwin.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/config/i386/cygwin.h b/gcc/config/i386/cygwin.h
index 76978980c28..085c3e78fe0 100644
--- a/gcc/config/i386/cygwin.h
+++ b/gcc/config/i386/cygwin.h
@@ -410,6 +410,11 @@ extern int i386_pe_dllimport_name_p PARAMS ((const char *));
#undef DEFAULT_PCC_STRUCT_RETURN
#define DEFAULT_PCC_STRUCT_RETURN 0
+/* MSVC returns aggregate types of up to 8 bytes via registers.
+ See i386.c:ix86_return_in_memory. */
+#undef MS_AGGREGATE_RETURN
+#define MS_AGGREGATE_RETURN 1
+
/* No data type wants to be aligned rounder than this. */
#undef BIGGEST_ALIGNMENT
#define BIGGEST_ALIGNMENT 128