diff options
author | Bruce Korb <bkorb@gnu.org> | 2000-05-30 20:24:44 +0000 |
---|---|---|
committer | Bruce Korb <korbb@gcc.gnu.org> | 2000-05-30 20:24:44 +0000 |
commit | 22e50c5bb9df7419a059c691e1993b217fe663f1 (patch) | |
tree | fe7389db30709c255edba5407eb42802eeb317b3 /gcc/fixinc/inclhack.def | |
parent | 26e903eefb735b09d75c3701eb44538e6beabbc1 (diff) | |
download | gcc-22e50c5bb9df7419a059c691e1993b217fe663f1.tar.gz |
restore old algorighm for char_macro_*_fix routines
From-SVN: r34271
Diffstat (limited to 'gcc/fixinc/inclhack.def')
-rw-r--r-- | gcc/fixinc/inclhack.def | 31 |
1 files changed, 9 insertions, 22 deletions
diff --git a/gcc/fixinc/inclhack.def b/gcc/fixinc/inclhack.def index c952ad7a878..93698b3e875 100644 --- a/gcc/fixinc/inclhack.def +++ b/gcc/fixinc/inclhack.def @@ -832,7 +832,8 @@ fix = { select = "define[ \t]+[A-Z0-9_]+CTRL\\([a-zA-Z],"; c_fix = char_macro_def; c_fix_arg = "CTRL"; - test_text = "#define BSD43_CTRL(n, x) (('n'<<8)+x)"; + test_text = "#define BSD43_CTRL(n, x) (('n'<<8)+x)\n" + "#define _CTRL(c) ('c'&037)"; }; fix = { @@ -840,7 +841,7 @@ fix = { select = "define[ \t]+[A-Z0-9_]+[ \t]+[A-Z0-9_]+CTRL[ \t]*\\( *[^,']"; c_fix = char_macro_use; c_fix_arg = "CTRL"; - test_text = "#define TIOCFOO BSD43_CTRL(T, 1)"; + test_text = "#define TCTRLFOO BSD43_CTRL(T, 1)"; }; @@ -1097,7 +1098,9 @@ fix = { "\\( *[^,']"; c_fix = char_macro_use; c_fix_arg = "IO"; - test_text = "#define TIOCFOO BSD43__IOWR(T, 1)"; + test_text = "#define TIOCFOO BSD43__IOWR(T, 1)\n" + "#define TIOCFOO \\\\\n" + "BSD43__IOWR(T, 1) /* Some are multi-line */"; }; @@ -1797,22 +1800,6 @@ fix = { /* - * Sony NEWSOS 5.0 does not support the complete ANSI C standard. - */ -#ifdef SONY -fix = { - hackname = sony_stdio; - files = stdio.h; - test = " -x /bin/sony"; - test = " ! -z \"`if /bin/sony ; then echo true ; fi`\""; - sed = "s/__filbuf/_filbuf/g\n" - "s/__flsbuf/_flsbuf/g\n" - "s/__iob/_iob/g"; -}; -#endif - - -/* * Incorrect #include in Sony News-OS 3.2. */ fix = { @@ -2719,9 +2706,9 @@ fix = { select = "in_port_t"; #ifndef SVR5 mach = "*-*-sysv4*"; - mach = "i[34567]86-*-sysv5*"; - mach = "i[34567]86-*-udk*"; - mach = "i[34567]86-*-solaris2.[0-4]"; + mach = "i?86-*-sysv5*"; + mach = "i?86-*-udk*"; + mach = "i?86-*-solaris2.[0-4]"; mach = "powerpcle-*-solaris2.[0-4]"; mach = "sparc-*-solaris2.[0-4]"; #endif /* SVR5 */ |