From: Nathanael Nerode Date: Tue, 26 Aug 2003 23:50:17 +0000 (+0000) Subject: inclhack.def (ptx_pwd_h): New disabled fix, ported from fixinc.ptx. X-Git-Tag: releases/gcc-3.4.0~4048 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7309576c84f07509eefeec94bb24aa1d5ddd0914;p=thirdparty%2Fgcc.git inclhack.def (ptx_pwd_h): New disabled fix, ported from fixinc.ptx. * fixinc/inclhack.def (ptx_pwd_h): New disabled fix, ported from fixinc.ptx. From-SVN: r70830 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 747b2118eb43..1fc6a0d27f52 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,7 @@ 2003-08-26 Nathanael Nerode + * fixinc/inclhack.def (ptx_pwd_h): New disabled fix, ported + from fixinc.ptx. * fixinc/inclhack.def (ptx_sys_mc_param_h): New disabled fix, ported from fixinc.ptx. diff --git a/gcc/fixinc/inclhack.def b/gcc/fixinc/inclhack.def index d82190d5ac84..34e4b871119c 100644 --- a/gcc/fixinc/inclhack.def +++ b/gcc/fixinc/inclhack.def @@ -2001,6 +2001,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 \\\n" + "#endif /* __STDC__ */\\\n" + "\n"; + test_text = "#include \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.