Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 7ef1a5d06156cbb9d098303dfc6759dc2f6598cdf1f7d4e7df11d57b6a18f333
Ticket: 713653b951c625ef974f5f06b2e96634ca5fb1f9
Floating point precision problems on x86 musl
User & Date: rubicon on 2022-07-15 09:32:51
Changes

  1. icomment:
    I found a musl toolchain at https://musl.cc , and by using `i686-linux-musl-native.tgz` on Debian buster with the following configure options for Tcl (`./configure CC=/tmp/i686-linux-musl-native/bin/gcc --host=i686-linux-musl --disable-shared`), I managed to reproduce the failures in Tcl's `expr-old` and `format` tests.
    
    After commenting out
    ```
        if (significand == 0) {
    	return copysign(0.0, -signum);
        }
    ```
    in `MakeLowPrecisionDouble` in tclStrToD.c, the failures disappear.
    
  2. login: "rubicon"
  3. mimetype: "text/x-markdown"