diff options
author | kristerw <kristerw@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-03-19 17:08:14 +0000 |
---|---|---|
committer | kristerw <kristerw@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-03-19 17:08:14 +0000 |
commit | 4cbf73b4bf1d81e7983204180f9c3d2a65a068e6 (patch) | |
tree | 02fc09454f1ab6709db771bef46ad2c6b5042659 /fixincludes/inclhack.def | |
parent | a8bb7059514e2cfebe6ce6d866b9d27d9a4fb5d7 (diff) | |
download | gcc-4cbf73b4bf1d81e7983204180f9c3d2a65a068e6.tar.gz |
2007-03-18 Krister Walfridsson <cato@df.lth.se>
PR target/30058
* inclhack.def (netbsd_c99_inline_1): New.
* fixincl.x: Regenerate.
* tests/base/signal.h: New.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123065 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'fixincludes/inclhack.def')
-rw-r--r-- | fixincludes/inclhack.def | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/fixincludes/inclhack.def b/fixincludes/inclhack.def index e2ac55c2aa4..2cc9583b50d 100644 --- a/fixincludes/inclhack.def +++ b/fixincludes/inclhack.def @@ -2552,6 +2552,22 @@ fix = { /* + * Some versions of NetBSD don't expect the C99 inline semantics. + */ +fix = { + hackname = netbsd_c99_inline_1; + mach = *-*-netbsd*; + files = signal.h; + select = "extern __inline int"; + + c_fix = format; + c_fix_arg = "extern\n#ifdef __GNUC_STDC_INLINE__\n__attribute__((__gnu_inline__))\n#endif\n__inline int"; + + test_text = "extern __inline int\nsigaddset(sigset_t *set, int signo)\n{}"; +}; + + +/* * NetBSD has a semicolon after the ending '}' for some extern "C". */ fix = { |