Override optimization for files that break gcc.

This commit is contained in:
eeh 2000-06-08 21:25:18 +00:00
parent e5cf411171
commit 1dfab2070a
2 changed files with 18 additions and 3 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.sparc64,v 1.23 2000/05/09 00:56:27 hubertf Exp $
# $NetBSD: Makefile.sparc64,v 1.24 2000/06/08 21:25:18 eeh Exp $
# Makefile for NetBSD
#
@ -67,7 +67,7 @@ INCLUDES= -I. -I$S/arch -I$S -nostdinc
CPPFLAGS= ${INCLUDES} ${IDENT} ${PARAM} -D_KERNEL ${SVR4}
CWARNFLAGS= -Wimplicit -Wunused -Wswitch -Wcomment -Wtrigraphs -Wchar-subscripts -Wparentheses -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith
#CWARNFLAGS= -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes
CFLAGS= ${DEBUG} ${CWARNFLAGS} -O2 -Wa,-Av9a -mno-fpu
CFLAGS= ${DEBUG} ${COPTS} ${CWARNFLAGS} -O2 -Wa,-Av9a -mno-fpu
AFLAGS= -x assembler-with-cpp -Wa,-Av9a -traditional-cpp -D_LOCORE
LINKFLAGS= -N -p -Ttext f1000000 -e start >lderr
STRIPFLAGS= -g
@ -95,6 +95,7 @@ LIBCOMPAT= ${COMPATLIB_PROF}
# HOSTED, and SUFFIX is the file suffix, capitalized (e.g. C for a .c file).
NORMAL_C= ${CC} ${CFLAGS} ${CPPFLAGS} ${PROF} -c $<
NOOPT_C= ${CC} ${CPPFLAGS} ${PROF} -c $<
NORMAL_S= ${CC} ${AFLAGS} ${CPPFLAGS} -c $<
%OBJS

View File

@ -1,4 +1,4 @@
# $NetBSD: files.sparc64,v 1.29 2000/05/19 05:26:17 eeh Exp $
# $NetBSD: files.sparc64,v 1.30 2000/06/08 21:25:18 eeh Exp $
# @(#)files.sparc64 8.1 (Berkeley) 7/19/93
# sparc64-specific configuration info
@ -8,6 +8,20 @@ maxpartitions 8
maxusers 2 8 1024
#
# XXXXXXXXXXX
#
# These files must be compiled w/no omtimization in 64-bit mode
#
file net/if_ppp.c ppp needs-count compile-with "${NOOPT_C}"
file net/if_loop.c loop needs-count compile-with "${NOOPT_C}"
file net/if_sl.c sl needs-count compile-with "${NOOPT_C}"
#
# XXXXXXXXXXX
#
define mainbus {}
device mainbus: pcibus, mainbus
attach mainbus at root