Re: [Tinycc-devel] Problem Compiling tinycc For Android: strtold

2013-09-12 Thread Daniel Glöckner
On Wed, Sep 11, 2013 at 08:26:31PM -0500, Cayce Pollard wrote: Also, would that work for linking __clear_cache to the Android equivalent cacheflush? I would prefer directly using the __ARM_NR_cacheflush syscall to make it work on non-Bionic Linux as well. The syscall has been introduced into

Re: [Tinycc-devel] Problem Compiling tinycc For Android: strtold (Found cause)

2013-09-11 Thread Cayce Pollard
Ignore my previous message...bionic libc doesn't have strtold. Back to the drawing board... On Wed, Sep 11, 2013 at 3:40 PM, Cayce Pollard mlisaoverdr...@gmail.comwrote: Hello, When building tinycc using the Android NDK standalone toolchain, I get the following error: Putting child

Re: [Tinycc-devel] Problem Compiling tinycc For Android: strtold

2013-09-11 Thread Cayce Pollard
Just saw your email as I was getting ready to post my next questions. 1) should I just find/replace in the code or make an alias to strtod? 2) Android's version of __clear_cache is cacheflush, can I make an alias for that as well? I On Wed, Sep 11, 2013 at 4:38 PM, Daniel Glöckner

Re: [Tinycc-devel] Problem Compiling tinycc For Android: strtold

2013-09-11 Thread Daniel Glöckner
On Wed, Sep 11, 2013 at 03:40:15PM -0500, Cayce Pollard wrote: ./../tinycc/tccpp.c:1961: error: undefined reference to 'strtold' Just substitute strtod for strtold. It has probably been omitted from Android's libc because long double == double on ARM nowadays (i.e. with EABI or VFP). Daniel

Re: [Tinycc-devel] Problem Compiling tinycc For Android: strtold

2013-09-11 Thread Cayce Pollard
I suspect you're right...now off to find out where that particular option goes... (still grepping my way through pages of gcc documentation and Android internals) Will the same work for __clear_cache? I suspect not, based on a cursory examination of that and cacheflush, but I'd be happy if

Re: [Tinycc-devel] Problem Compiling tinycc For Android: strtold

2013-09-11 Thread Stephan Beal
On Wed, Sep 11, 2013 at 11:48 PM, Cayce Pollard mlisaoverdr...@gmail.comwrote: Just saw your email as I was getting ready to post my next questions. 1) should I just find/replace in the code or make an alias to strtod? i _suspect_ that -Dstrtold=strtod might do the trick for you. -- -

Re: [Tinycc-devel] Problem Compiling tinycc For Android: strtold

2013-09-11 Thread Cayce Pollard
I couldn't figure out how to correctly use -Dstrtold=strtod, so I did a simple find/replace to test build. It worked, but I would like to do this correctly. I did a search on -D, Makefiles, -D gcc options and grepped for D within the source directory. I couldn't find/see anything that resembled