On 10/18/2017 03:39 PM, William A Rowe Jr wrote:
> 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

The "problem" is the presence or lack thereof of /MD.

Updated notes: https://github.com/Karm/_strtoi64_reproducer#conclusion

I'm gonna try to fiddle with VS and compare asm for that part.
I don't understand why not having /MD is a problem for this single threaded
dead simple case.

I'm also bewildered as to why my trimmed down example works
even without /MD...

-K-

>
>
> On Wed, Oct 18, 2017 at 6:45 AM, Michal Karm <michal.baba...@gmail.com
> <mailto:michal.baba...@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
>     <https://github.com/Karm/_strtoi64_reproducer>
>
>
>     Cheers
>
>     Michal Karm Babacek
>
>     --
>     Sent from my Hosaka Ono-Sendai Cyberspace 7
>
>
>

Michal Karm Babacek

-- 
Sent from my Hosaka Ono-Sendai Cyberspace 7


Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to