Add "-fkeep-inline-functions" to CFLAGS so that higher optimization

levels (-O3 and above) won't remove essential code.  Many thanks
to Dmitrij Tejblum <dima@tejblum.dnttm.rssi.ru> for pointing out
that it was the optimizer's removal of this code that caused make
world with -O3 to break.  With this change, make buildworld now
completes.
This commit is contained in:
John Polstra 1999-03-15 21:56:54 +00:00
parent a0dd8319bc
commit c30965b3bd
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=44789
2 changed files with 4 additions and 6 deletions

View File

@ -1,13 +1,12 @@
#
# $Id: Makefile,v 1.3 1999/01/09 21:50:56 jdp Exp $
# $Id: Makefile,v 1.4 1999/03/12 17:33:26 jdp Exp $
#
SRCS= crt1.c crtbegin.c crtend.c crti.S crtn.S
OBJS= ${SRCS:N*.h:R:S/$/.o/g}
OBJS+= gcrt1.o
SOBJS= crtbegin.So crtend.So
CFLAGS+= -elf
CFLAGS+= -Wall
CFLAGS+= -elf -Wall -fkeep-inline-functions
LDFLAGS+= -elf
NOMAN= true
NOPIC= true

View File

@ -1,13 +1,12 @@
#
# $Id: Makefile,v 1.3 1999/01/09 21:50:56 jdp Exp $
# $Id: Makefile,v 1.4 1999/03/12 17:33:26 jdp Exp $
#
SRCS= crt1.c crtbegin.c crtend.c crti.S crtn.S
OBJS= ${SRCS:N*.h:R:S/$/.o/g}
OBJS+= gcrt1.o
SOBJS= crtbegin.So crtend.So
CFLAGS+= -elf
CFLAGS+= -Wall
CFLAGS+= -elf -Wall -fkeep-inline-functions
LDFLAGS+= -elf
NOMAN= true
NOPIC= true