From d12f05fc27089821c78a53858f8ca60ef039d8a1 Mon Sep 17 00:00:00 2001 From: "Arnold D. Robbins" Date: Tue, 8 Mar 2016 07:13:53 +0200 Subject: Fix duplicate case in debug.c. --- ChangeLog | 5 +++++ debug.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 76ff7556..fa434b2f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2016-03-08 Arnold D. Robbins + + * profile.c (print_instruction): Fix duplicate case not caught + by TinyCC. Grrr. + 2016-03-07 Arnold D. Robbins * profile.c (print_instruction): Further improvements in diff --git a/debug.c b/debug.c index 50bcd890..3a33c4ce 100644 --- a/debug.c +++ b/debug.c @@ -3817,7 +3817,6 @@ print_instruction(INSTRUCTION *pc, Func_print print_func, FILE *fp, int in_dump) print_func(fp, "[switch_start = %p] [switch_end = %p]\n", (pc+1)->switch_start, (pc+1)->switch_end); break; - case Op_K_case: case Op_K_default: print_func(fp, "[stmt_start = %p] [stmt_end = %p]\n", pc->stmt_start, pc->stmt_end); break; @@ -3904,6 +3903,7 @@ print_instruction(INSTRUCTION *pc, Func_print print_func, FILE *fp, int in_dump) case Op_K_continue: print_func(fp, "[target_jmp = %p]\n", pc->target_jmp); break; + case Op_K_exit: print_func(fp, "[target_end = %p] [target_atexit = %p]\n", pc->target_end, pc->target_atexit); -- cgit v1.2.3