diff options
author | andreast <andreast@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-12-31 13:52:53 +0000 |
---|---|---|
committer | andreast <andreast@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-12-31 13:52:53 +0000 |
commit | 2b0752cc3976b194351791de2698612566106cc3 (patch) | |
tree | 0192e18324612f701182b4acf56c4368d778b837 /fixincludes/inclhack.def | |
parent | a457170df2d730e5ed5ffa9cc10b169e42e3eee4 (diff) | |
download | gcc-2b0752cc3976b194351791de2698612566106cc3.tar.gz |
2008-12-31 Andreas Tobler <a.tobler@schweiz.org>
PR target/35460
* inclhack.def (openbsd_va_start): Use __builtin_va_start
for OpenBSD.
* fixincl.x: Regenerate.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@142980 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 8d50abf1b49..63871c42abd 100644 --- a/fixincludes/inclhack.def +++ b/fixincludes/inclhack.def @@ -2541,6 +2541,19 @@ fix = { test_text = "*((void **) (h)->next_free)++ = (aptr)"; }; +/* + * Fix OpenBSD's va_start define. + */ +fix = { + hackname = openbsd_va_start; + mach = "*-*-openbsd*"; + files = stdarg.h; + select = '__builtin_stdarg_start'; + c_fix = format; + c_fix_arg = __builtin_va_start; + + test_text = "#define va_start(v,l) __builtin_stdarg_start((v),l)"; +}; /* * sys/lc_core.h on some versions of OSF1/4.x pollutes the namespace by |