Disable INCLUDE_CONFIG_FILE if compiling with PCC, since PCC cannot
handle 80KB string literals. Documented as hack.
This commit is contained in:
parent
b7ae6e7fa1
commit
fb80c8cd2d
14
doc/HACKS
14
doc/HACKS
@ -1,4 +1,4 @@
|
||||
# $NetBSD: HACKS,v 1.103 2008/05/16 13:16:25 tsutsui Exp $
|
||||
# $NetBSD: HACKS,v 1.104 2008/07/12 11:50:07 gmcgarry Exp $
|
||||
#
|
||||
# This file is intended to document workarounds for currently unsolved
|
||||
# (mostly) compiler bugs.
|
||||
@ -409,6 +409,18 @@ port vax
|
||||
PR#32907.
|
||||
kcah
|
||||
|
||||
hack pcc 0.9.9 large string literals
|
||||
cdat 8 July 2008
|
||||
who gmcgarry
|
||||
file sys/conf/param.c : 1.58
|
||||
descr
|
||||
Workaround for pcc 0.9.9 not handling large string literals
|
||||
which causes kernels with 'options INCLUDE_CONFIG_FILE' to
|
||||
fail compilation.
|
||||
There is a proposal on the pcc mailing list to stuff config
|
||||
file in ELF section.
|
||||
kcah
|
||||
|
||||
port arm
|
||||
|
||||
hack gcc-unsigned-compare
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: param.c,v 1.57 2008/07/02 17:28:57 ad Exp $ */
|
||||
/* $NetBSD: param.c,v 1.58 2008/07/12 11:50:07 gmcgarry Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1980, 1986, 1989 Regents of the University of California.
|
||||
@ -37,7 +37,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: param.c,v 1.57 2008/07/02 17:28:57 ad Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: param.c,v 1.58 2008/07/12 11:50:07 gmcgarry Exp $");
|
||||
|
||||
#include "opt_hz.h"
|
||||
#include "opt_rtc_offset.h"
|
||||
@ -69,8 +69,13 @@ __KERNEL_RCSID(0, "$NetBSD: param.c,v 1.57 2008/07/02 17:28:57 ad Exp $");
|
||||
#include <sys/msg.h>
|
||||
#endif
|
||||
|
||||
/*
|
||||
* PCC cannot handle the 80KB string literal.
|
||||
*/
|
||||
#if !defined(__PCC__)
|
||||
#define CONFIG_FILE
|
||||
#include "config_file.h"
|
||||
#endif
|
||||
|
||||
/*
|
||||
* System parameter formulae.
|
||||
|
Loading…
Reference in New Issue
Block a user