From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) by dpdk.org (Postfix) with ESMTP id BA7BD7CC9 for ; Mon, 5 Jun 2017 15:12:21 +0200 (CEST) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 46B0C20C7E; Mon, 5 Jun 2017 09:12:21 -0400 (EDT) Received: from frontend2 ([10.202.2.161]) by compute1.internal (MEProxy); Mon, 05 Jun 2017 09:12:21 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc:x-sasl-enc; s=mesmtp; bh=sj+Qz2BC5ANkws6 I74xzvBFklitq2Fv+64jUslfRRfs=; b=Bj/UInHJWISYLQmDCMdXTh331+vdTHz ErTQm25F2/BQ/JdLcXru+L5Zc32/zRej68r9dqLtsVI3DdMVUaMceek/WFUUP/XB 9YMAFK8UK3Kd6+r6cA5OSpEMFTbHE7wbF2CRbeyPd+/KeK8uY3XkgSKzDv/tliSq ZeDTr/Wwd2Yw= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc:x-sasl-enc; s= fm1; bh=sj+Qz2BC5ANkws6I74xzvBFklitq2Fv+64jUslfRRfs=; b=DNs9T5dq guJm3oQ0Ur1mNlCSfMDYZkAxH05bvKDxKNPce8Q/Bx8dTtZqD1CAANRC9eVkn1je IlMPO5SZOZdQ8UhTr+X1Sk2ARLUPzXui0qux5HR9zY3R/2uzHYSzorDX1o60PQnL ZXkWQCgn+pvBjp3m5RhEatUUN7kV+2Rn3ALL3TPPIJrQGWPtKCkJyKoKfjlaqDH5 GaZBNbXSCdRjHNGEihRD0PF+f98W+r+LDb3X3yI9sZaUT3YAEvHzwv33NU2H2V+R O8+irTNI0BK6mrre6KoAoEFISM6/2ORmGf3i/o3jlPzQ3lrbc1bTwDT7Hm8YSfph 7M36VdiMeKhMIw== X-ME-Sender: X-Sasl-enc: s0iLlLyRrnTY9VjmRciYW/RwKG8rcKW5EKGYfbpbNhOR 1496668341 Received: from xps.localnet (184.203.134.77.rev.sfr.net [77.134.203.184]) by mail.messagingengine.com (Postfix) with ESMTPA id F3BD6247DD; Mon, 5 Jun 2017 09:12:20 -0400 (EDT) From: Thomas Monjalon To: Sangjin Han Cc: dev@dpdk.org, Bruce Richardson Date: Mon, 05 Jun 2017 15:12:20 +0200 Message-ID: <2340758.4seTUyqQv4@xps> In-Reply-To: <20170602093021.GB51388@bricha3-MOBL3.ger.corp.intel.com> References: <1496380066-28535-1-git-send-email-sangjin@eecs.berkeley.edu> <20170602093021.GB51388@bricha3-MOBL3.ger.corp.intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-dev] [PATCH v2] lpm: fix build error on g++ with -O0 option X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Jun 2017 13:12:22 -0000 02/06/2017 11:30, Bruce Richardson: > On Fri, Jun 02, 2017 at 05:07:46AM +0000, Sangjin Han wrote: > > When rte_lpm.h is used on x86, -O0 option (no optimization at all) > > given to gcc causes a compile error like this: > > > > error: the last argument must be an 8-bit immediate > > i24 = _mm_srli_si128(i24, sizeof(uint64_t)); > > > > -O0 option is useful for debugging and code coverage measurement, but > > this error prevents DPDK programs from building. This patch replaces > > "sizeof(uint64_t)" with a constant literal "8" to work around the issue. > > The issue occurs on gcc/g++ versions from 4.8 to 5. > > > > Signed-off-by: Sangjin Han > Acked-by: Bruce Richardson Applied (with indent fix), thanks