[llvm-bugs] [Bug 49103] New: The default for -ftrapping-math is opposite to GCC

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Feb 8 16:52:00 PST 2021


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

            Bug ID: 49103
           Summary: The default for -ftrapping-math is opposite to GCC
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Driver
          Assignee: unassignedclangbugs at nondot.org
          Reporter: gabravier at gmail.com
                CC: llvm-bugs at lists.llvm.org, neeilans at live.com,
                    richard-llvm at metafoo.co.uk

It seems like it would make more sense to be consistent with GCC on this one:
GCC has -ftrapping-math be the default, while Clang has -fno-trapping-math be
the default. Unless there's a good reason to use -fno-trapping-math as the
default on Clang's side (in which case you can close this bug), or there's a
good reason to have -fno-trapping-math as the default everywhere (in which case
I could go back to GCC and tell them to change it the other way), I think Clang
should change its behavior to be the same as GCC in this regard.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20210209/aac03595/attachment.html>


More information about the llvm-bugs mailing list