From: joel Date: Fri, 28 Feb 2003 18:30:57 +0000 (+0000) Subject: 2003-02-28 Joel Sherrill X-Git-Url: http://git.sourceforge.jp/view?p=pf3gnuchains%2Fgcc-fork.git;a=commitdiff_plain;h=980dba51c0e5bd44ddc9b2429710fa8eefc4898b;hp=19cda8f65522f6821246dd2e0e9d40e9c355f9c4 2003-02-28 Joel Sherrill PR 9638/other * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Ensure the this constant defaults to 1. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@63569 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 42f96cfe139..19025236a03 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-28 Bob Wilson * config.gcc (xtensa-*-linux*): Add t-slibgcc-elf-ver to tmake_file. diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index 53df0892172..81d64375e91 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -1015,6 +1015,12 @@ static void init_ext_80387_constants PARAMS ((void)); 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