summaryrefslogtreecommitdiff
path: root/bsd-core
diff options
context:
space:
mode:
authorEric Anholt <anholt@freebsd.org>2006-05-17 05:41:48 +0000
committerEric Anholt <anholt@freebsd.org>2006-05-17 05:41:48 +0000
commit7ea4a88fa30d9608b09dc0052b20e54301db547a (patch)
treeb892079a3fcdd4bc3729766286c42126b4cddc7d /bsd-core
parentd365f031292d0f50755a3049c410443b1075fff5 (diff)
Add the workaround that's in the kernel to suppress GCC's warning about
refusal to inline functions that (in some cases, at least) aren't that large.
Diffstat (limited to 'bsd-core')
-rw-r--r--bsd-core/radeon/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/bsd-core/radeon/Makefile b/bsd-core/radeon/Makefile
index 3348a869..7fe27f60 100644
--- a/bsd-core/radeon/Makefile
+++ b/bsd-core/radeon/Makefile
@@ -8,6 +8,10 @@ SRCS = r300_cmdbuf.c radeon_cp.c radeon_drv.c radeon_state.c radeon_irq.c \
SRCS += device_if.h bus_if.h pci_if.h opt_drm.h
CFLAGS += ${DEBUG_FLAGS} -I. -I..
+.if ${CC} != "icc"
+CFLAGS += --param large-function-growth=1000
+.endif
+
.if defined(DRM_DEBUG)
DRM_DEBUG_OPT= "\#define DRM_DEBUG 1"
.endif