This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
C PATCH: Typo in c_start_case
- To: gcc-patches at gcc dot gnu dot org
- Subject: C PATCH: Typo in c_start_case
- From: Mark Mitchell <mark at codesourcery dot com>
- Date: Sun, 17 Sep 2000 22:02:19 -0700
- Organization: CodeSourcery, LLC
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;