[llvm-dev] [cfe-dev] RFC: Implementing -fno-delete-null-pointer-checks in clang

Jon Chesterfield via llvm-dev llvm-dev at lists.llvm.org
Wed Apr 18 13:46:24 PDT 2018


I'm working with an embedded architecture that could, in some situations,
run faster if code or data could be located at address zero. I don't know
whether this applies to other embedded chips.

Despite the name, the flag actually has rather straightforward semantics
> from the compiler's perspective.  From the gcc docs for
> -fdelete-null-pointer-checks: "Assume that programs cannot safely
> dereference null pointers, and that no code or data element resides at
> address zero."  (-fno-delete-null-pointer-checks is the opposite.)
>
> -Eli
>
> --
> Employee of Qualcomm Innovation Center, Inc.
> Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux
> Foundation Collaborative Project
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20180418/70c28e33/attachment.html>


More information about the llvm-dev mailing list