i386-elf/rtems on gcc 3.2.2

Joel Sherrill joel.sherrill@OARcorp.com
Thu Feb 27 18:11:00 GMT 2003


The DEFAULT_PCC_STRUCT_RETURN problem I reported in the 3.3 branch
appears to have made the 3.2.2 release.  So i386-rtems and i386-elf
are unbuildable with the shipped gcc 3.2.2.

Richard is this the patch OK?  Or would you rather see the same type
of defaulting in i386.c just prior to override_options?

On last Friday, you emailed gcc-bugs and me with this comment:

> > Richard, which would you rather see?  I have added the above lines to
> > my local i386elf.h and has built way past this point but isn't finished yet.
> Guh.  I guess given my druthers I'd rather see
> DEFAULT_PCC_STRUCT_RETURN in i386.c instead of
> spread across numerous headers.

Index: i386.h
RCS file: /cvs/gcc/gcc/gcc/config/i386/i386.h,v
retrieving revision
diff -u -r1. i386.h
--- i386.h      6 Feb 2003 10:59:20 -0000
+++ i386.h      27 Feb 2003 18:08:56 -0000
@@ -1159,6 +1159,12 @@
    0 means push the value on the stack like an argument.  */
 #define STRUCT_VALUE 0

+/* The svr4 ABI for the i386 says that records and unions are returned
+   in memory.  */
 /* A C expression which can inhibit the returning of certain function
    values in registers, based on the type of value.  A nonzero value
    says to return the function value in memory, just as large

Joel Sherrill, Ph.D.             Director of Research & Development
joel@OARcorp.com                 On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
Support Available                (256) 722-9985

More information about the Gcc-bugs mailing list