diff mbox series

remove -finline-functions from CFLAGS

Message ID 20181221000107.31114-1-luc.vanoostenryck@gmail.com (mailing list archive)
State Mainlined, archived
Headers show
Series remove -finline-functions from CFLAGS | expand

Commit Message

Luc Van Oostenryck Dec. 21, 2018, 12:01 a.m. UTC
By default, sparse is compiled with -finline-functions
but this flag as no effect on the generated code (since
gcc's defaults at -O2 already do automatic inlining).

So, remove this flag.

Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
---
 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/Makefile b/Makefile
index e3e9bc64f..2a3e44347 100644
--- a/Makefile
+++ b/Makefile
@@ -6,7 +6,7 @@  OS = linux
 
 
 CC = gcc
-CFLAGS = -O2 -finline-functions -g
+CFLAGS = -O2 -g
 CFLAGS += -Wall -Wwrite-strings
 LD = gcc
 AR = ar