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]

[avr port] bugfix in init_cumulative_args


2002-10-24  Denis Chertykov  <denisc@overta.ru>

	* config/avr/avr.c (init_cumulative_args): Test fntype for zero.

Index: config/avr/avr.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/config/avr/avr.c,v
retrieving revision 1.85
diff -c -3 -p -r1.85 avr.c
*** config/avr/avr.c	28 Sep 2002 14:14:12 -0000	1.85
--- config/avr/avr.c	24 Oct 2002 19:53:26 -0000
*************** init_cumulative_args (cum, fntype, libna
*** 1487,1493 ****
  {
    cum->nregs = 18;
    cum->regno = FIRST_CUM_REG;
!   if (!libname)
      {
        int stdarg = (TYPE_ARG_TYPES (fntype) != 0
                      && (TREE_VALUE (tree_last (TYPE_ARG_TYPES (fntype)))
--- 1487,1493 ----
  {
    cum->nregs = 18;
    cum->regno = FIRST_CUM_REG;
!   if (!libname && fntype)
      {
        int stdarg = (TYPE_ARG_TYPES (fntype) != 0
                      && (TREE_VALUE (tree_last (TYPE_ARG_TYPES (fntype)))


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