aboutsummaryrefslogtreecommitdiff
path: root/gcc/fixinc/inclhack.def
diff options
context:
space:
mode:
authorNathanael Nerode <neroden@gcc.gnu.org>2003-08-12 07:11:38 +0000
committerNathanael Nerode <neroden@gcc.gnu.org>2003-08-12 07:11:38 +0000
commit825d7d648cbc5b0b35dcadc04af6ac9848181241 (patch)
tree0260ca89368b12498e7e37b2f09c2948b32df9ac /gcc/fixinc/inclhack.def
parent2b81b2c9703efa4c7adba975a0c9802672cc1876 (diff)
downloadgcc-825d7d648cbc5b0b35dcadc04af6ac9848181241.zip
gcc-825d7d648cbc5b0b35dcadc04af6ac9848181241.tar.gz
gcc-825d7d648cbc5b0b35dcadc04af6ac9848181241.tar.bz2
fixinc/inclhack.def (svr4_krnl): Rename from svr4_kernel.
fixinc/inclhack.def (svr4_krnl): Rename from svr4_kernel. Enable for selected machines. Comment heavily. fixinc/fixincl.x: Rebuild. fixinc/tests/base/fs/rfs/rf_cache.h: New file. From-SVN: r70362
Diffstat (limited to 'gcc/fixinc/inclhack.def')
-rw-r--r--gcc/fixinc/inclhack.def32
1 files changed, 25 insertions, 7 deletions
diff --git a/gcc/fixinc/inclhack.def b/gcc/fixinc/inclhack.def
index c342f92..374b860 100644
--- a/gcc/fixinc/inclhack.def
+++ b/gcc/fixinc/inclhack.def
@@ -2788,11 +2788,22 @@ fix = {
/*
- * set ifdef _KERNEL
- */
-#ifdef SVR4
-fix = {
- hackname = svr4_kernel;
+ * Wrap some files on System V r4 and DYNIX/ptx systems with
+ * #ifdef _KERNEL, presumably to prevent kernel headers from
+ * leaking into userspace. This may not be necessary at all,
+ * but it was in the old scripts, so it seems safest to keep it for now.
+ */
+fix = {
+ /* Can't name this with _kernel, or the test case will hit the bypass! */
+ hackname = svr4_krnl;
+ /* Since I'm rather unsure about the validity of this, limit it
+ * to the specific systems it was operating on before. It should
+ * also be bypassed for i?86-*-sysv4.3uw2, by that rule, but I didn't
+ * see an easy way to do that. Hopefully it will be harmless
+ * in any case. -- Nathanael */
+ mach = '*-*-sysv4*';
+ mach = 'i?86-sequent-ptx*';
+ mach = 'i?86-sequent-sysv3*';
files = fs/rfs/rf_cache.h;
files = sys/erec.h;
files = sys/err.h;
@@ -2801,14 +2812,21 @@ fix = {
files = sys/map.h;
files = sys/cmn_err.h;
files = sys/kdebugger.h;
+
+ /* This bypass will match _KERNEL, __KERNEL, __KERNEL__, etc.
+ * It will also match SVR4_KERNEL_CHECK, which means that the
+ * testsuite case will always be bypassed. Which is fine with me. */
bypass = '_KERNEL';
- c_fix = wrap;
+ c_fix = wrap;
c_fix_arg = "#ifdef _KERNEL\n";
c_fix_arg = "#endif /* _KERNEL */\n";
+
+ /* There's no reasonable test for this given that we don't know exactly
+ * what problem inspired it in the first place. */
test_text = "";
};
-#endif
+
/*
* Delete any #defines of `__i386' which may be present in <ieeefp.h>. They