* [PATCH] sim build failure to use ENDSWITCH macro with gcc-3.4.2
@ 2004-10-07 7:13 Kazuhiro Inaoka
2004-10-08 15:33 ` Frank Ch. Eigler
0 siblings, 1 reply; 2+ messages in thread
From: Kazuhiro Inaoka @ 2004-10-07 7:13 UTC (permalink / raw)
To: gdb-patches
[-- 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 */
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] sim build failure to use ENDSWITCH macro with gcc-3.4.2
2004-10-07 7:13 [PATCH] sim build failure to use ENDSWITCH macro with gcc-3.4.2 Kazuhiro Inaoka
@ 2004-10-08 15:33 ` Frank Ch. Eigler
0 siblings, 0 replies; 2+ messages in thread
From: Frank Ch. Eigler @ 2004-10-08 15:33 UTC (permalink / raw)
To: Kazuhiro Inaoka; +Cc: gdb-patches
Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com> writes:
> 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.
> [...]
Thank you, done.
- FChE
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-10-08 15:33 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-10-07 7:13 [PATCH] sim build failure to use ENDSWITCH macro with gcc-3.4.2 Kazuhiro Inaoka
2004-10-08 15:33 ` Frank Ch. Eigler
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox