[LLVMbugs] [Bug 9256] clang: support -fno-strict-overflow

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sat Feb 26 00:40:57 PST 2011


Török Edwin <edwintorok at gmail.com> changed:

           What    |Removed                     |Added
             Status|RESOLVED                    |REOPENED
         Resolution|INVALID                     |
            Summary|clang: support for kernel   |clang: support
                   |code model: pointer         |-fno-strict-overflow
                   |arithmetic that overflows   |
                   |is not impossible!          |

--- Comment #3 from Török Edwin <edwintorok at gmail.com> 2011-02-26 02:40:57 CST ---
(In reply to comment #2)
> Right, they should build with -fwrapv or (better yet) do the computation with
> an unsigned value.

They use -fno-strict-overflow:

# disable invalid "can't wrap" optimizations for signed / pointers
KBUILD_CFLAGS   += $(call cc-option,-fno-strict-overflow)

clang: warning: argument unused during compilation: '-fno-strict-overflow'

Should clang translate -fno-strict-overflow to -fwrapv (if it supports that)?

Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

More information about the llvm-bugs mailing list