diff options
author | kristerw <kristerw@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-07-25 23:51:47 +0000 |
---|---|---|
committer | kristerw <kristerw@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-07-25 23:51:47 +0000 |
commit | 759bfb144806f9fe3aa475ff00b44b52350a45eb (patch) | |
tree | 5b086663c4800582cbd23273971f6a22423cdd80 /fixincludes/inclhack.def | |
parent | 2197fd815118cf260449f0a3b922eee86e82db89 (diff) | |
download | gcc-759bfb144806f9fe3aa475ff00b44b52350a45eb.tar.gz |
2007-07-24 Krister Walfridsson <cato@df.lth.se>
PR target/30058
* inclhack.def (netbsd_c99_inline_2): New.
* fixincl.x: Regenerate.
* tests/base/signal.h: Update.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@126937 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'fixincludes/inclhack.def')
-rw-r--r-- | fixincludes/inclhack.def | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/fixincludes/inclhack.def b/fixincludes/inclhack.def index fbc1b2a62d4..f7fbd8ce8aa 100644 --- a/fixincludes/inclhack.def +++ b/fixincludes/inclhack.def @@ -2608,6 +2608,25 @@ fix = { }; +fix = { + hackname = netbsd_c99_inline_2; + mach = *-*-netbsd*; + files = signal.h; + select = "#define _SIGINLINE extern __inline"; + + c_fix = format; + c_fix_arg = <<- _EOArg_ + #ifdef __GNUC_STDC_INLINE__ + #define _SIGINLINE extern __attribute__((__gnu_inline__)) __inline + #else + %0 + #endif + _EOArg_; + + test_text = "#define _SIGINLINE extern __inline"; +}; + + /* * NetBSD has a semicolon after the ending '}' for some extern "C". */ |