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]

C PATCH: Typo in c_start_case



Geoff Keating spotted this bug (introduced by yours truly in the
conversion to statement-at-a-time mode).

Checked in under the obvious fix rule.

--
Mark Mitchell                   mark@codesourcery.com
CodeSourcery, LLC               http://www.codesourcery.com

2000-09-17  Mark Mitchell  <mark@codesourcery.com>

	* c-typeck.c (c_start_case): Fix typo.

Index: c-typeck.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/c-typeck.c,v
retrieving revision 1.88
diff -c -p -r1.88 c-typeck.c
*** c-typeck.c	2000/09/17 07:38:11	1.88
--- c-typeck.c	2000/09/18 04:59:33
*************** c_start_case (exp)
*** 6784,6790 ****
      }
  
    /* Add this new SWITCH_STMT to the stack.  */
!   cs = (struct c_switch *) xmalloc (sizeof (cs));
    cs->switch_stmt = build_stmt (SWITCH_STMT, exp, NULL_TREE, NULL_TREE);
    cs->cases = splay_tree_new (case_compare, NULL, NULL);
    cs->next = switch_stack;
--- 6784,6790 ----
      }
  
    /* Add this new SWITCH_STMT to the stack.  */
!   cs = (struct c_switch *) xmalloc (sizeof (*cs));
    cs->switch_stmt = build_stmt (SWITCH_STMT, exp, NULL_TREE, NULL_TREE);
    cs->cases = splay_tree_new (case_compare, NULL, NULL);
    cs->next = switch_stack;

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