X-Git-Url: http://git.sourceforge.jp/view?p=pf3gnuchains%2Fgcc-fork.git;a=blobdiff_plain;f=gcc%2Ffixinc%2Finclhack.def;h=2fce20fe7ea3b6e7dfd69cf76321e78f07e400bd;hp=7b663ef971c1abfb88caa13856f3a0fc4b8cab18;hb=4f56733a3c16f81a07ec0b30751d17044d0ee1b0;hpb=472b5cb1bb59b0949ada9dac6a851d693c71ba9b diff --git a/gcc/fixinc/inclhack.def b/gcc/fixinc/inclhack.def index 7b663ef971c..2fce20fe7ea 100644 --- a/gcc/fixinc/inclhack.def +++ b/gcc/fixinc/inclhack.def @@ -220,6 +220,23 @@ fix = { /* + * Solaris is a DDK (aka kernel-land) header providing + * the same interface as . No idea why they couldn't have just + * used the standard header. + */ +fix = { + hackname = AAB_solaris_sys_varargs_h; + files = "sys/varargs.h"; + mach = '*-*-solaris*'; + replace = "#ifdef __STDC__\n" + "#include \n" + "#else\n" + "#include \n" + "#endif\n"; +}; + + +/* * Fix non-ANSI memcpy declaration that conflicts with gcc's builtin * declaration on Sun OS 4.x. We must only fix this on Sun OS 4.x, because * many other systems have similar text but correct versions of the file. @@ -259,23 +276,6 @@ extern int memcmp(); /* - * Solaris is a DDK (aka kernel-land) header providing - * the same interface as . No idea why they couldn't have just - * used the standard header. - */ -fix = { - hackname = AAB_solaris_sys_varargs_h; - files = "sys/varargs.h"; - mach = '*-*-solaris*'; - replace = "#ifdef __STDC__\n" - "#include \n" - "#else\n" - "#include \n" - "#endif\n"; -}; - - -/* * Completely replace with a file that includes gcc's * stdarg.h or varargs.h files as appropriate. */ @@ -2892,13 +2892,14 @@ fix = { hackname = thread_keyword; files = "pthread.h"; files = "bits/sigthread.h"; - select = " __thread,"; + select = "([* ])__thread([,)])"; c_fix = format; - c_fix_arg = " __thr,"; + c_fix_arg = "%1__thr%2"; test_text = "extern int pthread_create (pthread_t *__restrict __thread,\n" - "extern int pthread_kill (pthread_t __thread, int __signo);"; + "extern int pthread_kill (pthread_t __thread, int __signo);\n" + "extern int pthread_cancel (pthread_t __thread);"; }; /*