https://bugs.llvm.org/show_bug.cgi?id=52577

            Bug ID: 52577
           Summary: Signaling NaNs are seem supported but __SUPPORT_SNAN__
                    is not defined
           Product: clang
           Version: 13.0
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected], [email protected],
                    [email protected]

Note: this may not be a bug, but the subject needs a clarification.

This code:
#define _WANT_SNAN
#ifdef __SUPPORT_SNAN__
#pragma message "__SUPPORT_SNAN__ is defined"
#else
#pragma message "__SUPPORT_SNAN__ is not defined"
#endif

compiled with:
$ clang -std=c11 -pedantic -Wall -Wextra -ffp-model=strict -c

leads to:
<source>:5:9: warning: __SUPPORT_SNAN__ is not defined [-W#pragma-messages]

However, according to some tests signaling NaNs are supported.

Then what is the real reason to not define __SUPPORT_SNAN__?

It may be useful to mention the status of support of signaling NaNs in User's
Manual: https://clang.llvm.org/docs/UsersManual.html.

Version: clang 13.0.0 on x86_64 on Linux

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to