From owner-freebsd-ports-bugs@FreeBSD.ORG Thu Jul 4 13:50:00 2013 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id E702A954 for ; Thu, 4 Jul 2013 13:50:00 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id C94AB1780 for ; Thu, 4 Jul 2013 13:50:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r64Do09g063687 for ; Thu, 4 Jul 2013 13:50:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r64Do0Iq063686; Thu, 4 Jul 2013 13:50:00 GMT (envelope-from gnats) Resent-Date: Thu, 4 Jul 2013 13:50:00 GMT Resent-Message-Id: <201307041350.r64Do0Iq063686@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Tijl Coosemans Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 10D056F9 for ; Thu, 4 Jul 2013 13:44:36 +0000 (UTC) (envelope-from tijl@coosemans.org) Received: from mailrelay001.isp.belgacom.be (mailrelay001.isp.belgacom.be [195.238.6.51]) by mx1.freebsd.org (Postfix) with ESMTP id A26BF172A for ; Thu, 4 Jul 2013 13:44:35 +0000 (UTC) Received: from 139.159-241-81.adsl-dyn.isp.belgacom.be (HELO kalimero.tijl.coosemans.org) ([81.241.159.139]) by relay.skynet.be with ESMTP; 04 Jul 2013 15:44:28 +0200 Received: from kalimero.tijl.coosemans.org (kalimero.tijl.coosemans.org [127.0.0.1]) by kalimero.tijl.coosemans.org (8.14.7/8.14.7) with ESMTP id r64DiQuD006481 for ; Thu, 4 Jul 2013 15:44:27 +0200 (CEST) (envelope-from tijl@kalimero.tijl.coosemans.org) Received: (from tijl@localhost) by kalimero.tijl.coosemans.org (8.14.7/8.14.7/Submit) id r64DiQH0006480; Thu, 4 Jul 2013 15:44:26 +0200 (CEST) (envelope-from tijl) Message-Id: <201307041344.r64DiQH0006480@kalimero.tijl.coosemans.org> Date: Thu, 4 Jul 2013 15:44:26 +0200 (CEST) From: Tijl Coosemans To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.114 Subject: ports/180257: [patch] devel/gdb: add USE_CSTD=gnu89 for clang X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Tijl Coosemans List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Jul 2013 13:50:01 -0000 >Number: 180257 >Category: ports >Synopsis: [patch] devel/gdb: add USE_CSTD=gnu89 for clang >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Thu Jul 04 13:50:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Tijl Coosemans >Release: FreeBSD 10.0-CURRENT i386 >Organization: >Environment: >Description: Problems with inline and clang are because clang defaults to C99. By adding USE_CSTD=gnu89 patch-include-cgen-basic-ops.h can be removed. >How-To-Repeat: >Fix: --- gdb.patch begins here --- Index: devel/gdb/Makefile =================================================================== --- devel/gdb/Makefile (revision 322214) +++ devel/gdb/Makefile (working copy) @@ -13,6 +13,7 @@ COMMENT= GNU GDB of newer version than c LICENSE= GPLv3 USE_BZIP2= yes +USE_CSTD= gnu89 USE_GMAKE= yes USES= iconv GNU_CONFIGURE= yes Index: devel/gdb/files/patch-include-cgen-basic-ops.h =================================================================== --- devel/gdb/files/patch-include-cgen-basic-ops.h (revision 322214) +++ devel/gdb/files/patch-include-cgen-basic-ops.h (working copy) @@ -1,43 +0,0 @@ ---- include/cgen/basic-ops.h.orig 2013-03-07 17:31:21.000000000 +0100 -+++ include/cgen/basic-ops.h 2013-03-07 17:31:28.000000000 +0100 -@@ -24,11 +24,16 @@ - - #include - --#if defined (__GNUC__) && ! defined (SEMOPS_DEFINE_INLINE) -+#if defined (__GNUC__) && ! defined (SEMOPS_DEFINE_INLINE) && ! defined (__clang__) - #define SEMOPS_DEFINE_INLINE - #define SEMOPS_INLINE extern inline - #else --#define SEMOPS_INLINE -+# if defined (__clang__) && ! defined (SEMOPS_DEFINE_INLINE) -+# define SEMOPS_DEFINE_INLINE -+# define SEMOPS_INLINE static inline -+# else -+# define SEMOPS_INLINE -+# endif - #endif - - /* These don't really have a mode. */ -@@ -295,11 +300,16 @@ - significant and word number 0 is the most significant word. - ??? May also wish an endian-dependent version. Later. */ - --QI SUBWORDSIQI (SI, int); --HI SUBWORDSIHI (SI, int); --QI SUBWORDDIQI (DI, int); --HI SUBWORDDIHI (DI, int); --SI SUBWORDDISI (DI, int); -+#if defined (__clang__) && defined (SEMOPS_DEFINE_INLINE) -+#define SEMOPS_STATIC static -+#else -+#define SEMOPS_STATIC -+#endif -+SEMOPS_STATIC QI SUBWORDSIQI (SI, int); -+SEMOPS_STATIC HI SUBWORDSIHI (SI, int); -+SEMOPS_STATIC QI SUBWORDDIQI (DI, int); -+SEMOPS_STATIC HI SUBWORDDIHI (DI, int); -+SEMOPS_STATIC SI SUBWORDDISI (DI, int); - - #ifdef SEMOPS_DEFINE_INLINE - --- gdb.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted: