From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id DBCE6C433F5 for ; Thu, 10 Mar 2022 10:32:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241276AbiCJKdo (ORCPT ); Thu, 10 Mar 2022 05:33:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58470 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241434AbiCJKde (ORCPT ); Thu, 10 Mar 2022 05:33:34 -0500 Received: from gnuweeb.org (gnuweeb.org [51.81.211.47]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 615AF108B for ; Thu, 10 Mar 2022 02:32:30 -0800 (PST) Received: from localhost.localdomain (unknown [138.197.159.143]) by gnuweeb.org (Postfix) with ESMTPSA id 9A2197E2BF; Thu, 10 Mar 2022 10:32:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gnuweeb.org; s=default; t=1646908349; bh=OMEfabtPm7vY8fJO6cczoM+3Wl07SdHJQA2hhu2EJjk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=RHyE3ncvASDFkuGRFy4oJwgzx0+E72zoLTFyDlwHFR9cP/qfK3bnlItN2OFE8yNCI YSt1Y1yfo73lCWKJjJ9RAfNkyaKUsGXfrULm7ehVo3eQmIltBOTrkWlviSJk0USKje W5LI2JswZoFsfCd3n6TX2N6Vka7UStiGuzKo3jZqYft2vmgk5R8XTRq5Yer+O7An1U c0cYPcc7uxG/+thCMeHkaCMasYK41RLY8KSR5rD8SvkyMi+tTj/JVfYh1njB4pP2kk n3VCDkd6qmDxS9OZZrfokcic7HCfdO/AtfbbASNm25EYmUt30faAtx3M+UiYasZVTa dYfAb20EsCDLw== From: Alviro Iskandar Setiawan To: Jens Axboe Cc: Alviro Iskandar Setiawan , Pavel Begunkov , Ammar Faizi , Alviro Iskandar Setiawan , io-uring , gwml Subject: [PATCH liburing v2 1/4] src/Makefile: Remove `-fomit-frame-pointer` from default build Date: Thu, 10 Mar 2022 10:32:21 +0000 Message-Id: <20220310103224.1675123-2-alviro.iskandar@gnuweeb.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20220310103224.1675123-1-alviro.iskandar@gnuweeb.org> References: <20220310103224.1675123-1-alviro.iskandar@gnuweeb.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: io-uring@vger.kernel.org -fomit-frame-pointer is already turned on by -O1 optimization flag. The liburing default compilation uses -O2 optimization, -O2 turns on all optimization flags specified by -O1. Therefore, we don't need to specify -fomit-frame-pointer here. Remove it. Link: https://gcc.gnu.org/onlinedocs/gcc/Optimize-Options.html Signed-off-by: Alviro Iskandar Setiawan --- src/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Makefile b/src/Makefile index 3e1192f..f19d45e 100644 --- a/src/Makefile +++ b/src/Makefile @@ -8,7 +8,7 @@ libdevdir ?= $(prefix)/lib CPPFLAGS ?= override CPPFLAGS += -D_GNU_SOURCE \ -Iinclude/ -include ../config-host.h -CFLAGS ?= -g -fomit-frame-pointer -O2 -Wall -Wextra -fno-stack-protector +CFLAGS ?= -g -O2 -Wall -Wextra -fno-stack-protector override CFLAGS += -Wno-unused-parameter -Wno-sign-compare -DLIBURING_INTERNAL SO_CFLAGS=-fPIC $(CFLAGS) L_CFLAGS=$(CFLAGS) -- 2.25.1