From 68497f28157ccc325a183c8ffb0da56dfcec43ae Mon Sep 17 00:00:00 2001 From: NicJA Date: Wed, 6 Jun 2018 00:55:56 +0000 Subject: [PATCH] w.i.p - provide 2 private support functions for systems that use softfloat support. git-svn-id: https://svn.aros.org/svn/aros/trunk/AROS@55241 fb15a70f-31f2-0310-bbcc-cdcc74a49acc --- compiler/stdc/__stdc_fpuprivate.c | 19 +++++++++++++++++++ compiler/stdc/mmakefile.src | 1 + compiler/stdc/stdc.conf | 5 ++++- 3 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 compiler/stdc/__stdc_fpuprivate.c diff --git a/compiler/stdc/__stdc_fpuprivate.c b/compiler/stdc/__stdc_fpuprivate.c new file mode 100644 index 0000000000..ef8a453b53 --- /dev/null +++ b/compiler/stdc/__stdc_fpuprivate.c @@ -0,0 +1,19 @@ +/* + Copyright © 2018, The AROS Development Team. All rights reserved. + $Id$ + + Platforms that use softfloat support should implement these + functions to correctly share interpretations between the softfloat implementation + and fenv. +*/ +#include + +void *__stdc_get_fpuprivate(void) +{ + return NULL; +} + +void *__stdc_set_fpuprivate(void *_fpuprivate) +{ + return NULL; +} diff --git a/compiler/stdc/mmakefile.src b/compiler/stdc/mmakefile.src index 72caf12d62..c234ee739e 100644 --- a/compiler/stdc/mmakefile.src +++ b/compiler/stdc/mmakefile.src @@ -349,6 +349,7 @@ STDC := \ __stdc_gmtoffset \ __stdc_ioerr2errno \ __stdc_startup \ + __stdc_fpuprivate \ __vcformat \ __vcscan \ _exit \ diff --git a/compiler/stdc/stdc.conf b/compiler/stdc/stdc.conf index 0c0990e2a5..eaa9db912a 100644 --- a/compiler/stdc/stdc.conf +++ b/compiler/stdc/stdc.conf @@ -54,7 +54,10 @@ int *__stdc_set_errorptr(int *errorptr) int *__stdc_get_errorptr(void) void __stdc_set_exitjmp(jmp_buf exitjmp, jmp_buf previousjmp) void __stdc_jmp2exit(int normal, int returncode) -.skip 3 +# private functions for patching in softfloat support +void *__stdc_set_fpuprivate(void *fpuprivate) +void *__stdc_get_fpuprivate(void) +.skip 1 # == C99 functions ordered per include file == # * assert.h: Support function for assert() macro void __assert(const char * expr, const char * file, unsigned int line) -- 2.11.4.GIT