From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18134 invoked by alias); 7 Oct 2004 07:13:30 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 18099 invoked from network); 7 Oct 2004 07:13:24 -0000 Received: from unknown (HELO mail04.idc.renesas.com) (202.234.163.13) by sourceware.org with SMTP; 7 Oct 2004 07:13:24 -0000 Received: (from root@localhost) by guardian03.idc.renesas.com with id i977DLRj010924 for gdb-patches@sources.redhat.com; Thu, 7 Oct 2004 16:13:21 +0900 (JST) Received: from unknown [172.20.8.70] by guardian03.idc.renesas.com with SMTP id SAA10923 ; Thu, 7 Oct 2004 16:13:21 +0900 Received: from dnma02 (dnma02.rso.renesas.com [172.30.11.200]) by dnma01.rso.renesas.com (iPlanet Messaging Server 5.2 HotFix 1.12 (built Feb 13 2003)) with ESMTP id <0I5700GRRDE7E4@dnma01.rso.renesas.com> for gdb-patches@sources.redhat.com; Thu, 07 Oct 2004 16:13:19 +0900 (JST) Received: from renesas.com ([10.145.105.28]) by dnma02.rso.renesas.com (iPlanet Messaging Server 5.2 HotFix 1.12 (built Feb 13 2003)) with ESMTP id <0I5700KS3DE7SD@dnma02.rso.renesas.com> for gdb-patches@sources.redhat.com; Thu, 07 Oct 2004 16:13:19 +0900 (JST) Date: Thu, 07 Oct 2004 07:13:00 -0000 From: Kazuhiro Inaoka Subject: [PATCH] sim build failure to use ENDSWITCH macro with gcc-3.4.2 To: "gdb-patches@sources.redhat.com" Message-id: <4164EC6F.3080406@renesas.com> MIME-version: 1.0 Content-type: multipart/mixed; boundary="Boundary_(ID_D/d9ooRkoiwenRGrqPUQ5A)" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; ja-JP; rv:1.4) Gecko/20030624 Netscape/7.1 (ax) X-SW-Source: 2004-10/txt/msg00127.txt.bz2 This is a multi-part message in MIME format. --Boundary_(ID_D/d9ooRkoiwenRGrqPUQ5A) Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7BIT Content-length: 357 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 * cgen-defs.h (ENDSWITCH): Changed to compile with gcc-3.4.2. Regards, Kazuhiro Inaoka --Boundary_(ID_D/d9ooRkoiwenRGrqPUQ5A) Content-type: text/plain; name=cgen-defs.patch Content-transfer-encoding: 7BIT Content-disposition: inline; filename=cgen-defs.patch Content-length: 868 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 */ --Boundary_(ID_D/d9ooRkoiwenRGrqPUQ5A)--