From 0d2a12bcafeca568584cce7492b8ae0b27b7bd51 Mon Sep 17 00:00:00 2001 From: jdp Date: Mon, 15 Mar 1999 21:56:54 +0000 Subject: Add "-fkeep-inline-functions" to CFLAGS so that higher optimization levels (-O3 and above) won't remove essential code. Many thanks to Dmitrij Tejblum 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. --- lib/csu/amd64/Makefile | 5 ++--- lib/csu/i386-elf/Makefile | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) (limited to 'lib/csu') diff --git a/lib/csu/amd64/Makefile b/lib/csu/amd64/Makefile index 4d833aa..0fcd091 100644 --- a/lib/csu/amd64/Makefile +++ b/lib/csu/amd64/Makefile @@ -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 diff --git a/lib/csu/i386-elf/Makefile b/lib/csu/i386-elf/Makefile index 4d833aa..0fcd091 100644 --- a/lib/csu/i386-elf/Makefile +++ b/lib/csu/i386-elf/Makefile @@ -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 -- cgit v1.1