summaryrefslogtreecommitdiff
path: root/gcc/fixinc
diff options
context:
space:
mode:
authorneroden <neroden@138bc75d-0d04-0410-961f-82ee72b054a4>2003-08-26 23:50:17 +0000
committerneroden <neroden@138bc75d-0d04-0410-961f-82ee72b054a4>2003-08-26 23:50:17 +0000
commit03328b44017fc600af8deb43f02aedda2f07934f (patch)
tree55bddeb505344ff0313cb6c3413ace5b27391f95 /gcc/fixinc
parent36b8a2afb2057cf01f2b6b099657e3b206c095de (diff)
downloadgcc-03328b44017fc600af8deb43f02aedda2f07934f.tar.gz
* fixinc/inclhack.def (ptx_pwd_h): New disabled fix, ported
from fixinc.ptx. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@70830 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/fixinc')
-rw-r--r--gcc/fixinc/inclhack.def24
1 files changed, 24 insertions, 0 deletions
diff --git a/gcc/fixinc/inclhack.def b/gcc/fixinc/inclhack.def
index d82190d5ac8..34e4b871119 100644
--- a/gcc/fixinc/inclhack.def
+++ b/gcc/fixinc/inclhack.def
@@ -2002,6 +2002,30 @@ fix = {
/*
+ * In pwd.h, PTX 1.x needs stdio.h included since FILE * was added in a
+ * prototype later on in the file. (It's not clear that this is
+ * still true, and even if it is, FILE * may be added after this fix runs by
+ * fixproto.)
+ */
+#ifdef PTX
+fix = {
+ hackname = ptx_pwd_h;
+ files = pwd.h;
+ select = 'FILE \*';
+ bypass = 'stdio.h';
+ sed = "/#include <sys\\/types\\.h/a\\\n"
+ "\\\n"
+ "#if defined(__STDC__) || defined(__cplusplus)\\\n"
+ "#include <stdio.h>\\\n"
+ "#endif /* __STDC__ */\\\n"
+ "\n";
+ test_text = "#include <sys/types.h>\n"
+ "void foo (FILE *)";
+};
+#endif
+
+
+/*
* On DYNIX/ptx, sys/mc_param.h has an embedded asm for the cpuid instruction
* on the P5. This is not used by anything else so we ifdef it out.
* Current GCC doesn't seem to complain about the asm, though.