This is the mail archive of the gcc-patches@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]

[patch] stormy16 Return structs in registers


The stormy16 ABI calls for aggregates to be returned
in registers if they fit.  Okay to install?

Catherine

2001-09-18  Catherine Moore  <clm@redhat.com>

        * config/stormy16/stormy16.h (DEFAULT_PCC_STRUCT_RETURN): 
        Define as 0.

Index: stormy16.h
===================================================================
RCS file: /cvs/gcc/egcs/gcc/config/stormy16/stormy16.h,v
retrieving revision 1.5
diff -p -r1.5 stormy16.h
*** stormy16.h  2001/09/18 17:02:28     1.5
--- stormy16.h  2001/09/18 18:16:51
*************** typedef int CUMULATIVE_ARGS;
*** 2292,2298 ****
     return values are decided by the `RETURN_IN_MEMORY' macro.
  
     If not defined, this defaults to the value 1.  */
! /* #define DEFAULT_PCC_STRUCT_RETURN */
  
  /* If the structure value address is passed in a register, then
     `STRUCT_VALUE_REGNUM' should be the number of that register.  */
--- 2292,2298 ----
     return values are decided by the `RETURN_IN_MEMORY' macro.
  
     If not defined, this defaults to the value 1.  */
! #define DEFAULT_PCC_STRUCT_RETURN 0
  
  /* If the structure value address is passed in a register, then
     `STRUCT_VALUE_REGNUM' should be the number of that register.  */


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