Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[libc] set -Wno-frame-address for thread.cpp #77140

Merged
merged 1 commit into from
Jan 8, 2024

Commits on Jan 5, 2024

  1. [libc] set -Wno-frame-address for thread.cpp

    The aarch64 code is using __builtin_return_address with a non-zero parameter,
    which generates the following warning:
    
        llvm-project/libc/src/__support/threads/linux/thread.cpp:171:38: error:
        calling '__builtin_frame_address' with a nonzero argument is unsafe
        [-Werror,-Wframe-address]
          171 |   return reinterpret_cast<uintptr_t>(__builtin_frame_address(1));
              |                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~
    
    Disable this diagnostic just for this file so that we can enable -Werror.
    
    Fixes: llvm#77007
    nickdesaulniers committed Jan 5, 2024
    Configuration menu
    Copy the full SHA
    f1b4cee View commit details
    Browse the repository at this point in the history