From: Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
To: "gdb-patches@sources.redhat.com" <gdb-patches@sources.redhat.com>
Subject: [PATCH] sim build failure to use ENDSWITCH macro with gcc-3.4.2
Date: Thu, 07 Oct 2004 07:13:00 -0000 [thread overview]
Message-ID: <4164EC6F.3080406@renesas.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 357 bytes --]
Hello,
I found a build failure to use ENDSWITCH macro with gcc-3.4.2.
The error message is "error: label at end of compaund statement".
This path fixes the failure. Please commit it.
sim/common/ChangeLog
2004-10-07 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
* cgen-defs.h (ENDSWITCH): Changed to compile with gcc-3.4.2.
Regards,
Kazuhiro Inaoka
[-- Attachment #2: cgen-defs.patch --]
[-- Type: text/plain, Size: 868 bytes --]
Index: cgen-defs.h
===================================================================
RCS file: /cvs/src/src/sim/common/cgen-defs.h,v
retrieving revision 1.1.1.3
diff -c -r1.1.1.3 cgen-defs.h
*** cgen-defs.h 5 Oct 1999 23:13:21 -0000 1.1.1.3
--- cgen-defs.h 7 Oct 2004 06:52:27 -0000
***************
*** 130,136 ****
#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:
#else
#define SWITCH(N, X) switch (X)
#define CASE(N, X) case X /* FIXME: old sem-switch had (@arch@_,X) here */
--- 130,136 ----
#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:;
#else
#define SWITCH(N, X) switch (X)
#define CASE(N, X) case X /* FIXME: old sem-switch had (@arch@_,X) here */
next reply other threads:[~2004-10-07 7:13 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-10-07 7:13 Kazuhiro Inaoka [this message]
2004-10-08 15:33 ` Frank Ch. Eigler
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4164EC6F.3080406@renesas.com \
--to=inaoka.kazuhiro@renesas.com \
--cc=gdb-patches@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox