This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: i386-elf/rtems on gcc 3.2.2
- From: Joel Sherrill <joel dot sherrill at OARcorp dot com>
- To: Richard Henderson <rth at redhat dot com>
- Cc: gcc-bugs at gcc dot gnu dot org, Gabriel Dos Reis <gdr at integrable-solutions dot net>
- Date: Thu, 27 Feb 2003 16:13:55 -0600
- Subject: Re: i386-elf/rtems on gcc 3.2.2
- Organization: OAR Corporation
- References: <3E5E54C8.152D3265@OARcorp.com> <20030227213444.GD23752@redhat.com>
Richard Henderson wrote:
>
> On Thu, Feb 27, 2003 at 12:11:20PM -0600, Joel Sherrill wrote:
> > Richard is this the patch OK? Or would you rather see the same type
> > of defaulting in i386.c just prior to override_options?
>
> Put it in i386.c.
Okey dokey. Is this patch OK? If so, it needs to go on at
least the 3.2 branch and the last I checked on the 3.3 branch.
2003-02-27 Joel Sherrill <joel at OARcorp dot com>
PR 9638/other
* config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Ensure the
this constant defaults to 1.
Index: i386.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/i386/i386.c,v
retrieving revision 1.368.2.19.2.10
diff -u -r1.368.2.19.2.10 i386.c
--- i386.c 26 Feb 2003 01:29:09 -0000 1.368.2.19.2.10
+++ i386.c 27 Feb 2003 22:12:27 -0000
@@ -822,6 +822,11 @@
struct gcc_target targetm = TARGET_INITIALIZER;
^L
+/* The svr4 ABI for the i386 says that records and unions are returned
+ in memory. */
+#undef DEFAULT_PCC_STRUCT_RETURN
+#define DEFAULT_PCC_STRUCT_RETURN 1
+
/* 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
> r~