emscripen will support  -frounding-math in the next release?

Il giorno mer 21 ott 2020 alle ore 13:47 Floh <[email protected]> ha scritto:

> I suspect that this isn't a WASM issue, but a gcc vs clang issue, see this
> cgal issue thread:
>
> https://github.com/CGAL/cgal/issues/3180
>
> Also there seems to be clang-specific workarounds here:
>
>
> https://github.com/CGAL/cgal/blob/7461cd7c705dff6459d9f1aee4fbfd55ed10d0d4/Number_types/include/CGAL/FPU.h#L286-L305
>
> ...and this CGAL_FPU_HAS_EXCESS_PRECISION define is here:
>
>
> https://github.com/CGAL/cgal/blob/7461cd7c705dff6459d9f1aee4fbfd55ed10d0d4/Number_types/include/CGAL/FPU.h#L84-L96
>
> ...all those hardwired x86 architecture checks look a bit suspicious. I
> guess the platform/compiler detection in cgal fails when compiling for WASM.
>
> Cheers,
> -Floh.
>
> On Tuesday, 20 October 2020 18:20:28 UTC+2, Alessio Mochi wrote:
>>
>> Hello,
>>
>> I am not able to compile
>> this piece of code of cgal library
>>
>> CGAL_assertion_msg(-CGAL_IA_MUL(-1.1, 10.1) != CGAL_IA_MUL(1.1, 10.1),
>> "Wrong rounding: did you forget the -frounding-math option if you use GCC
>> (or -fp-model strict for Intel)?");
>> CGAL_assertion_msg(-CGAL_IA_DIV(-1., 10) != CGAL_IA_DIV(1., 10),
>> "Wrong rounding: did you forget the -frounding-math option if you use GCC
>> (or -fp-model strict for Intel)?");
>>
>> I tried to use -frounding-math with a simple example with this compiler
>> flag
>> I get a warning and I think this flag is not supported.
>>
>> I am able to compile cgal library if exclude this code but when I run the
>> cgal corefine example I get crash. Is it possible that the missed flag can
>> change the CGAL calculations?
>>
> --
> You received this message because you are subscribed to the Google Groups
> "emscripten-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/emscripten-discuss/f4446e0d-6e8d-4101-9da9-b6d4cfb010dao%40googlegroups.com
> <https://groups.google.com/d/msgid/emscripten-discuss/f4446e0d-6e8d-4101-9da9-b6d4cfb010dao%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/emscripten-discuss/CAHUGow3xvUFMfdNfGbWA0925Fa8GNBukEFKbJSgZyExnjWCiGg%40mail.gmail.com.

Reply via email to