Bump GCC max-inline-insns-single in libiconv_modules and grep
This is required by our FORTIFY_SOURCE implementation as it does more inlining. As a rule of thumb, FORTIFY_SOURCE doubles the number of inlines except that in grep inlining blows up for some reason.
This commit is contained in:
parent
ca2e4ecd73
commit
3c0948a6b2
@ -2,6 +2,6 @@
|
||||
|
||||
SHLIB= BIG5
|
||||
SRCS+= citrus_big5.c
|
||||
CFLAGS.gcc+= --param max-inline-insns-single=32
|
||||
CFLAGS.gcc+= --param max-inline-insns-single=64
|
||||
|
||||
.include <bsd.lib.mk>
|
||||
|
@ -2,6 +2,6 @@
|
||||
|
||||
SHLIB= EUC
|
||||
SRCS+= citrus_euc.c
|
||||
CFLAGS.gcc+= --param max-inline-insns-single=32
|
||||
CFLAGS.gcc+= --param max-inline-insns-single=64
|
||||
|
||||
.include <bsd.lib.mk>
|
||||
|
@ -2,6 +2,6 @@
|
||||
|
||||
SHLIB= EUCTW
|
||||
SRCS+= citrus_euctw.c
|
||||
CFLAGS.gcc+= --param max-inline-insns-single=32
|
||||
CFLAGS.gcc+= --param max-inline-insns-single=64
|
||||
|
||||
.include <bsd.lib.mk>
|
||||
|
@ -2,6 +2,6 @@
|
||||
|
||||
SHLIB= UTF1632
|
||||
SRCS+= citrus_utf1632.c
|
||||
CFLAGS.gcc+= --param max-inline-insns-single=32
|
||||
CFLAGS.gcc+= --param max-inline-insns-single=64
|
||||
|
||||
.include <bsd.lib.mk>
|
||||
|
@ -2,6 +2,6 @@
|
||||
|
||||
SHLIB= UTF7
|
||||
SRCS+= citrus_utf7.c
|
||||
CFLAGS.gcc+= --param max-inline-insns-single=32
|
||||
CFLAGS.gcc+= --param max-inline-insns-single=64
|
||||
|
||||
.include <bsd.lib.mk>
|
||||
|
@ -2,6 +2,6 @@
|
||||
|
||||
SHLIB= iconv_std
|
||||
SRCS+= citrus_iconv_std.c
|
||||
CFLAGS.gcc+= --param max-inline-insns-single=32
|
||||
CFLAGS.gcc+= --param max-inline-insns-single=64
|
||||
|
||||
.include <bsd.lib.mk>
|
||||
|
@ -20,6 +20,8 @@ SRCS= file.c grep.c queue.c util.c
|
||||
SRCS+= fastmatch.c hashtable.c tre-compile.c tre-fastmatch.c xmalloc.c
|
||||
CFLAGS+=-I${.CURDIR}/regex
|
||||
|
||||
CFLAGS.gcc+= --param max-inline-insns-single=500
|
||||
|
||||
.if ${MK_BSD_GREP} == "yes"
|
||||
LINKS= ${BINDIR}/grep ${BINDIR}/egrep \
|
||||
${BINDIR}/grep ${BINDIR}/fgrep \
|
||||
|
Loading…
x
Reference in New Issue
Block a user