From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dan.rpsys.net (5751f4a1.skybroadband.com [87.81.244.161]) by mail.openembedded.org (Postfix) with ESMTP id C9E0377217 for ; Sat, 30 Jan 2016 10:57:10 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by dan.rpsys.net (8.14.4/8.14.4/Debian-4.1ubuntu1) with ESMTP id u0UAv6oD007418; Sat, 30 Jan 2016 10:57:06 GMT Received: from dan.rpsys.net ([127.0.0.1]) by localhost (dan.rpsys.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id eKs99tk3hs90; Sat, 30 Jan 2016 10:57:06 +0000 (GMT) Received: from hex ([192.168.3.34]) (authenticated bits=0) by dan.rpsys.net (8.14.4/8.14.4/Debian-4.1ubuntu1) with ESMTP id u0UAv33j007402 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=NOT); Sat, 30 Jan 2016 10:57:04 GMT Message-ID: <1454151423.10340.84.camel@linuxfoundation.org> From: Richard Purdie To: Khem Raj , Hongxu Jia Date: Sat, 30 Jan 2016 10:57:03 +0000 In-Reply-To: References: <718c652c42b84c58a04e9c33261b30ba@XBOX02.axis.com> <56AC1101.70209@windriver.com> X-Mailer: Evolution 3.16.5-1ubuntu3.1 Mime-Version: 1.0 Cc: Peter Kjellerstedt , "openembedded-core@lists.openembedded.org" Subject: Re: [PATCH 2/5] gcc-5.3.inc/base.bbclass: add gcc option to not record -fdebug-prefix-map to debugging info X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 30 Jan 2016 10:57:11 -0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit On Fri, 2016-01-29 at 18:36 -0800, Khem Raj wrote: > > On Jan 29, 2016, at 5:25 PM, Hongxu Jia > > wrote: > > > > On 01/30/2016 01:47 AM, Peter Kjellerstedt wrote: > > > Wouldn't it be better to swap the first and second commit and > > > then > > > move the addition of -gno-record-debug-prefix-map to the other > > > commit > > > where -fdebug-prefix-map are added. > > > > OK > > > > > > > > You must also remember that not all use the compiler provided by > > > OE-Core, so adding -gno-record-debug-prefix-map unconditionally > > > to > > > DEBUG_CFLAGS will break with unpatched compilers... (This also > > > indicates that "Upstream-Status: Inappropriate [oe specific]" may > > > not be quite right if you want this to be supported by other > > > compiler versions). > > > > Agree, we should conditionally add -gno-record-debug-prefix-map to > > support other compiler. Thank you for pointing it out. > > its not only non gcc compilers, we also have gcc 4.9 still. I think we do likely need to patch 4.9. For other compilers than that, or other compilers, I'd suggest that people can either define a set of DEBUG_CFLAGS, or set: DEBUG_CFLAGS_remove = "-gno-record-debug-prefix-map" to avoid problems. I'm not sure making it conditional in some way is any better than just using the above line. Cheers, Richard