apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From William A Rowe Jr <wr...@rowe-clan.net>
Subject Re: Strange _strtoi64 quirk with CMake, Visual Studio and testall.exe -v teststr
Date Wed, 18 Oct 2017 13:39:22 GMT
In building your repro case, you'll need to toggle several flags to see how
to trip this up;

- CMAKE_C_FLAGS_RELEASE:STRING=/MD /O2 /Ob2 /DNDEBUG
+ CMAKE_C_FLAGS_RELEASE:STRING=/O2 /Wall /Zi

I'd start with your problem case /O2 /Wall /Zi, and retest adding /Ob2, /MD
and /NDEBUG in that order. Simply slice and dice until you find the flags
which cause the negative min limit to fail ERANGE, but the positive max
case to not toggle errno.

Good luck


On Wed, Oct 18, 2017 at 6:45 AM, Michal Karm <michal.babacek@gmail.com>
wrote:

> Hello APR folks,
>
> I've encountered a weird glitch with APR test for _strtoi64
> that is always reproducible with testall.exe -v teststr,
> but I cannot reproduce it with a minimized example
> neither I understand what is actually going on.
>
> If you care to read a short memo I wrote on the
> subject and possibly enlighten me here on the list,
> It would be much appreciated.
>
> See  https://github.com/Karm/_strtoi64_reproducer
>
>
> Cheers
>
> Michal Karm Babacek
>
> --
> Sent from my Hosaka Ono-Sendai Cyberspace 7
>
>
>

Mime
View raw message