This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: i386-elf/rtems on gcc 3.2.2



Richard Henderson wrote:
> 
> On Thu, Feb 27, 2003 at 04:13:55PM -0600, Joel Sherrill wrote:
> > +/* 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
> 
> No, this is not ok.  You should be providing a default,
> not forcing it on all the time.

GRRRRR... I knew my sinus headache was too bad for me to still
be at work. :(

I cut and pasted and forgot to change it.  Is this better?

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:59:40 -0000
@@ -822,6 +822,12 @@

 struct gcc_target targetm = TARGET_INITIALIZER;
 ^L
+/* 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


> r~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]