From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx2.suse.de (mx2.suse.de [195.135.220.15]) by dpdk.org (Postfix) with ESMTP id 4968DFFA for ; Wed, 23 Mar 2016 10:56:04 +0100 (CET) X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 4BB20AB09; Wed, 23 Mar 2016 09:56:03 +0000 (UTC) To: Thomas Monjalon References: <1458666816-29778-1-git-send-email-mchandras@suse.de> <2653966.ML0Fr8PsdQ@xps13> <56F1CC20.50707@suse.de> <10969139.eXE434OmqC@xps13> Cc: dev@dpdk.org From: Markos Chandras Message-ID: <56F26832.8020805@suse.de> Date: Wed, 23 Mar 2016 09:56:02 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 In-Reply-To: <10969139.eXE434OmqC@xps13> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH] mk: toolchain: gcc: query the compiler macros to obtain the gcc version X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Mar 2016 09:56:04 -0000 On 03/23/2016 09:49 AM, Thomas Monjalon wrote: > 2016-03-22 22:50, Markos Chandras: >> On 22/03/16 22:34, Thomas Monjalon wrote: >>> 2016-03-22 17:13, Markos Chandras: >>>> This is similar to what's being used in the Linux kernel. Querying the >>>> GCC macros directly gives more accurate results compared to -dumpversion >>>> which could vary across distributions. >>>> >>>> Signed-off-by: Markos Chandras >>>> --- >>>> In openSUSE Tumbleweed (and in any other SUSE distribution which >>>> uses (or will use) gcc >= 5), gcc -dumpversion returns '5'. This is on >>>> purpose as discussed in https://bugzilla.opensuse.org/show_bug.cgi?id=941428 >>> >>> Good to know. It could be in the commit log. >> >> I can add this information to the commit message and send a v2 if needed. > > I will apply with this info. Thank you Thomas. -- markos