diff options
author | dje <dje@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-11-17 02:28:07 +0000 |
---|---|---|
committer | dje <dje@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-11-17 02:28:07 +0000 |
commit | 4cad3a315f9b5d94bcf3d0e8725a7e70ba1a5b67 (patch) | |
tree | cf78e3a13bf620d4cdb370eaf5e37b9bda3c6471 /fixincludes/inclhack.def | |
parent | 31529c9bdf4752e17019c96418f33479ec783833 (diff) | |
download | gcc-4cad3a315f9b5d94bcf3d0e8725a7e70ba1a5b67.tar.gz |
* inclhack.def (aix_once_init_[12]): New fixes.
* fixincl.x: Regenerate.
* tests/base/pthread.h: Update.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@181434 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'fixincludes/inclhack.def')
-rw-r--r-- | fixincludes/inclhack.def | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/fixincludes/inclhack.def b/fixincludes/inclhack.def index 7445d99f00b..0567bf474e0 100644 --- a/fixincludes/inclhack.def +++ b/fixincludes/inclhack.def @@ -384,6 +384,35 @@ fix = { }; /* + * pthread.h on AIX defines PTHREAD_ONCE_INIT without enough braces. + */ +fix = { + hackname = aix_once_init_1; + mach = "*-*-aix*"; + files = "pthread.h"; + select = "#define[ \t]PTHREAD_ONCE_INIT \\\\\n" + "\\{ \\\\\n"; + c_fix = format; + c_fix_arg = "#define PTHREAD_ONCE_INIT \\\n" + "{{ \\\n"; + test_text = "#define PTHREAD_ONCE_INIT \\\\\n" + "{ \\\\\n"; +}; + +fix = { + hackname = aix_once_init_2; + mach = "*-*-aix*"; + files = "pthread.h"; + select = "[ \t]0 \\\\\n" + "\\}\n"; + c_fix = format; + c_fix_arg = " 0 \\\n" + "}}\n"; + test_text = " 0 \\\\\n" + "}\n"; +}; + +/* * pthread.h on AIX 4.3.3 tries to define a macro without whitspace * which violates a requirement of ISO C. */ |