From 097d9efdbe7992764136205f80782f74dc9b39bd Mon Sep 17 00:00:00 2001 From: Joachim Nilsson Date: Thu, 24 Oct 2019 08:43:12 +0200 Subject: [PATCH] Replace default optimization flag with -fno-strict-aliasing The -fomit-frame-pointer is part of the standard optimization flags in -O1 and above, so no need to enable it explicitly. For reference https://lkml.org/lkml/2003/2/26/158 Signed-off-by: Joachim Nilsson --- src/Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Makefile.am b/src/Makefile.am index 25d146c..31493c0 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -22,7 +22,7 @@ noinst_PROGRAMS = tsyslogd syslog_tst AM_CFLAGS = -W -Wall -Wextra AM_CFLAGS += -Wno-unused-result -Wno-unused-parameter -AM_CFLAGS += -fomit-frame-pointer -fno-strength-reduce +AM_CFLAGS += -fno-strict-aliasing -fno-strength-reduce syslogd_SOURCES = syslogd.c pidfile.c pidfile.h syslogd_CPPFLAGS = -D_BSD_SOURCE -D_DEFAULT_SOURCE