diff options
author | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-03-21 16:46:09 +0000 |
---|---|---|
committer | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-03-21 16:46:09 +0000 |
commit | a11c2c4d46a14dfbedaf2b06fadf2cdd4bc7c3c8 (patch) | |
tree | 6fc00bde05dc55d7d7da1c3800e77a5d63464de4 /fixincludes/inclhack.def | |
parent | 3d778616fd84e675d13b9c062b7b8e11400cf017 (diff) | |
download | ppe42-gcc-a11c2c4d46a14dfbedaf2b06fadf2cdd4bc7c3c8.tar.gz ppe42-gcc-a11c2c4d46a14dfbedaf2b06fadf2cdd4bc7c3c8.zip |
2005-03-21 Richard Guenther <rguenth@gcc.gnu.org>
PR target/20166
* inclhack.def: Add fix for array of incomplete structures
in function prototype in pthread.h.
* fixincl.x: Regenerate.
* tests/base/pthread.h: Adjust.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@96812 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'fixincludes/inclhack.def')
-rw-r--r-- | fixincludes/inclhack.def | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/fixincludes/inclhack.def b/fixincludes/inclhack.def index 7bd48dba1ba..f55a9f05a05 100644 --- a/fixincludes/inclhack.def +++ b/fixincludes/inclhack.def @@ -2315,6 +2315,19 @@ fix = { test_text = "int __page_size;"; }; +/* + * On broken glibc-2.3.3 systems an array of incomplete structures is + * passed to __sigsetjmp. Fix that to take a pointer instead. + */ +fix = { + hackname = pthread_incomplete_struct_argument; + files = pthread.h; + select = "struct __jmp_buf_tag"; + c_fix = format; + c_fix_arg = "%1 *%2%3"; + c_fix_arg = "^(extern int __sigsetjmp \\(struct __jmp_buf_tag) (__env)\\[1\\](.*)$"; + test_text = "extern int __sigsetjmp (struct __jmp_buf_tag __env[1], int __savemask);"; +}; /* * On DYNIX/ptx, sys/mc_param.h has an embedded asm for the cpuid instruction |