The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/conf/bsd.kern.mk

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

    1 # $FreeBSD: src/share/mk/bsd.kern.mk,v 1.17.2.1 2001/08/01 16:56:56 obrien Exp $
    2 
    3 # Warning flags for compiling the kernel and components of the kernel.
    4 #
    5 # Note that -Werror is on by default. To turn it off, e.g. when working
    6 # on adding new warning options, NO_WERROR in make.conf (or on make(1)'s
    7 # command line) should be of material assistance.
    8 #
    9 
   10 CWARNFLAGS?=    -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes \
   11                 -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual \
   12                 -Wold-style-definition -Wold-style-declaration -Wno-inline \
   13                 -Wno-pointer-sign -std=c99
   14 
   15 .if ${CCVER} == "gcc47"
   16 CWARNFLAGS+=    -Wno-unused-but-set-variable
   17 .endif
   18 
   19 CFLAGS+= -finline-limit=${INLINE_LIMIT}
   20 CFLAGS+= --param inline-unit-growth=100
   21 CFLAGS+= --param large-function-growth=1000
   22 
   23 # Require the proper use of 'extern' for variables.  -fno-common will
   24 # cause duplicate declarations to generate a link error.
   25 #
   26 CFLAGS+=        -fno-common
   27 
   28 # Prevent GCC 3.x from making certain libc based inline optimizations
   29 #
   30 CFLAGS+=        -ffreestanding
   31 
   32 .include "../platform/${MACHINE_PLATFORM}/conf/kern.mk"

Cache object: 5c001c19b1b0cbff4f33e9b0b60cc2f6


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.