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]
Other format: [Raw text]

d30v_init_cumulative_args()


Hi Guys,

  I am applying the patch below as obvious.  The
  d30_init_cumulative_args() function's fourth parameter is called
  'fndecl' not 'indirect'.  I have also updated the comment at the
  start of the function to describe FNDECL rather than INDIRECT.

Cheers
        Nick


2003-02-25  Nick Clifton  <nickc at redhat dot com>

	* config/d30v/d30v.c (d30v_init_cumulative_args): Fix typo.  Name
	of fourth arg is 'fndecl' not 'indirect'.  Update comment
	describing the function's parameters.

Index: gcc/config/d30v/d30v.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/d30v/d30v.c,v
retrieving revision 1.29
diff -c -3 -p -w -r1.29 d30v.c
*** gcc/config/d30v/d30v.c	19 Feb 2003 18:03:09 -0000	1.29
--- gcc/config/d30v/d30v.c	25 Feb 2003 10:32:59 -0000
*************** direct_return ()
*** 1905,1924 ****
     state at the beginning of the argument list.  The variable has type
     `CUMULATIVE_ARGS'.  The value of FNTYPE is the tree node for the data type
     of the function which will receive the args, or 0 if the args are to a
!    compiler support library function.  The value of INDIRECT is nonzero when
!    processing an indirect call, for example a call through a function pointer.
!    The value of INDIRECT is zero for a call to an explicitly named function, a
!    library function call, or when `INIT_CUMULATIVE_ARGS' is used to find
!    arguments for the function being compiled.
  
     When processing a call to a compiler support library function, LIBNAME
     identifies which one.  It is a `symbol_ref' rtx which contains the name of
!    the function, as a string.  LIBNAME is 0 when an ordinary C function call is
!    being processed.  Thus, each time this macro is called, either LIBNAME or
!    FNTYPE is nonzero, but never both of them at once.  */
  
  void
! d30v_init_cumulative_args (cum, fntype, libname, indirect, incoming)
       CUMULATIVE_ARGS *cum;
       tree fntype;
       rtx libname;
--- 1905,1925 ----
     state at the beginning of the argument list.  The variable has type
     `CUMULATIVE_ARGS'.  The value of FNTYPE is the tree node for the data type
     of the function which will receive the args, or 0 if the args are to a
!    compiler support library function.
! 
!    The value of FNDECL is NULL for indirect calls (eg via a function pointer)
!    and library calls.  For direct calls, and when INIT_CUMULATIVE_ARGS is
!    being used to find arguments for the function being compiled it contains
!    the declaration node of FNTYPE.
  
     When processing a call to a compiler support library function, LIBNAME
     identifies which one.  It is a `symbol_ref' rtx which contains the name of
!    the function, as a string.  LIBNAME is 0 when an ordinary C function call
!    is being processed.  Thus, each time this macro is called, either LIBNAME
!    or FNTYPE is nonzero, but never both of them at once.  */
  
  void
! d30v_init_cumulative_args (cum, fntype, libname, fndecl, incoming)
       CUMULATIVE_ARGS *cum;
       tree fntype;
       rtx libname;


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