From a3bb10891cc10b63dd4c7f406fa59c4c2f4e791b Mon Sep 17 00:00:00 2001 From: "Frank Ch. Eigler" Date: Fri, 8 Oct 2004 15:33:09 +0000 Subject: [PATCH] 2004-10-07 Kazuhiro Inaoka * cgen-defs.h (ENDSWITCH): Changed to compile with gcc-3.4.2. --- sim/common/ChangeLog | 4 ++++ sim/common/cgen-defs.h | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/sim/common/ChangeLog b/sim/common/ChangeLog index 0099da089e5..ba104bd57f1 100644 --- a/sim/common/ChangeLog +++ b/sim/common/ChangeLog @@ -1,3 +1,7 @@ +2004-10-07 Kazuhiro Inaoka + + * cgen-defs.h (ENDSWITCH): Changed to compile with gcc-3.4.2. + 2004-07-26 Andrew Cagney Problem from Olaf Hering . diff --git a/sim/common/cgen-defs.h b/sim/common/cgen-defs.h index fbdfb9a2791..cf9c0283c1a 100644 --- a/sim/common/cgen-defs.h +++ b/sim/common/cgen-defs.h @@ -130,7 +130,7 @@ typedef enum { #define CASE(N, X) case_##N##_##X #define BREAK(N) goto end_switch_##N #define DEFAULT(N) default_##N -#define ENDSWITCH(N) end_switch_##N: +#define ENDSWITCH(N) end_switch_##N:; #else #define SWITCH(N, X) switch (X) #define CASE(N, X) case X /* FIXME: old sem-switch had (@arch@_,X) here */ -- 2.30.2