From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on gnuweeb.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NO_DNS_FOR_FROM,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 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 List-Id: -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