From 9c1a9616e0c38d1eaccedf59088e9b7e7ac1eb0a Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Fri, 28 Feb 2003 17:31:34 +0000 Subject: [PATCH] PR 9638/other 2003-02-28 Joel Sherrill PR 9638/other * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Ensure the this constant defaults to 1. From-SVN: r63564 --- gcc/ChangeLog | 6 ++++++ gcc/config/i386/i386.c | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index bb41154605ea..c9052edc68cc 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2003-02-28 Joel Sherrill + + PR 9638/other + * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Ensure the + this constant defaults to 1. + 2003-02-27 Alan Modra * config/rs6000/rs6000.md: Add TI constant splitter. diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index 779d89b0c9f1..8f40312097dc 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -822,6 +822,12 @@ static enum x86_64_reg_class merge_classes PARAMS ((enum x86_64_reg_class, struct gcc_target targetm = TARGET_INITIALIZER; +/* The svr4 ABI for the i386 says that records and unions are returned + in memory. */ +#ifndef DEFAULT_PCC_STRUCT_RETURN +#define DEFAULT_PCC_STRUCT_RETURN 1 +#endif + /* Sometimes certain combinations of command options do not make sense on a particular target machine. You can define a macro `OVERRIDE_OPTIONS' to take account of this. This macro, if -- 2.47.2