i386-elf/rtems on gcc 3.2.2

Joel Sherrill joel.sherrill@OARcorp.com
Thu Feb 27 22:13:00 GMT 2003



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@OARcorp.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~



More information about the Gcc-bugs mailing list