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

dunfell-clang14: Update from clang 12 to clang 14 #853

Merged
merged 166 commits into from
Sep 8, 2023

Commits on Jul 26, 2023

  1. ghostscript: Fix build when using libc++

    RUNTIME=llvm means we use libc++ instead of libstdc++ among other things
    
    Signed-off-by: Khem Raj <raj.khem@gmail.com>
    (cherry picked from commit 9337952)
    kraj authored and rakuco committed Jul 26, 2023
    Configuration menu
    Copy the full SHA
    a13f0bc View commit details
    Browse the repository at this point in the history
  2. mesa: Do not StackAlignmentOverride on llvm >= 13

    This has been removed see
    https://reviews.llvm.org/D103048
    
    Signed-off-by: Khem Raj <raj.khem@gmail.com>
    (cherry picked from commit c379426)
    kraj authored and rakuco committed Jul 26, 2023
    Configuration menu
    Copy the full SHA
    ff67324 View commit details
    Browse the repository at this point in the history
  3. libunwind: Hide when llvm runtime is used

    We want to use llvm libunwind implementation when RUNTIME = "llvm"
    
    Signed-off-by: Khem Raj <raj.khem@gmail.com>
    (cherry picked from commit a360486)
    kraj authored and rakuco committed Jul 26, 2023
    Configuration menu
    Copy the full SHA
    951917d View commit details
    Browse the repository at this point in the history
  4. clang: Upgrade to trunk/13.0 future series

    Signed-off-by: Khem Raj <raj.khem@gmail.com>
    (cherry picked from commit 76e37fa)
    
    Conflicts:
    - recipes-devtools/clang/common.inc: caused by
      3880a39, the patches have been kept.
      The patch introduced in fdb936e is part
      of LLVM 13 so it has been removed.
    kraj authored and rakuco committed Jul 26, 2023
    Configuration menu
    Copy the full SHA
    1edfa9a View commit details
    Browse the repository at this point in the history
  5. openmp: Fix building amdgcn files

    License name should be LICENSE.TXT not LICENSE.txt
    
    Signed-off-by: Khem Raj <raj.khem@gmail.com>
    (cherry picked from commit 07357fd)
    kraj authored and rakuco committed Jul 26, 2023
    Configuration menu
    Copy the full SHA
    0e90a71 View commit details
    Browse the repository at this point in the history
  6. spirv-llvm-translator: Upgrade to 13.0.0/trunk

    This is in sync with clang trunk (upcoming 13.0.0) release
    
    Signed-off-by: Khem Raj <raj.khem@gmail.com>
    (cherry picked from commit 79dc9a0)
    kraj authored and rakuco committed Jul 26, 2023
    Configuration menu
    Copy the full SHA
    834efb7 View commit details
    Browse the repository at this point in the history
  7. libclc: Pass -cl-no-stdinc to compiler and assembler

    libclc uses clang CLC preprocessor on .ll files, llvm/clang-13 started
    including clc declarations by default (clang
    cf3ef15a6ec5e5b45c6c54e8fbe3769255e815ce),
    thus corrupting any .ll assembly files that are used by libclc.
    Inclusion of the default declarations can be turned off using a
    cmdline switch but that remains to be implemented in the libclc build
    system. manually adding '-cl-no-stdinc' should work as a workaround.
    
    Signed-off-by: Khem Raj <raj.khem@gmail.com>
    (cherry picked from commit d692c03)
    kraj authored and rakuco committed Jul 26, 2023
    Configuration menu
    Copy the full SHA
    d1a5742 View commit details
    Browse the repository at this point in the history
  8. compiler-rt: Fix sanitizer build on musl/x86_64

    backtrace APIs are glibc specific so do not use them
    
    Signed-off-by: Khem Raj <raj.khem@gmail.com>
    (cherry picked from commit 0f3c6b5)
    kraj authored and rakuco committed Jul 26, 2023
    Configuration menu
    Copy the full SHA
    f375d0e View commit details
    Browse the repository at this point in the history
  9. clang: Fix x86 tuple for include search paths

    This ensures that search path for c++ headers is using right directory
    structure as per Openembedded gcc and sysroot install
    
    e.g.
    
    ignoring nonexistent directory "/mnt/b/yoe/master/build/tmp/work/core2-32-yoe-linux-musl/compiler-rt/13.0.0-r0/recipe-sysroot/usr/lib/i686-yoe-linux-musl/11.1.0/../../../include/
    c++/11.1.0/i386-linux-gnu"
    
    Signed-off-by: Khem Raj <raj.khem@gmail.com>
    (cherry picked from commit 6ecc098)
    kraj authored and rakuco committed Jul 26, 2023
    Configuration menu
    Copy the full SHA
    1be8c74 View commit details
    Browse the repository at this point in the history
  10. compiler-rt-sanitizers: Link with static C++ runtime when available

    This fixes build on ARM
    
    Signed-off-by: Khem Raj <raj.khem@gmail.com>
    (cherry picked from commit 241e7e5)
    kraj authored and rakuco committed Jul 26, 2023
    Configuration menu
    Copy the full SHA
    3b40eed View commit details
    Browse the repository at this point in the history
  11. compiler-rt-sanitizers: Limit to buildable arch/libc combinations

    Signed-off-by: Khem Raj <raj.khem@gmail.com>
    (cherry picked from commit 6a442a8)
    kraj authored and rakuco committed Jul 26, 2023
    Configuration menu
    Copy the full SHA
    8d025d5 View commit details
    Browse the repository at this point in the history
  12. compiler-rt-sanitizers: Fix build on mips

    Signed-off-by: Khem Raj <raj.khem@gmail.com>
    (cherry picked from commit 85c1247)
    kraj authored and rakuco committed Jul 26, 2023
    Configuration menu
    Copy the full SHA
    cc878f9 View commit details
    Browse the repository at this point in the history
  13. lldb: Do not build for mips as well

    lldb-server is not fully ported for mips yet see
    https://reviews.llvm.org/D102872
    
    Signed-off-by: Khem Raj <raj.khem@gmail.com>
    (cherry picked from commit 1a90a80)
    kraj authored and rakuco committed Jul 26, 2023
    Configuration menu
    Copy the full SHA
    fafa9bd View commit details
    Browse the repository at this point in the history
  14. compiler-rt-sanitizers: Do not package orc support lib

    Its already shipped with compile-rt recipe
    
    Signed-off-by: Khem Raj <raj.khem@gmail.com>
    (cherry picked from commit c5c59a9)
    kraj authored and rakuco committed Jul 26, 2023
    Configuration menu
    Copy the full SHA
    df23a4c View commit details
    Browse the repository at this point in the history
  15. libcxx: Build libunwind shared lib when enabled

    Use compile-rt consistently across when building libc++ and libc++abi
    and libunwind
    
    Signed-off-by: Khem Raj <raj.khem@gmail.com>
    (cherry picked from commit 78acb4a)
    kraj authored and rakuco committed Jul 26, 2023
    Configuration menu
    Copy the full SHA
    980c8ba View commit details
    Browse the repository at this point in the history
  16. scan-build.bbclass: Fix typo

    Signed-off-by: Khem Raj <raj.khem@gmail.com>
    (cherry picked from commit da92b36)
    kraj authored and rakuco committed Jul 26, 2023
    Configuration menu
    Copy the full SHA
    e9d1bee View commit details
    Browse the repository at this point in the history
  17. clang: Default to compiler-rt/libcxx/libunwind when RUNTIME = "llvm"

    This ensures that compiler defaults are defaulting to llvm provided
    c/c++ runtimes which includes c-runtime, c++runtime, unwinder and omp
    runtime, current approach is to inject commandline options but it does
    not get passed in all cases and a lot of smaller/big patches are used to
    make such package recipes behave
    
    If RUNTIME = "gnu" then defaults stay to use gcc runtime as it is
    
    Signed-off-by: Khem Raj <raj.khem@gmail.com>
    (cherry picked from commit e4edc91)
    kraj authored and rakuco committed Jul 26, 2023
    Configuration menu
    Copy the full SHA
    3d0d917 View commit details
    Browse the repository at this point in the history
  18. compiler-rt: Use gcc runtime to bootstrap

    while compiler-rt may not use any of these libraries, but the cmake
    environment pokes for working compiler, linker and other tools, this
    ensures that it can build when  RUNTIME = "llvm" and also RUNTIME =
    "gnu"
    
    Signed-off-by: Khem Raj <raj.khem@gmail.com>
    (cherry picked from commit 7f43187)
    
    Conflicts:
    - recipes-devtools/clang/compiler-rt_git.bb: Commit
      93552c7 had already backported parts of
      this commit.
    kraj authored and rakuco committed Jul 26, 2023
    Configuration menu
    Copy the full SHA
    d9e5a59 View commit details
    Browse the repository at this point in the history
  19. compiler-rt-sanitizers: Use packageconfig to use static libcxx

    sanitizers can link libc++/libc++abi statically or dynamically, we
    default to use dynamic version but leave the option to enable static
    linking if so needed
    
    Use virtual/crypt to represent crypt implementation which becomes libc
    independent
    
    Fix dependencies for native recipes
    
    Signed-off-by: Khem Raj <raj.khem@gmail.com>
    (cherry picked from commit f4bb299)
    kraj authored and rakuco committed Jul 26, 2023
    Configuration menu
    Copy the full SHA
    2ab4ebb View commit details
    Browse the repository at this point in the history
  20. libcxx: Build undwinder when RUNTIME = "llvm"

    ensure that libcxx can be built when RUNTIME = "llvm" as it might need
    to pass some cmake compiler tests
    
    Signed-off-by: Khem Raj <raj.khem@gmail.com>
    (cherry picked from commit a0a3181)
    kraj authored and rakuco committed Jul 26, 2023
    Configuration menu
    Copy the full SHA
    64c0a42 View commit details
    Browse the repository at this point in the history
  21. clang.bbclass: Adjust for clang default changes

    Now that clang can pass right options automatically when RUNTIME =
    "llvm", adjust the variables e.g. COMPILER_RT/UNWINDLIB/LIBCPLUSPLUS are
    no more required to be defaulted
    
    Disable enforcing gcc runtime for packages using gcc as its no longer
    needed here but is taken care by RUNTIME variable as an aside it also
    helps in building native and nativesdk llvm runtimes
    
    Compute right dependencies based on selected RUNTIME along with
    COMPILER_RT/UNWINDLIB/LIBCPLUSPLUS variables
    
    Signed-off-by: Khem Raj <raj.khem@gmail.com>
    (cherry picked from commit dc5e04e)
    kraj authored and rakuco committed Jul 26, 2023
    Configuration menu
    Copy the full SHA
    9aa02d5 View commit details
    Browse the repository at this point in the history
  22. layer.conf: Prefer llvm libunwind when RUNTIME = "llvm"

    Avoids conflicts with libunwind recipe from OE-Core
    
    Signed-off-by: Khem Raj <raj.khem@gmail.com>
    (cherry picked from commit 5be1042)
    kraj authored and rakuco committed Jul 26, 2023
    Configuration menu
    Copy the full SHA
    96b0d07 View commit details
    Browse the repository at this point in the history
  23. nss: Pass options to select runtime for native parts

    Since clang maybe configured to use llvm runtime, we need to ensure to
    use gnu runtime in native builds
    
    Signed-off-by: Khem Raj <raj.khem@gmail.com>
    (cherry picked from commit 563e115)
    kraj authored and rakuco committed Jul 26, 2023
    Configuration menu
    Copy the full SHA
    40063f5 View commit details
    Browse the repository at this point in the history
  24. compiler-rt-native: Fix build with clang

    Signed-off-by: Khem Raj <raj.khem@gmail.com>
    (cherry picked from commit 9c83473)
    kraj authored and rakuco committed Jul 26, 2023
    Configuration menu
    Copy the full SHA
    15f11d7 View commit details
    Browse the repository at this point in the history
  25. clang.bbclass: Limit using clang to target recipes only

    since toolchain-clang maybe available for native as well now, it means
    we have to ensure we do not use it for native recipes _yet_
    
    Signed-off-by: Khem Raj <raj.khem@gmail.com>
    (cherry picked from commit 95b2e77)
    kraj authored and rakuco committed Jul 26, 2023
    Configuration menu
    Copy the full SHA
    b42bbe1 View commit details
    Browse the repository at this point in the history
  26. libc-bench: It works fine with new way of choosing llvm runtime

    Signed-off-by: Khem Raj <raj.khem@gmail.com>
    (cherry picked from commit 5597807)
    kraj authored and rakuco committed Jul 26, 2023
    Configuration menu
    Copy the full SHA
    09e40c3 View commit details
    Browse the repository at this point in the history
  27. libunwind: Install headers and pkgconfig file

    This ensures it can replace nongnu libunwind
    Use it only when selecting RUNTIME = "llvm"
    
    Signed-off-by: Khem Raj <raj.khem@gmail.com>
    (cherry picked from commit c48de92)
    kraj authored and rakuco committed Jul 26, 2023
    Configuration menu
    Copy the full SHA
    fce9cfd View commit details
    Browse the repository at this point in the history
  28. libunwind: Implement unw_backtrace

    Signed-off-by: Khem Raj <raj.khem@gmail.com>
    (cherry picked from commit d45403b)
    kraj authored and rakuco committed Jul 26, 2023
    Configuration menu
    Copy the full SHA
    2f3f9d9 View commit details
    Browse the repository at this point in the history
  29. Package libunwind independently

    This helps in ensuring it pose as RPROVIDES when llvm runtime is used
    
    Signed-off-by: Khem Raj <raj.khem@gmail.com>
    (cherry picked from commit cee6adc)
    kraj authored and rakuco committed Jul 26, 2023
    Configuration menu
    Copy the full SHA
    562e0a5 View commit details
    Browse the repository at this point in the history
  30. compiler-rt-sanitizers: Fix hwsan builds with llvm libunwind

    Signed-off-by: Khem Raj <raj.khem@gmail.com>
    (cherry picked from commit e9a764e)
    kraj authored and rakuco committed Jul 26, 2023
    Configuration menu
    Copy the full SHA
    b40b542 View commit details
    Browse the repository at this point in the history
  31. bcc: Update to master tip

    In order to use latest clang, latest bcc sources are needed, this also
    means that we need to use vendored libbpf as thats the newest one needed
    and avoids dependencies on kernel bpf headers which maybe old and out of
    sync
    
    examples use error.h header which is not available on musl therefore
    disable examples when building on musl
    
    Signed-off-by: Khem Raj <raj.khem@gmail.com>
    (cherry picked from commit 21182ec)
    kraj authored and rakuco committed Jul 26, 2023
    Configuration menu
    Copy the full SHA
    d12ec84 View commit details
    Browse the repository at this point in the history
  32. mongodb: Use llvm runtime when using clang

    Fixes linker errors like
    src/mongo/platform/overflow_arithmetic.h:63: error: undefined reference to '__mulodi4'
    src/mongo/platform/overflow_arithmetic.h:63: error: undefined reference to '__mulodi4'
    src/mongo/platform/overflow_arithmetic.h:63: error: undefined reference to '__mulodi4'
    src/mongo/platform/overflow_arithmetic.h:63: error: undefined reference to '__mulodi4'
    
    Signed-off-by: Khem Raj <raj.khem@gmail.com>
    (cherry picked from commit 0c02a35)
    kraj authored and rakuco committed Jul 26, 2023
    Configuration menu
    Copy the full SHA
    42cb4b9 View commit details
    Browse the repository at this point in the history
  33. nonclangable: pass -rtlib only when using clang with gnu runtime here

    The defaults wirh using RUNTIME = "llvm" is already pointing to
    compiler-rt there is no need to clutter cmdline
    
    Signed-off-by: Khem Raj <raj.khem@gmail.com>
    (cherry picked from commit 785ce0f)
    kraj authored and rakuco committed Jul 26, 2023
    Configuration menu
    Copy the full SHA
    34a2eb0 View commit details
    Browse the repository at this point in the history
  34. poke: Do not use -O2 with clang

    clang13 has a regression which segfaults the compiler while compiling
    poke, its reported upstream, until it is fixed do not use -O2 compiler
    switch
    
    Signed-off-by: Khem Raj <raj.khem@gmail.com>
    (cherry picked from commit d01e38f)
    kraj authored and rakuco committed Jul 26, 2023
    Configuration menu
    Copy the full SHA
    b48d95b View commit details
    Browse the repository at this point in the history
  35. clang: Update to latest on master branch

    Signed-off-by: Khem Raj <raj.khem@gmail.com>
    (cherry picked from commit 040ec88)
    kraj authored and rakuco committed Jul 26, 2023
    Configuration menu
    Copy the full SHA
    49a6e88 View commit details
    Browse the repository at this point in the history
  36. clang: Do not force libgcc libunwind in rv32 and rv64

    llvm unwind can work on rv32 and rv64 with latest clang so open up that
    option
    
    Signed-off-by: Khem Raj <raj.khem@gmail.com>
    (cherry picked from commit bfad206)
    kraj authored and rakuco committed Jul 26, 2023
    Configuration menu
    Copy the full SHA
    9b1d53b View commit details
    Browse the repository at this point in the history
  37. nonclangable: Use libgcc for unwinder as well when using for builtins

    clang 13 does not like to mix rtlib and unwindlib when using libgcc
    
    Fixes
    clang-13: error: --rtlib=libgcc requires --unwindlib=libgcc
    
    secondly compiler-rt does not havw 128 bit ( tf ) functions
    on x86 so fallback to libgcc for those
    
    use libatomic for x86 since 64bit atomics are not in compiler-rt
    
    Signed-off-by: Khem Raj <raj.khem@gmail.com>
    (cherry picked from commit 96face1)
    kraj authored and rakuco committed Jul 26, 2023
    Configuration menu
    Copy the full SHA
    7c5c4e7 View commit details
    Browse the repository at this point in the history
  38. aufs-util,libhugetlbfs,libc-bench: Use libgcc unwinder on glibc/arm

    these packages do static linking in parts and when libc is glibc then it
    has linked in some portions of libgcc since we can not use clang to
    compile glibc yet. Therefore use libgcc where needed for now
    
    Signed-off-by: Khem Raj <raj.khem@gmail.com>
    (cherry picked from commit bf84221)
    kraj authored and rakuco committed Jul 26, 2023
    Configuration menu
    Copy the full SHA
    3b704fb View commit details
    Browse the repository at this point in the history
  39. Use libgcc instead of compiler-rt on klibc apps

    klibc does not provide libssp functions e.g. __stack_chk_guard and
    __stack_chk_guard which it expects from libc and compiler-rt code tend
    to use these functions, so when using compiler-rt it ends up with
    undefined symbols e.g.
    
    /usr/lib/clang/13.0.0/lib/linux/libclang_rt.builtins-armhf.a(divmoddi4.c.o): in function `__divmoddi4':
    divmoddi4.c:(.text+0x70): undefined reference to `__stack_chk_fail'
    arm-yoe-linux-gnueabi-ld.bfd: divmoddi4.c:(.text+0x74): undefined reference to `__stack_chk_guard'
    
    Signed-off-by: Khem Raj <raj.khem@gmail.com>
    (cherry picked from commit bc2b5e4)
    kraj authored and rakuco committed Jul 26, 2023
    Configuration menu
    Copy the full SHA
    a8d8a82 View commit details
    Browse the repository at this point in the history
  40. clang: Upgrade to latest on main/13.0 branch

    Fix compiler-rt build on armv6 reported in
    YoeDistro/yoe-distro#555
    
    Signed-off-by: Khem Raj <raj.khem@gmail.com>
    (cherry picked from commit 23729bb)
    kraj authored and rakuco committed Jul 26, 2023
    Configuration menu
    Copy the full SHA
    11a7ccd View commit details
    Browse the repository at this point in the history
  41. clang: Update to latest master/13.0

    Drop 0024-compiler-rt-Include-stddef.h.patch its accepted upstream
    
    Signed-off-by: Khem Raj <raj.khem@gmail.com>
    (cherry picked from commit 2b5f122)
    kraj authored and rakuco committed Jul 26, 2023
    Configuration menu
    Copy the full SHA
    d8c5c7f View commit details
    Browse the repository at this point in the history
  42. spirv-llvm-translator: Remove a trailing slash from SRC_URI

    The trailing slash caused the mirror name endswith a dot which looks strange:
    github.com.KhronosGroup.SPIRV-LLVM-Translator.
    
    The slash is not needed, so remove it.
    
    Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
    Signed-off-by: Changqing Li <changqing.li@windriver.com>
    (cherry picked from commit 5455c65)
    robertlinux authored and rakuco committed Jul 26, 2023
    Configuration menu
    Copy the full SHA
    817ff1b View commit details
    Browse the repository at this point in the history
  43. clang: Update to latest on main/13.0 line

    Package new content for scanbuild and libear
    
    Signed-off-by: Khem Raj <raj.khem@gmail.com>
    (cherry picked from commit 50e25bf)
    kraj authored and rakuco committed Jul 26, 2023
    Configuration menu
    Copy the full SHA
    bc52c18 View commit details
    Browse the repository at this point in the history
  44. spirv-llvm-translator: Update to latest trunk

    Signed-off-by: Khem Raj <raj.khem@gmail.com>
    (cherry picked from commit 9c84711)
    kraj authored and rakuco committed Jul 26, 2023
    Configuration menu
    Copy the full SHA
    e374e9c View commit details
    Browse the repository at this point in the history
  45. openmp: Fix build on non-x86 targets

    Signed-off-by: Khem Raj <raj.khem@gmail.com>
    (cherry picked from commit b9c9325)
    kraj authored and rakuco committed Jul 26, 2023
    Configuration menu
    Copy the full SHA
    7810c53 View commit details
    Browse the repository at this point in the history
  46. libcxx: Fix native build

    Use libgcc with clang-native to compile it
    
    Fixes kraj#465
    
    Signed-off-by: Khem Raj <raj.khem@gmail.com>
    (cherry picked from commit 4d06666)
    
    Conflicts:
    - recipes-devtools/clang/libcxx_git.bb: Commit
      93552c7 had some of the changes already.
    kraj authored and rakuco committed Jul 26, 2023
    Configuration menu
    Copy the full SHA
    3659602 View commit details
    Browse the repository at this point in the history
  47. clang: drop git suffix from version variables

    other recipe like intel-graphics-compiler, config failed with
    below error:
    [IGC] Could not find the LLVM dylib.  Aborting.
    
    with a suffix in library name make other recipe cannot found it.
    Backport a patch from 12.0.0 to fix this.
    
    Signed-off-by: Changqing Li <changqing.li@windriver.com>
    (cherry picked from commit 95c264e)
    sandy-lcq authored and rakuco committed Jul 26, 2023
    Configuration menu
    Copy the full SHA
    ec709d6 View commit details
    Browse the repository at this point in the history
  48. clang: Update to latest on 13.0.0/trunk

    Signed-off-by: Khem Raj <raj.khem@gmail.com>
    (cherry picked from commit 81119d8)
    kraj authored and rakuco committed Jul 26, 2023
    Configuration menu
    Copy the full SHA
    4214c32 View commit details
    Browse the repository at this point in the history
  49. gnutls: Disable integrated assembler on aarch64

    integrated assembler crashes latest clang on aarch64, so lets disable it
    for now
    
    Signed-off-by: Khem Raj <raj.khem@gmail.com>
    (cherry picked from commit 9d89acd)
    kraj authored and rakuco committed Jul 26, 2023
    Configuration menu
    Copy the full SHA
    870ede1 View commit details
    Browse the repository at this point in the history
  50. clang: fix do_package error when multilib enabled

    After enable multilib, libdir is /usr/lib64, but in llvm's
    CMakelist.txt, the install path is hardcode as /usr/lib
    eg:
    ${CMAKE_BINARY_DIR}/lib/libscanbuild/resources/${resource}
    
    Signed-off-by: Changqing Li <changqing.li@windriver.com>
    (cherry picked from commit f42c429)
    sandy-lcq authored and rakuco committed Jul 26, 2023
    Configuration menu
    Copy the full SHA
    c7c3af0 View commit details
    Browse the repository at this point in the history
  51. clang: Depend on clang runtime when using RUNTIME = "llvm" for native…

    … packages
    
    Signed-off-by: Khem Raj <raj.khem@gmail.com>
    (cherry picked from commit 77394fa)
    kraj authored and rakuco committed Jul 26, 2023
    Configuration menu
    Copy the full SHA
    7aeb9c5 View commit details
    Browse the repository at this point in the history
  52. clang: Upgrade to latest on trunk/13.0

    Signed-off-by: Khem Raj <raj.khem@gmail.com>
    (cherry picked from commit c6237ec)
    kraj authored and rakuco committed Jul 26, 2023
    Configuration menu
    Copy the full SHA
    831f7fe View commit details
    Browse the repository at this point in the history
  53. libclc: Drop using -cl-no-stdinc

    This flag is no longer needed with latest clang-13
    
    Signed-off-by: Khem Raj <raj.khem@gmail.com>
    (cherry picked from commit 5e3f7c2)
    kraj authored and rakuco committed Jul 26, 2023
    Configuration menu
    Copy the full SHA
    85e367c View commit details
    Browse the repository at this point in the history
  54. mesa: Use gcc on aarch64

    clang master/13.x has started segfaulting while building mesa, until it
    is fixed upstream lets switch to using gcc for mesa
    
    Signed-off-by: Khem Raj <raj.khem@gmail.com>
    (cherry picked from commit 314a701)
    kraj authored and rakuco committed Jul 26, 2023
    Configuration menu
    Copy the full SHA
    9f64c50 View commit details
    Browse the repository at this point in the history
  55. libcxx: Explicitly set LLVM_DEFAULT_TARGET_TRIPLE

    This helps during cross-compile as new clang expects this to be set or
    else it deduces it and that deduction can go wrong.
    
    See commit 395271ad11b8c233db1a4e0e6a76aa52e93e5aec in clang repo
    
    Signed-off-by: Khem Raj <raj.khem@gmail.com>
    (cherry picked from commit b224c41)
    kraj authored and rakuco committed Jul 26, 2023
    Configuration menu
    Copy the full SHA
    d19595e View commit details
    Browse the repository at this point in the history
  56. clang: Switch to 13.x branch

    Signed-off-by: Khem Raj <raj.khem@gmail.com>
    (cherry picked from commit 82fdd8d)
    kraj authored and rakuco committed Jul 26, 2023
    Configuration menu
    Copy the full SHA
    a752911 View commit details
    Browse the repository at this point in the history
  57. compiler-rt,libcxx: Fix native builds when using RUNTIME=llvm

    Signed-off-by: Khem Raj <raj.khem@gmail.com>
    (cherry picked from commit e85ba2e)
    kraj authored and rakuco committed Jul 26, 2023
    Configuration menu
    Copy the full SHA
    d8bc58d View commit details
    Browse the repository at this point in the history
  58. Revert "mesa: Use gcc on aarch64"

    This reverts commit 314a701.
    
    (cherry picked from commit b16f686)
    kraj authored and rakuco committed Jul 26, 2023
    Configuration menu
    Copy the full SHA
    327daef View commit details
    Browse the repository at this point in the history
  59. lvm2,libdevmapper: Use gcc to compile

    clang13 based builds are failing during postprocessing
    
     Mismatch between symbols in shared library and lists in .exported_symbols.* files: dm_bit_get_prev
    | dm_config_clone_node
    ...
     dm_udev_wait
    | make[1]: *** [../libdm/make.tmpl:511: .export.sym] Error 1
    
    Signed-off-by: Khem Raj <raj.khem@gmail.com>
    (cherry picked from commit 17c9d44)
    kraj authored and rakuco committed Jul 26, 2023
    Configuration menu
    Copy the full SHA
    26126fb View commit details
    Browse the repository at this point in the history
  60. clang: Update to latest 13.x branch

    Signed-off-by: Khem Raj <raj.khem@gmail.com>
    (cherry picked from commit 527f628)
    kraj authored and rakuco committed Jul 26, 2023
    Configuration menu
    Copy the full SHA
    d1bfdd6 View commit details
    Browse the repository at this point in the history
  61. meta-clang: Convert to new override syntax

    Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
    Signed-off-by: Khem Raj <raj.khem@gmail.com>
    (cherry picked from commit 17737cc)
    shr-project authored and rakuco committed Jul 26, 2023
    Configuration menu
    Copy the full SHA
    48ef88a View commit details
    Browse the repository at this point in the history
  62. Manually finish conversion

    Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
    Signed-off-by: Khem Raj <raj.khem@gmail.com>
    (cherry picked from commit 953591e)
    shr-project authored and rakuco committed Jul 26, 2023
    Configuration menu
    Copy the full SHA
    58c3155 View commit details
    Browse the repository at this point in the history
  63. recipes: Fix remaining override conversion

    Signed-off-by: Khem Raj <raj.khem@gmail.com>
    (cherry picked from commit 1fbf558)
    kraj authored and rakuco committed Jul 26, 2023
    Configuration menu
    Copy the full SHA
    b86c7cb View commit details
    Browse the repository at this point in the history
  64. clang.bbclass: Convert libc-klibc override to new syntax

    Signed-off-by: Khem Raj <raj.khem@gmail.com>
    (cherry picked from commit 5b30d62)
    kraj authored and rakuco committed Jul 26, 2023
    Configuration menu
    Copy the full SHA
    34bb7d2 View commit details
    Browse the repository at this point in the history
  65. nonclangable.conf: Convert remaining overrides to new syntax

    Signed-off-by: Khem Raj <raj.khem@gmail.com>
    (cherry picked from commit d2a30f0)
    kraj authored and rakuco committed Jul 26, 2023
    Configuration menu
    Copy the full SHA
    7707e3a View commit details
    Browse the repository at this point in the history
  66. jack: Use gcc to build for 32bit arches

    Latest jack does not build with clang-13 for 32bit arches
    
    | In file included from ../git/common/JackFreewheelDriver.cpp:23:
    | ../git/common/JackEngineControl.h:67:5: error: requested alignment is less than minimum alignment of 8 for type 'Jack::JackTransportEngine'
    |     alignas(UInt32) JackTransportEngine fTransport;
    |     ^
    | ../git/common/JackEngineControl.h:89:5: error: requested alignment is less than minimum alignment of 8 for type 'Jack::JackFrameTimer'
    |     alignas(UInt32) JackFrameTimer fFrameTimer;
    |     ^
    | 2 errors generated.
    
    Signed-off-by: Khem Raj <raj.khem@gmail.com>
    (cherry picked from commit e4978cc)
    kraj authored and rakuco committed Jul 26, 2023
    Configuration menu
    Copy the full SHA
    d15030d View commit details
    Browse the repository at this point in the history
  67. libc-bench: Link with libgcc when using llvm runtime

    This uses static link and glibc uses libgcc intrinsics which otherwise
    are undefinded. Glibc is built using gcc + gnu runtime still
    
    Signed-off-by: Khem Raj <raj.khem@gmail.com>
    (cherry picked from commit 0516983)
    kraj authored and rakuco committed Jul 26, 2023
    Configuration menu
    Copy the full SHA
    a312165 View commit details
    Browse the repository at this point in the history
  68. clang: Update to latest on 13.x release branch

    Fix libcxx/locale builds on musl
    
    Signed-off-by: Khem Raj <raj.khem@gmail.com>
    (cherry picked from commit f9c73c7)
    kraj authored and rakuco committed Jul 26, 2023
    Configuration menu
    Copy the full SHA
    7857e6f View commit details
    Browse the repository at this point in the history
  69. clang/compiler-rt: Convert to new override syntax

    Signed-off-by: Khem Raj <raj.khem@gmail.com>
    (cherry picked from commit 45a3707)
    kraj authored and rakuco committed Jul 26, 2023
    Configuration menu
    Copy the full SHA
    4d6dad2 View commit details
    Browse the repository at this point in the history
  70. clang: Update to latest on 13.x

    Signed-off-by: Khem Raj <raj.khem@gmail.com>
    (cherry picked from commit ccd1a48)
    kraj authored and rakuco committed Jul 26, 2023
    Configuration menu
    Copy the full SHA
    fa309b3 View commit details
    Browse the repository at this point in the history
  71. mpich: Use gcc runtime with clang for x86/x86_64

    It needs symbols like __multf3 which are not in compiler-rt
    
    Signed-off-by: Khem Raj <raj.khem@gmail.com>
    (cherry picked from commit 8f0c09e)
    kraj authored and rakuco committed Jul 26, 2023
    Configuration menu
    Copy the full SHA
    ae452b9 View commit details
    Browse the repository at this point in the history
  72. clang: Update towards 13.x RC2

    Revert a patch in openmp which added opt dependency, which fails to find
    opt when ding standalone builds see https://reviews.llvm.org/D107156
    
    Changes in this bump
    
      * 34ff6a75f583 [docs] Update release notes for OpenMP 5.1 loop transformations.
      * 34300c3c00f5 [libc++] Fix incorrect bypassing of <wctype.h>
      * 198edf09f58e [libc++] XFAIL align.pass.cpp for PowerPC LE
      * 4094728a8147 [libc++abi] Apply simplify scan_eh_tab to SjLj
      * 4e692c97a8c1 [LoopIdiom] Don't transform loop into memmove when load from body has more than one use
      * c22eb9a4a5dd [NFC][LoopIdiom] Add reproducer of wrong memmove transformation
      * d069343fa526 Revert "[RISCV] Fix reporting of incorrect commutable operand indices"
      * 1828e57eb586 ThinLTO: Fix inline assembly references to static functions with CFI
      * 7161e4f3345f [clang-tidy] Hotfix default parameter value in 'bugprone-easily-swappable-parameters'
      * a7933290f72a [RISCV] Fix reporting of incorrect commutable operand indices
      * c9afa3a749f0 [Coverage][llvm-cov] Correctly export branch coverage in LCOV format
      * e8ce80e31d93 [profile] Don't use pragma comment linker on mingw
      * 4f857ea56b4f [profile] Add underscore to /alternatename for Win/x86
      * d3d9dc586933 [profile] Build with -fms-extensions in MinGW mode
      * cf035cac186b [scudo][standalone] Link tests against libatomic if libatomic exists
      * 1f0b043ae709 [libomptarget] Apply D106710 to amdgcn devicertl
      * ab2d8f074974 [libomptarget][amdcgn] Add build dependency for opt
      * 3020229e73ec [clang] Replace asm with __asm__ in cuda header
      * d6944303acfd [openmp] Annotate tmp variables with omp_thread_mem_alloc
      * 47bbdbecb039 [AMDGPU][OpenMP] Wrap amdgcn declare variant inside ifdef
      * 573858e9805e [AMDGPU][OpenMP] Use llvm-link to link ocml libraries
      * 512c57ea97ae [OpenMP][AMDGCN] Initial math headers support
      * d1923cb0aec2 [AMDGPU][OpenMP] Support linking of math libraries
      * 7f2f829479dc Revert sharing subprograms across CUs
      * ae5ed5d23bb1 [libc++] Bypass calling exception-throwing functions in the dylib with -fno-exceptions
      * 23ba3732246a [libc++][PowerPC] Fix a test case failure when compiled with libcxx
      * 80878ccb3286 [libc++] Fix XFAIL annotation
      * 10a4a861837d [lldb] Add tests for TypeSystemMap::GetTypeSystemForLanguage
      * 535b7fb2201a [lldb] Avoid unhandled Error in TypeSystemMap::GetTypeSystemForLanguage
      * ddc49d0f1f2b [clang] [MSVC] Implement __mulh and __umulh builtins for aarch64
      * 34f839fc9d4c Revert "[clang][fpenv][patch] Change clang option -ffp-model=precise to select ffp-contract=on"
      * b643ee1b9c1a [AArch64] Fix comparison peephole opt with non-0/1 immediate (PR51476)
      * 98feb20df14e [profile] Only use NT_GNU_BUILD_ID if supported
      * fcd5126bfba8 [X86][AVX] Extract SUBV_BROADCAST constant bits from just the lower subvector range (PR51281)
      * f3e1d94de69d [ARM][atomicrmw] Fix CMP_SWAP_32 expand assert
      * 15b8be0b832a [libc++] Skip logic for detecting C11 features when using_if_exists is supported
      * 404024f9adc1 [libc++] Split off tests for aligned_alloc & friends into separate test files
      * c40c3bfa9a87 [libc++] Convert test-suite workarounds for some C11 features to XFAILs
      * 0c25e0174861 [Flang] Fix build failure on MacOS
      * 2e4c11ee3209 [PowerPC] Disable CTR Loop generate for fma with the PPC double double type.
      * 08dd644d078a ReleaseNotes: add lld/ELF notes
      * 2153cad11ba2 [DAGCombiner] Stop visitEXTRACT_SUBVECTOR creating illegal BITCASTs post legalisation.
      * 87d56ad4411d [LLD] [MinGW] Add more options for disabling flags in the executable
      * b9be17a7ecf9 [clang] fix crash on template instantiation of invalid requires expressions
      * d86e569e8119 [clang] [hexagon] Add resource include dir
      * 24d8b6565a2e [Attributor][FIX] Guard constant casts with type size checks
      * 5b60faae3f10 [InstCombine] avoid infinite loops from min/max canonicalization
      * f4006c59497d [InstSimplify] fold min/max with limit constant
      * ba048518e08f [InstSimplify] add tests for min/max idioms; NFC
      * 0dd4f002e1d3 [OpenMP]Fix PR50336: Remove temporary files in the offload bundler tool
      * a57d98111e63 [LoopVectorize] Improve vectorisation of some intrinsics by treating them as uniform
      * 740f08210e5d [NFC] Clean up tests in test/Transforms/LoopVectorize/assume.ll
      * 1bbe8ef81549 [lld-macho] Fill out release notes for 13.x
    
    Signed-off-by: Khem Raj <raj.khem@gmail.com>
    (cherry picked from commit 5187604)
    kraj authored and rakuco committed Jul 26, 2023
    Configuration menu
    Copy the full SHA
    2d983df View commit details
    Browse the repository at this point in the history
  73. spirv-llvm-translator: switch to release llvm_release_130 branch

    Fetching SPIRV-Headers, which provides required spirv.hpp headers
    
    https://github.com/KhronosGroup/SPIRV-Headers.git
    
    Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
    (cherry picked from commit 610c47b)
    saininav authored and rakuco committed Jul 26, 2023
    Configuration menu
    Copy the full SHA
    c27b829 View commit details
    Browse the repository at this point in the history
  74. clang: Fix llvm-link and opt dependency build failure in libomp

    Update to latest 13.x as well
    
      * 9e41dc71b8d4 [docs] Mention that the legacy PM is deprecated and will be removed after 14
      * 73c36a9be558 [OpenMP][FIX] Allow declare variant to work with reference types
      * bcb43617cb7f [NewPM] Add missing LTO ArgPromotion pass
      * 703ee975d26a [AlignFromAssume] Bailout w/non-constant alignments (pr51680)
    
    Signed-off-by: Khem Raj <raj.khem@gmail.com>
    (cherry picked from commit 4f69b68)
    kraj authored and rakuco committed Jul 26, 2023
    Configuration menu
    Copy the full SHA
    01486fb View commit details
    Browse the repository at this point in the history
  75. clang: Update to latest 13.x

    Drop upstreamed patches
    
    Brings following changes
    
      * Workaround incorre  ct types when lowering fixed length gather/scatter
      * f17d60d62028 Inform pass manager when child loops are deleted
      * f56129fe78d5 Fine grain control over some sym  bol visibility
      * dc10ff25f54b [AArch64][SME] Fix imm bug in mov vector to tile aliases
      * b77c810feba0 Revert "[HardwareLoops] Change order of SCEV expression construction for Init  LoopCount."
      * 02dece03f93d [clang] fix transformation of template arguments of 'auto' type constraints
      * 297e9237db53 [SelectionDAGBuilder]  Bugfix in visitInlineAsm()
      * bc3cbd744d70 [llvm-objdump] Fix 'llvm-objdump -dr' for executables with relocations
      * 912ad5830cc1 Add llvm-ml to LLVM_TOOLCHAIN_TOOLS (PR50536)
      * b46abdb7b8fe [clang][Driver] Pick the last --driver-mode in case of multiple ones
      * 197d9d91aec1 [AArch64][sve] Prevent incorrect function call on fixed width vector
      * 427df19c4791 Update counter offset to account for binary ids
      * 09f659449b83 libunwind: add missing break statements in EHABI
      * a98b397504f8 [SCEV] Fix applyLoopGuards() with range check idiom (PR51760)
      * 9b3867e959fa [DAGCombine] Prevent the transform of combine for multi-use operand
      * 49dacda603b3 [tests] precommit tests for D107692
      * 8aa8ed9d4b5f Fix for commit d8cd7806310c51af912a647a6ca46de62ff13214.
      * 2a1d8b5016eb [clang] OpenBSD does not support C11 atomics or threads.
      * a52b7bf7d123 PR50294: Fix a performance regression from 2c9dbcd.
      * c30b2813a1d5 [clang] fix error recovery ICE on copy elision when returing invalid variable
      * 6668e31250ba Support linking against OpenMP runtime on OpenBSD.
      * be305271bfb6 OpenBSD also needs execinfo
      * a5e968b66a59 [clang] Allow the OpenBSD driver to link the libclang_rt.profile library.
      * 181739213aa0 [docs] Update release notes with items related to Flang
      * c45fa58f171e [libomptarget][amdcgn] Only add opt/llvm-link dependency if TARGET is availab  le
      * 7f3d00c9b49b [libomptarget][amdcgn] Add build dependency for llvm-link and opt
      * 3b1fa4aef006 [RISCV] Fix reporting of incorrect commutable operand indices
      * 1c3fcc8ae92e [libc++][NFC] Mark values in gdb pretty print comparison functions as live to   prevent values being optimized out.
      * c8905f1bb304 [Orc] Enable debug object tests only on x86_64 hosts
      * 7a4a5d413624 [Linker] Support weak symbols in nodeduplicate COMDAT group
    
    Signed-off-by: Khem Raj <raj.khem@gmail.com>
    (cherry picked from commit 12c3739)
    kraj authored and rakuco committed Jul 26, 2023
    Configuration menu
    Copy the full SHA
    3413cb7 View commit details
    Browse the repository at this point in the history
  76. spirv-llvm-translator: Define explicit SRCREV_FORMAT

    Since it uses multiple fetch URIs make it explicit to define SRCREV_FORMAT
    
    Signed-off-by: Khem Raj <raj.khem@gmail.com>
    (cherry picked from commit 46e154f)
    kraj authored and rakuco committed Jul 26, 2023
    Configuration menu
    Copy the full SHA
    32fcd0a View commit details
    Browse the repository at this point in the history
  77. clang: Update to latest 13.x

    Brings following changes up to 13.0.0-rc3
    
    f6b09e394a5f [openmp] Apply code change from D109500
    1916a1c578f8 [VPlan] Fix crash caused by not updating all users properly.
    2aa67b31faf0 [clang-format] Restrict the special handling for K&R C to C/C++
    f1342c749ac0 [LLDB] AArch64 SVE restore SVE registers after expression
    fbb8b41588be Revert "[AArch64][GlobalISel] Legalize bswap <2 x i16>"
    1c198b3032e8 Revert [MC][ELF] Emit separate unique sections for different flags
    4728892cd336 [LLD] Support compressed input sections on big-endian targets
    77f24308fe78 [X86] Don't clobber EBX in stackprobes
    1ff9aa2bfe19 [IR] Handle constant expressions in containsUndefinedElement()
    84a3be829686 [SimplifyCFG] performBranchToCommonDestFolding(): require block-closed SSA form for bonus instructions (PR51125)
    bd8cc8543fdc [OpenCL][Docs] Update OpenCL 3.0 implementation status.
    9723fc15338e [OpenCL][Docs] Release 13 notes.
    f53652203e49 scudo: Only add no-omit-frame-pointer flags when the compiler supports them
    c8d8248488a3 [clang-format] Improve detection of parameter declarations in K&R C
    4ab7fe9228db [clang-format] Distinguish K&R C function definition and attribute
    748f09fdd5d6 [clang-format] improve distinction of K&R function definitions vs attributes
    ffd90ed19988 [clang-format] handle trailing comments in function definition detection
    b685e13d1130 [clan-format] detect function definitions more conservatively
    e3ec9058aae5 [MemCpyOpt] Fix a variety of scalable-type crashes
    718280c8a2d1 [AMDGPU][OpenMP] Use complex definitions from complex_cmath.h
    
    Signed-off-by: Zoltán Böszörményi <zboszor@gmail.com>
    (cherry picked from commit b8463aa)
    zboszor authored and rakuco committed Jul 26, 2023
    Configuration menu
    Copy the full SHA
    0df0e75 View commit details
    Browse the repository at this point in the history
  78. spirv-llvm-translator: Use the latest commit for SPIRV-Headers

    Signed-off-by: Zoltán Böszörményi <zboszor@gmail.com>
    (cherry picked from commit edd9f7e)
    zboszor authored and rakuco committed Jul 26, 2023
    Configuration menu
    Copy the full SHA
    a544127 View commit details
    Browse the repository at this point in the history
  79. spirv-llvm-translator: Use latest revisions

    Use latest revisions for SPIRV-LLVM-Translator and SPIRV-Headers
    
    Signed-off-by: Zoltán Böszörményi <zboszor@gmail.com>
    (cherry picked from commit 11b5b37)
    zboszor authored and rakuco committed Jul 26, 2023
    Configuration menu
    Copy the full SHA
    7388b98 View commit details
    Browse the repository at this point in the history
  80. clang: use global multilib variants

    Using regular multilib variants prevents sharing state between machines
    with dissimilar multilibs, or non-multilib machines. Since there's no
    harm in having extra multilib triples, use the full set for all builds.
    
    Signed-off-by: Dan McGregor <dan.mcgregor@usask.ca>
    (cherry picked from commit 1f40e64)
    dankm authored and rakuco committed Jul 26, 2023
    Configuration menu
    Copy the full SHA
    157bc38 View commit details
    Browse the repository at this point in the history
  81. clang: Update to 13.0.0-rc4

    Changes in this set
    
      * d7b669b3a303 [clang] don't mark as Elidable CXXConstruct expressions used in NRVO
      * ee6913cc8317 [analyzer] Add 13.0.0 release notes
      * d0f0b5b99262 Thread safety analysis: Warn when demoting locks on back edges
      * 80f974e40f81 [AArch64][GlobalISel] Use ZExtValue for zext(xor) when invert tb(n)z
      * 5b95eb0b442e [debuginfo-test][cross-project-tests] Release note for new project name
      * b96ee8f581f6 [X86] combineX86ShuffleChain - ensure we only peek through bitcasts to vectors (PR51858)
      * dda88bfc06b5 [clang][scan-build] Use cc/c++ instead of gcc/g++ on OpenBSD.
      * 08642a395f23 Fix syntax error in Clang release notes
      * 6a5ccb2ec438 [compiler-rt] Implement __clear_cache() on OpenBSD/riscv64
      * 6aa054242d60 [LLD] Add required `ppc` target to the test cases. NFC
      * 8d78ac26f475 [OpenMP]Fix PR51349: Remove AlwaysInline for if regions.
      * d811546f803c [compiler-rt] Move -fno-omit-frame-pointer check to common config-ix
      * 89f2c0c63c22 [clang] disable implicit moves when not in CPlusPLus
      * 635b7871de93 [clang-repl] Install clang-repl
      * 1f27fe612876 -Wunused-but-set-parameter/-Wunused-but-set-variable Add to the release notes
    
    Signed-off-by: Khem Raj <raj.khem@gmail.com>
    (cherry picked from commit d236ded)
    kraj authored and rakuco committed Jul 26, 2023
    Configuration menu
    Copy the full SHA
    dd6fe50 View commit details
    Browse the repository at this point in the history
  82. nativesdk-clang: Fix build when using RUNTIME = llvm

    We can not use nativesdk variants of libcxx and compiler-rt yet when
    compiling nativesdk-clang because, it will need this compiler to build
    them, so solve this catch-22, since we do not use the runtime built
    during compiler builds, use libgcc/libstdc++ to pass cmake tests
    during configure, this should be fine as it will be not needed for final
    builds where nativesdk-clang will be used, it can still default to llvm
    runtime on SDK host
    
    Signed-off-by: Khem Raj <raj.khem@gmail.com>
    (cherry picked from commit 826f728)
    kraj authored and rakuco committed Jul 26, 2023
    Configuration menu
    Copy the full SHA
    f679ca9 View commit details
    Browse the repository at this point in the history
  83. clang_git: disable LLD usage

    This will resolve issue with SDK relocation. See:
    
    kraj#119
    
    Signed-off-by: David Abdurachmanov <david.abdurachmanov@sifive.com>
    Signed-off-by: Khem Raj <raj.khem@gmail.com>
    (cherry picked from commit 68b8f9b)
    David Abdurachmanov authored and rakuco committed Jul 26, 2023
    Configuration menu
    Copy the full SHA
    4649986 View commit details
    Browse the repository at this point in the history
  84. clang: Add patch to handle RISCV multilibs

    Signed-off-by: Khem Raj <raj.khem@gmail.com>
    (cherry picked from commit 27d31ea)
    kraj authored and rakuco committed Jul 26, 2023
    Configuration menu
    Copy the full SHA
    555535c View commit details
    Browse the repository at this point in the history
  85. clang: Update to latest on 13.x release

    bump minor release to 13.0.1
    Drop patch to remove git from PACKAGE_VERSION, this is already
    eliminated from upstream
    
    Following changes are part of this change
    
      * 08e3a5ccd952 [IntelJITListener] Fix order in JitListener/multiple.ll
      * 26e2c97bf14c [openmp] [elf_common] Fix linking against LLVM dylib
      * eb845520ac3c compiler-rt: Fix arch detection for ppc64le
      * ec4829efcc94 fixes bug #51926 where dangling comma caused overrun
      * 73daeb3d507f [CUDA] Make sure <string.h> is included with original __THROW defined.
      * 3ee9a2b63cfd [Support][mips] Remove unnecessary includes from Memory.inc
      * 47f53eec6485 [Mips] Add glue between CopyFromReg, CopyToReg and RDHWR nodes for TLS
      * 914355ee793c [CMake] Re-enable use --gc-sections on OpenBSD
      * 2ac023cd540a [clang] Omit most AttributedStatements from the CFG
      * 30c05f43b662 [runtimes] Properly handle the sysroot/triple/gcc-toolchain
      * a797306b7721 [clang-format] [PR51640] - New AfterEnum brace wrapping changes have cause C# behaviour to change
      * 0a5ae011cd23 [HIP] Fix test rcom-detect.hip
      * 1a40203f8e94 workflows: Update lldb workaround to latest version of Mac OS X
      * 8a93745a7121 Remove "In Progress" text from release notes
      * 449f3049b507 [GHA] Cancel intermediate builds on PRs
      * cf15ccdeb6d5 Bump version to 13.0.1
      * fd1d8c2f04dd [cte] Release notes for clangd-13
    
    Signed-off-by: Khem Raj <raj.khem@gmail.com>
    (cherry picked from commit d246141)
    kraj authored and rakuco committed Jul 26, 2023
    Configuration menu
    Copy the full SHA
    7f966d3 View commit details
    Browse the repository at this point in the history
  86. clang: don't use lnr

    lnr is deprecated, simply use ln -rs instead.
    
    Signed-off-by: Ross Burton <ross.burton@arm.com>
    (cherry picked from commit 0590f78)
    rossburton authored and rakuco committed Jul 26, 2023
    Configuration menu
    Copy the full SHA
    3a19923 View commit details
    Browse the repository at this point in the history
  87. castxml: add branch and switch to using https

    Github no longer supports fetching using git protocol and bitbake now
    requires explicit branch.
    
    Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
    (cherry picked from commit b712d7b)
    anujm1 authored and rakuco committed Jul 26, 2023
    Configuration menu
    Copy the full SHA
    7b6b1c9 View commit details
    Browse the repository at this point in the history
  88. spirv-llvm-translator: add explicit branch

    Bitbake now shows warnings if branch parameter is not supplied
    explicitly.
    
    Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
    (cherry picked from commit 4e28225)
    anujm1 authored and rakuco committed Jul 26, 2023
    Configuration menu
    Copy the full SHA
    54e2c2a View commit details
    Browse the repository at this point in the history
  89. glibc-tests: Pin compiler to gcc

    glibc is not yet compilable for clang
    and glibc-tests is driven out of glibc sources in essense
    
    Signed-off-by: Khem Raj <raj.khem@gmail.com>
    (cherry picked from commit 81dca6d)
    kraj authored and rakuco committed Jul 26, 2023
    Configuration menu
    Copy the full SHA
    621966f View commit details
    Browse the repository at this point in the history
  90. libcxx: Set CMAKE_BUILD_WITH_INSTALL_RPATH

    cmake 3.22+ is causing install failures e.g.
    
    | -- Install configuration: "Debug"
    | -- Installing: /mnt/b/yoe/master/build/tmp/work/armv7at2hf-neon-yoe-linux-gnueabi/libcxx/13.0.1-r0/image/usr/lib/libc++.so.1.0
    | -- Installing: /mnt/b/yoe/master/build/tmp/work/armv7at2hf-neon-yoe-linux-gnueabi/libcxx/13.0.1-r0/image/usr/lib/libc++.so.1
    | -- Set runtime path of "/mnt/b/yoe/master/build/tmp/work/armv7at2hf-neon-yoe-linux-gnueabi/libcxx/13.0.1-r0/image/usr/lib/libc++.so.1.0" to ""
    | -- Installing: /mnt/b/yoe/master/build/tmp/work/armv7at2hf-neon-yoe-linux-gnueabi/libcxx/13.0.1-r0/image/usr/lib/libc++.so
    | CMake Error at cmake_install.cmake:88 (file):
    |   file RPATH_CHANGE could not write new RPATH:
    |
    |
    |
    |   to the file:
    |
    |     /mnt/b/yoe/master/build/tmp/work/armv7at2hf-neon-yoe-linux-gnueabi/libcxx/13.0.1-r0/image/usr/lib/libc++.so
    |
    | Call Stack (most recent call first):
    |   /mnt/b/yoe/master/build/tmp/work/armv7at2hf-neon-yoe-linux-gnueabi/libcxx/13.0.1-r0/build/projects/libcxx/cmake_install.cmake:56 (include)
    |
    
    Apply a workaround by building install time rpaths directly during build time
    too.
    
    Real fix perhaps will be in cmake somewhere.
    
    Signed-off-by: Khem Raj <raj.khem@gmail.com>
    (cherry picked from commit 85fb0a6)
    kraj authored and rakuco committed Jul 26, 2023
    Configuration menu
    Copy the full SHA
    e60970a View commit details
    Browse the repository at this point in the history
  91. clang: Update to 13.0.1-rc1

    Changes in this release
    
      * 19b8368225dc [X86][VARARG] Assign MMO earlier to   avoid prolog insert point been sunk across VASTART_SAVE_XMM_REGS
      * 41c85bbb43e4 [X86][NFC] Pre-commit test to show prolog insert problem
      * 9dc7d6d5e326 [SystemZ] Give the EXRL_Pseudo a size value of 6 bytes.
      * 32bb956916e3 Bad SLPVectorization shufflevector replacement, resulting in write to wrong memory location
      * 93edfb23b18b [SLP][NFC]Add a test to show an issue with incorrectly extracted pointers.
      * 162f3f18c945 [Aarch64] Correct register class for pseudo instructions
      * 8be24d19fefa [MergeICmps] Don't merge icmps derived from pointers with addressspaces
      * 9e084f4194e6 Fix building with GCC 12:
      * d5159b99105d MLIR can't support -Bsymbolic link option, fail at CMake time with a helpful message instead of broken ru  ntime
      * ff2cb6e400c3 [clang] Partially revert d8cd7806310c51af912a647a6ca46de62ff13214.
      * ed38280d006c [ARM] Use hardware TLS register in Thumb2 mode when -mtp=cp15 is passed
      * 216200aff268 [libc++] Fix hang in counting_semaphore::try_acquire
      * 00f64ccb49d9 [libc++] Remove non-atomic "platform" semaphore implementations.
      * 6cf25deec7d0 [libc++] counting_semaphore should not be default-constructible.
      * d218ef07a072 Re-apply the fix on DwarfEHPrepare and add a test
    
    Signed-off-by: Khem Raj <raj.khem@gmail.com>
    (cherry picked from commit 1b16405)
    kraj authored and rakuco committed Jul 26, 2023
    Configuration menu
    Copy the full SHA
    85c11d3 View commit details
    Browse the repository at this point in the history
  92. Use GCC runtime on ppc32 and armv5

    libcxx does not build for armv5 due to atomic locks issue
    and compile-rt cross build needs to be fixed for ppc32
    
    Signed-off-by: Khem Raj <raj.khem@gmail.com>
    (cherry picked from commit e411e74)
    kraj authored and rakuco committed Jul 26, 2023
    Configuration menu
    Copy the full SHA
    f127d79 View commit details
    Browse the repository at this point in the history
  93. clang: for x86_64, correct GCC install search path for OpenEmbedded Host

    Build on OpenEmbedded Host, compiler-rt-native do_configure failed with
    following error:
    compiler-rt-native/13.0.1-r0/recipe-sysroot-native/usr/bin/clang -target x86_64-linux
    -isystem/path/to/x86_64-linux/compiler-rt-native/13.0.1-r0/recipe-sysroot-native/usr/include
    -O2 -pipe
    /path/to/compiler-rt-native/13.0.1-r0/recipe-sysroot-native/usr/share/cmake-3.21/Modules/CMakeCCompilerABI.c`
    |     /build/tmp-glibc/hosttools/ld: cannot find crtbeginS.o: No such file or directory
    |     /build/tmp-glibc/hosttools/ld: cannot find -lgcc
    |     /build/tmp-glibc/hosttools/ld: cannot find -lgcc
    |     clang-13: error: linker command failed with exit code 1 (use -v to see invocation)
    
    Since OpenEmbedded Host's gcc install path is different with clang's
    default search form, patch for OpenEmbedded Host's gcc library install
    path.
    
    Signed-off-by: Changqing Li <changqing.li@windriver.com>
    (cherry picked from commit edca114)
    sandy-lcq authored and rakuco committed Jul 26, 2023
    Configuration menu
    Copy the full SHA
    deb6007 View commit details
    Browse the repository at this point in the history
  94. clang: Update to latest on 13.x

    Fixes brought in
    
      * f3394dc82c20 [libc++] Fix wrongly non-inline basic_string::shrink_to_fit
      * 52bfd2c1ccd8 [ELF] Do not report undefined weak references in shared libraries
    
    Signed-off-by: Khem Raj <raj.khem@gmail.com>
    (cherry picked from commit 6445e77)
    kraj authored and rakuco committed Jul 26, 2023
    Configuration menu
    Copy the full SHA
    330e3b1 View commit details
    Browse the repository at this point in the history
  95. clang: Set CLANG_DEFAULT_PIE_ON_LINUX to ON

    This is new variable added in clang 14+ to defaultl to PIE
    
    Signed-off-by: Khem Raj <raj.khem@gmail.com>
    (cherry picked from commit b717821)
    kraj authored and rakuco committed Jul 26, 2023
    Configuration menu
    Copy the full SHA
    c0a364e View commit details
    Browse the repository at this point in the history
  96. clang: Add packageconfig for lldb lua support

    Ensures right dependencies are added,  and keep it off by default
    
    Signed-off-by: Khem Raj <raj.khem@gmail.com>
    (cherry picked from commit 6967fcc)
    kraj authored and rakuco committed Jul 26, 2023
    Configuration menu
    Copy the full SHA
    4f1171f View commit details
    Browse the repository at this point in the history
  97. DEPENDS on virtual/${TARGET_PREFIX}binutils

    ```virtual/${TARGET_PREFIX}binutils``` shall be used and not ```binutils-cross-${TARGET_ARCH}```
    In the case of an external arm toolchain, ```binutils-cross-aarch64``` does not exist and creates following error:
    ```
    Missing or unbuildable dependency chain was: ['tisdk-base-image', 'packagegroup-core-standalone-sdk-target', 'libcxx-dev', 'compiler-rt', 'clang-cross-aarch64', 'binutils-cross-aarch64']
    ```
    Signed-off-by: Guillaume Pais <guillaume.pais@siemens.com>
    
    (cherry picked from commit 0304ff4)
    guillaume-pais-siemens authored and rakuco committed Jul 26, 2023
    Configuration menu
    Copy the full SHA
    f91a11a View commit details
    Browse the repository at this point in the history
  98. clang: support android runtime

    Signed-off-by: Hsia-Jun(Randy) Li <randy.li@synaptics.com>
    (cherry picked from commit a494bbb)
    Hsia-Jun(Randy) Li authored and rakuco committed Jul 26, 2023
    Configuration menu
    Copy the full SHA
    1519dcd View commit details
    Browse the repository at this point in the history
  99. clang: Create cross symlinks for more binutils

    This helps in creating cross utilities to be used during OE cross builds
    as noted in
    
    Issue kraj#491
    
    Signed-off-by: Khem Raj <raj.khem@gmail.com>
    (cherry picked from commit fd587ea)
    kraj authored and rakuco committed Jul 26, 2023
    Configuration menu
    Copy the full SHA
    f00fa0c View commit details
    Browse the repository at this point in the history
  100. clang: Update to latest 13.x relase

    This brings in
      * 9468a0f95385 [PowerPC] Define XL-compatible macros only for   AIX and Linux
      * ae24102617c9 [X86] Don't add implicit REP prefix to VIA PadLock xstore
      * c95753ff5c11 [NFC][X86] Add MC tests for all untested VIA PadLock instructions
      * d9f927f2cfe8 [sanitizer] Disable test incompartible with recert GLIBC
      * abc0cf92bb14 [sanitizer] Intercept lstat on Linux
      * b40f07b048c4 [msan] Add stat-family interceptors on Linux
      * 59289a837b00 [AA] Handle callbr instructions in alias analysis
      * 5b2990a6ff77 [ELF] #undef PPC to support GCC powerpc32 build
      * bdd28a2a138f [sanitizer] Don't test __pthread_mutex_lock with GLIBC 2.34
      * 2c6c3e4b713b [asan] Fix "no matching function" on GCC
      * c1b51f098751 [msan] Disabled test failing on new GLIBC
      * 578e500fe5ba [Sparc] Create an error when `__builtin_longjmp` is used
      * cd4ebb2918ae [LazyCallGraph] Skip blockaddresses
      * d4a57c84834c workflows: Update workaround for lldb on Mac OS
      * d96358a28193 [compiler-rt] Increase kDlsymAllocPoolSize to fix test failures
      * c446ac46746e [Passes] Fix relative lookup table converter pass
      * 9fb79e6940b2 [PowerPC] Handle base load with reservation mnemonic
      * e68f640deecc [ELF][PPC32] Make R_PPC32_PLTREL retain .got
      * 87ca22cba2fa [Support] Attempt to fix deadlock in ThreadGroup
      * d904698b53e4 [Analysis] Ignore casts and unary ops for uninitialized values
      * 5932c004778c [MC][ELF] Fix accepting abbreviated form with Type change
      * 29276490d13c [MC][ELF] Do not error on parsing .debug_* section directive for MIPS
      * 724ed207b760 [ELF] Hint -z nostart-stop-gc for __start_ undefined references
    
    Signed-off-by: Khem Raj <raj.khem@gmail.com>
    (cherry picked from commit e59b8f5)
    kraj authored and rakuco committed Jul 26, 2023
    Configuration menu
    Copy the full SHA
    cfc36aa View commit details
    Browse the repository at this point in the history
  101. clang-tools-extra: apply upstream patch

    run-clang-tidy.py is being run on unique files only
    when using this patch
    
    Signed-off-by: Serikzhan Kazi <doze-tile-ruse-exit@mbition.io>
    (cherry picked from commit 414445a)
    Serikzhan Kazi authored and rakuco committed Jul 26, 2023
    Configuration menu
    Copy the full SHA
    71c6b6c View commit details
    Browse the repository at this point in the history
  102. nativesdk-clang-glue: delete spdx tasks

    Extending poky's create-spdx class for SDKs results in a dependency loop:
    nativesdk-clang-glue.bb:do_create_spdx ->clang_git.bb:do_create_spdx ->
    clang-crosssdk_git.bb:do_create_spdx ->
    nativesdk-clang-glue.bb:do_create_spdx. Delete spdx tasks from
    nativesdk-clang-blue.bb
    
    Signed-off-by: Andres Beltran <abeltran@microsoft.com>
    (cherry picked from commit 02ed1fb)
    andresbeltranmsft authored and rakuco committed Jul 26, 2023
    Configuration menu
    Copy the full SHA
    a4e8310 View commit details
    Browse the repository at this point in the history
  103. clang: Update to 13.0.1-rc3

    Changes in this uprev
    
      * 75e33f71c2da [X86] combineVectorHADDSUB - remove the broken HOP(x,x) merging code (PR51974)
      * 6349865a8f37 [CMake] Don't use -fno-semantic-interposition with Clang<=13
      * b3dcd156472f [ARM] Define ComplexPatternFuncMutatesDAG
      * 1f1854ce0fe5 [Driver][test] Fix undefined-libs.cpp when CLANG_DEFAULT_UNWINDLIB is libunwind
      * fc043d8a256b Revert "[lld][CMake] Add LLD_DEFAULT_NOSTART_STOP_GC"
      * 5869ea6c6254 [sanitizer] msan build fix on non linux platforms
      * b9a243d1cac2 (tag: llvmorg-13.0.1-rc2) [Coroutines] Enhance symmetric transfer for constant CmpInst
      * 9d9efb1f67ff [lld][CMake] Add LLD_DEFAULT_NOSTART_STOP_GC
      * 52a400d8e4c4 [InlineCost] model calls to llvm.is.constant* more carefully
      * eaeb7dcf3249 ARM: make FastISel & GISel pass -1 to ADJCALLSTACKUP to signal no callee pop.
      * eecd0f055baa Have lit preserve SOURCE_DATE_EPOCH
      * bfb1bd1b9906 [Clang][Sema] Avoid crashing for va_arg expressions with bool argument
      * 1ac6bb3c4dd4 [Clang][CFG] check children statements of asm goto
      * 12aaa8553f82 [InstCombine] Remove attributes after hoisting free above null check
      * 35df3f98639e [DIArgList] Re-unique after changing operands to fix non-determinism
      * 0f915e755eae [RegAllocFast] Fix nondeterminism in debuginfo generation
      * 33f7aa65f5d7 [DSE] Fix invalid removal of store instruction
      * 426297cce9d5 [DSE] Add test case showing bug PR52774.
      * 0d44201451f0 [MachineOutliner] Don't outline functions starting with PATCHABLE_FUNCTION_ENTER/FENTRL_CALL
      * 69fcfdedc505 [AArch64][GlobalISel] Fix an crash in RBS due to a new regclass being added.
      * d31f8cc6884b [AArch64] Avoid crashing on invalid -Wa,-march= values
      * 67b5bc26bde8 [DebugInfo] Check DIEnumerator bit width when comparing for equality
    
    Signed-off-by: Khem Raj <raj.khem@gmail.com>
    (cherry picked from commit 8030ce2)
    kraj authored and rakuco committed Jul 26, 2023
    Configuration menu
    Copy the full SHA
    f291c4d View commit details
    Browse the repository at this point in the history
  104. spirv-llvm-translator: Upgrade to latest master to support clang14

    Signed-off-by: Khem Raj <raj.khem@gmail.com>
    (cherry picked from commit 72337b3)
    kraj authored and rakuco committed Jul 26, 2023
    Configuration menu
    Copy the full SHA
    4c79b3f View commit details
    Browse the repository at this point in the history
  105. clang: Remove unintended dependency on gcc-runtime

    Commit a494bbb ("clang: support android runtime") introduced an
    unrelated change causing builds with RUNTIME="llvm" and COMPILER_RT not
    set to get a dependency on virtual/${TARGET_PREFIX}compilerlibs.
    
    This is clearly unrelated to addition of support for android runtime,
    and causing unwanted depdencies to gcc-runtime for LLVM builds.
    
    Signed-off-by: Esben Haabendal <esben.haabendal@huawei.com>
    (cherry picked from commit 03648d6)
    esben authored and rakuco committed Jul 26, 2023
    Configuration menu
    Copy the full SHA
    21b8094 View commit details
    Browse the repository at this point in the history

Commits on Jul 27, 2023

  1. Remove chromium-browser-layer workarounds

    They seem to be necessary with clang 12. The recent cherry-picks have
    introduced native versions of the libc++ and libc++abi recipes, and I have
    managed to finish a full build of chromium-ozone-wayland-114.0.5735.198
    without these changes.
    
    Signed-off-by: Raphael Kubo da Costa <raphael.kubo.da.costa@intel.com>
    rakuco committed Jul 27, 2023
    Configuration menu
    Copy the full SHA
    51e3445 View commit details
    Browse the repository at this point in the history
  2. nss: Add upstream patches to fix the build with clang

    Signed-off-by: Raphael Kubo da Costa <raphael.kubo.da.costa@intel.com>
    rakuco committed Jul 27, 2023
    Configuration menu
    Copy the full SHA
    aeefa94 View commit details
    Browse the repository at this point in the history
  3. harfbuzz: Add upstream patch to fix the build with clang

    Signed-off-by: Raphael Kubo da Costa <raphael.kubo.da.costa@intel.com>
    rakuco committed Jul 27, 2023
    Configuration menu
    Copy the full SHA
    97e720c View commit details
    Browse the repository at this point in the history
  4. clang: Upgrade to upcoming clang14 release branch

    Signed-off-by: Khem Raj <raj.khem@gmail.com>
    (cherry picked from commit 6b79646)
    kraj authored and rakuco committed Jul 27, 2023
    Configuration menu
    Copy the full SHA
    9edce5f View commit details
    Browse the repository at this point in the history
  5. libcxx: Install unwind_itanium.h and unwind_arm_ehabi.h

    When building libunwind, install new headers which are refactored from
    unwind.h in clang 14.0.0 onwards
    
    Signed-off-by: Khem Raj <raj.khem@gmail.com>
    (cherry picked from commit 64b5dcd)
    kraj authored and rakuco committed Jul 27, 2023
    Configuration menu
    Copy the full SHA
    a586b64 View commit details
    Browse the repository at this point in the history
  6. castxml: bump to 0.4.4

    This version supports llvm main, llvm 13.x, and llvm 14.x.
    
    Signed-off-by: Dan McGregor <dan.mcgregor@usask.ca>
    (cherry picked from commit 94c0812)
    dankm authored and rakuco committed Jul 27, 2023
    Configuration menu
    Copy the full SHA
    2a4f5d0 View commit details
    Browse the repository at this point in the history
  7. clang.bbclass: Fix typo about big.LITTLE tune options

    Signed-off-by: yangpeng1995 <1336781165@qq.com>
    (cherry picked from commit 6a447c0)
    yangpeng1995 authored and rakuco committed Jul 27, 2023
    Configuration menu
    Copy the full SHA
    2c9d56e View commit details
    Browse the repository at this point in the history
  8. clang: Provide cross names for common llvm binutils

    These provide the cross tool prefixed with CROSS_COMPILE tuples
    
    Signed-off-by: Khem Raj <raj.khem@gmail.com>
    (cherry picked from commit 5cf945b)
    kraj authored and rakuco committed Jul 27, 2023
    Configuration menu
    Copy the full SHA
    06db107 View commit details
    Browse the repository at this point in the history
  9. clang: Update to latest 14.x

      * 42a797ef011b [ELF] Fix .strtab corruption when a symbol name is empty
      * 4dc3cb8e3255 ReleaseNotes: add BOLT subsection
      * 192d9680c1b1 [RISCV] add the MC layer support of Zfinx extension
      * 1e348e6042fc [OpenCL] Guard atomic_double with cl_khr_int64_*
      * 880717cc801d clang-analyzer plugins require LLVM_ENABLE_PLUGINS also
      * 9bc22aa50780 [OpenMP][CUDA] Refine the logic to determine grid size
      * ecdd25c86511 [Debuginfod] [Symbolizer] Break debuginfod out of libLLVM.
      * b0ae8076cf4c [SDAG] enable binop identity constant folds for fmul/fdiv
      * 6311bae1b424 [X86] Add test cases for fmul/fdiv with select.
      * 812894f74a8a [runtimes] Move warning messages for FOO_SYSROOT & friends above their default value
      * c561bf0daa95 [runtimes] Add release note for deprecation of FOO_SYSROOT & friends
      * 8b10e0a84047 [runtimes] Deprecate FOO_SYSROOT & friends
      * 89309e187631 [lld] One more formatting fix for the release notes
      * 9e1f13d14e19 [lld] Fix RST formatting in release notes
      * 5264342c242b [Docs][OpenCL] Update OpenCL 3.0 status in docs.
      * e8712accba11 [Docs][OpenCL] Release 14 notes.
      * b54c95790b8a [Docs] Release 14 notes for SPIR-V in clang.
      * fc2dbf90d12a [libc++] Mark test as unsupported with apple-clang
      * edf64474d662 [ELF][PPC64] Fix assertion failure for branches to hidden undefined weak for -no-pie
      * 2fc17e919f0c [libc++] Temporarily silence failing debug mode test
      * dfc24b8522ba [libc++][NFC] Work around false positive ODR violations from ASan.
      * 199e05e34bb8 [libc++] Add missing UNSUPPORTED for the has-no-incomplete-ranges test
      * 7fdca71be63a [libc++] Guard much of std::ranges under _LIBCPP_HAS_NO_INCOMPLETE_RANGES.
      * e493f08f8222 [lld-macho] Fill out release notes for 14.x
      * ea97fc6b564e [OpenMP][FIX] The `llvm.amdgcn.s.barrier` is actually not aligned
      * 062111fe8073 InferAddressSpaces: Fix assert on inferred source for inttoptr/ptrtoint
    
    Signed-off-by: Khem Raj <raj.khem@gmail.com>
    (cherry picked from commit 51a8c79)
    kraj authored and rakuco committed Jul 27, 2023
    Configuration menu
    Copy the full SHA
    820baa4 View commit details
    Browse the repository at this point in the history
  10. nonclangable.conf: Disable llvm-objcopy/llvm-strip on selected recipes

    This is until upstream bugs are fixed, linux-firmware change however is
    legit and will be permanent
    
    Signed-off-by: Khem Raj <raj.khem@gmail.com>
    (cherry picked from commit 9ad5359)
    kraj authored and rakuco committed Jul 27, 2023
    Configuration menu
    Copy the full SHA
    ab54994 View commit details
    Browse the repository at this point in the history
  11. clang.bbclass: Use llvm provided binutils when using toolchain-clang

    These tools are better integrated with clang produced output consumption
    pipeline, therefore use them when using clang as compiler
    
    Signed-off-by: Khem Raj <raj.khem@gmail.com>
    (cherry picked from commit 9bcf8e4)
    kraj authored and rakuco committed Jul 27, 2023
    Configuration menu
    Copy the full SHA
    d96ffaa View commit details
    Browse the repository at this point in the history
  12. clang: set POPULATESYSROOTDEPS so that strip is present

    do_populate_sysroot will execute the cross STRIP as part of the
    processing. In non-clang builds this is present via POPULATESYSROOTDEPS
    pulling in binutils, but in clang builds STRIP is set to llvm-strip which
    obviously isn't part of binutils.
    
    Set POPULATESYSROOTDEPS correctly to ensure that do_populate_sysroot has
    the strip binary available.
    
    Signed-off-by: Ross Burton <ross.burton@arm.com>
    (cherry picked from commit bf34402)
    rossburton authored and rakuco committed Jul 27, 2023
    Configuration menu
    Copy the full SHA
    509b3e2 View commit details
    Browse the repository at this point in the history
  13. clang: Use GNU objdump on mips

    There are missing features in llvm-objdump especially for gnu-hash
    sections for mips
    
    Signed-off-by: Khem Raj <raj.khem@gmail.com>
    (cherry picked from commit a6cea51)
    kraj authored and rakuco committed Jul 27, 2023
    Configuration menu
    Copy the full SHA
    12380d7 View commit details
    Browse the repository at this point in the history
  14. clang: Update to latest 14.x

    Backport a fix to avoid compiler hangs on RISCV [1]
    
    This brings following changes
    
      * 2fe5bf57172c [Driver] Use libatomic for 32-bit SPARC atomics support
      * 46266b3518b6 [mlir][sparse] Rename index_t to index_type again
      * 03d9a4094763 [AArch64][SVE] Fix selection failure during lowering of shuffle_vector
      * 8b5b29c4c2c5 Fix incorrect TypeSize->uint64_t cast in InductionDescriptor::isInductionPHI
      * 8c33ea3ab0ef [SVE][CodeGen] Bail out for scalable vectors in AArch64TargetLowering::ReconstructShuffle
      * 1362f8bdfce7 [AArch64][SVE] Fix selection failure caused by fp/int convert using non-Neon types
      * 88f8980a4d95 [AArch64][SVE] Add structured load/store opcodes to getMemOpInfo
      * cefe6876d6e5 [llvm-objcopy][COFF] Fix section name encoding
      * 3367c24735c3 [COFF] Move section name encoding into BinaryFormat
      * 9672d11441fd [MLIR][Presburger] Disambiguate call to floor
      * 08ad9ae10f32 [InstSimplify] Strip offsets once in computePointerICmp()
      * 5593af72d0c5 [Attributor][FIX] Heap2Stack needs to use the alloca AS
      * b3d3501aa128 [OpenMP][FIX] Eliminate race on the IsSPMD global
      * 9bf8897c84f7 [OpenMP] Add RTL function to externalization RAII
      * 56ac6dbc7369 [RuntimeDyld] Fix building on OpenBSD
      * fef110bf8b2b [clangd] Fix building SerializationTests unit test on OpenBSD
      * 13fdc7afa856 [Attributor][FIX] Reachability needs to account for readonly callees
      * f3cfaf8bc8eb [MemoryBuiltins][FIX] Adjust index type size properly wrt. AS casts
      * c06cc1c3a7f8 [libc++] Fix std::__debug_less in c++17.
      * 7d8e83dab37a [funcattrs] check reachability to improve noreturn
      * e1b3afbbdef1 [SLP] Simplify indices processing for insertelements
      * 1e340705f142 [PowerPC] Add default handling for single element vectors, and split/promote vNi1 vectors.
      * 908c1bae6e7f [RISCV] Fix incorrect extend type in vwmulsu combine.
    
    [1] llvmbot/llvm-project#95
    Signed-off-by: Khem Raj <raj.khem@gmail.com>
    (cherry picked from commit eb7d0bc)
    kraj authored and rakuco committed Jul 27, 2023
    Configuration menu
    Copy the full SHA
    f8dc120 View commit details
    Browse the repository at this point in the history
  15. clang: Update to 14.0.0-rc2+

      * 65d53279b1fd RISCV] More correctly ignore Zfinx register classes in getRegForInlineAsmConstraint.
      * f1e7f848bf3e [clang][tests] Fix ve-toolchain tests with CLANG_DEFAULT_UNWINDLIB
      * 6d5afef3a7e6 [examples][BuildingAJIT] Use the right layer when adding code in Chapter 3.
      * 4fde843cd5c0 [ORC] Set ResolverBlockAddr in EPCIndirectionUtils::writeResolverBlock.
      * a98c04d58930 [Attributor][FIX] Use liveness information of the right function
      * 261253aa60cc [Clang][docs] Add preprocessor changes to ReleaseNotes.
      * 967296bfefee [RISCV] Fix inline asm errors in zfinx
      * 4c9110a5f37b [MIPS] Recognize DT_MIPS_XHASH dynamic table tag
      * ce3d57ad61db Revert "[BPF] Fix a BTF type pruning bug"
      * 19149538e9a9 [BPF] Fix a BTF type pruning bug
      * da33d400682a [SLP] Don't try to vectorize pair with insertelement
      * 3001b0d51963 [fir] Fix FlangOptimizerTests link on Solaris
      * 41d4f89e38b7 [X86ISelLowering] permit BlockAddressSDNode "i" constraints for PIC
      * d245bcf536a3 [Mangler] Mangle aliases to fastcall/vectorcall functions correctly
      * 0372676278dd [AArch64][SME] Remove term 'streaming-sve' from assembler diagnostics.
      * f58ab3285021 [Attributor][FIX] Pipe UsedAssumedInformation through more interfaces
      * 4327d39b15b2 [libcxx] Add an explicit option to build against system-libcxxabi
      * 3d913ec92308 [llvm] [cmake] Fix finding modern ounit2
      * b3e9abd9683b [libunwind] Further fix for 32-bit PowerPC processors without AltiVec
      * d09f84adff1e [compiler-rt] Force ABI to libcxxabi when building cxustom libc++
      * e08bab88c900 [Driver][DragonFly] -r: imply -nostdlib like GCC
      * 21f87ad9f590 [Driver][NetBSD] -r: imply -nostdlib like GCC
      * 779871c3515a [mlir-tblgen] Fix non-deterministic generating static verifier in DRR.
      * 4de8e5698278 [RISCV] Fix parseBareSymbol to not double-parse top-level operators
      * b29813fbbbaf [OpenMP] Use executable path when searching for lld
      * 14c432b6a17a [OpenMP] Add search path for llvm-strip
      * 453361d5ac01 [DSE] Fall back to CFG scan for unreachable terminators.
      * 03cf88fc94da [DSE] Extract a common PDT check (NFC)
      * ee0ae47691d3 [RISCV] Avoid infinite loop between DAGCombiner::visitMUL and RISCVISelLowering::transformAddImmMulImm
      * 61e78c64a38a [libunwind] Only include cet.h if __CET__ defined
      * 5f5b687460c3 Fix warning introduced by 47eff645d8e873ba531014751c1c06a716a367e9
      * 64534d2f406c [InstCombine] Bail out of load-store forwarding for scalable vector types
      * 4fe93c000b20 [SLP] Fix assert from non-constant index in insertelement
      * a2398c560144 [Driver][OpenBSD] Enable unwind tables on all architectures
      * aadd03a2accd [clang][ASTReader] Fix memory leak while reading FriendTemplateDecls
      * 8a323ada234b [clang][SemaTemplate] Fix a stack use after scope
      * d61805a8b686 [libc++] Fix double file closing in `std::filesystem::remove_all()`.
      * f8ca5fabdb54 [ELF][X86] Don't create IBT .plt if there is no PLT entry
      * 8400036358c8 [libunwind][test] remember_state_leak.pass.sh.s: link with -no-pie
      * df3182a7df19 [clang] [test] Skip hip-fpie-option.hip if default-pie
      * cdd8cca0c33c [ELF] Support some absolute/PC-relative relocation types for REL format
      * e89602b7b2ec [clang-tidy] Fix `readability-suspicious-call-argument` crash for arguments without name-like identifier
      * 1f7e8b1c6893 [Docs] Added note about LLDB Win/Arm64 binary release
      * bdbca8f3d0b2 [asan][test] asan_prelink_test.cpp: use -fno-pie -no-pie
      * 3e10605abcb2 [Driver][test] Remove soon irrelevant pie tests
      * 2a492dfd6b4e [Driver][test] Make hexagon-toolchain-elf.c work with CLANG_DEFAULT_PIE_ON_LINUX=on
      * 443f68c280ac [clang][test] Make mips-vector-return.c work with CLANG_DEFAULT_PIE_ON_LINUX=on
      * 500889f56bce [MIPS] Add `-no-pie` option to the clang driver's tests depend on it
    
    Drop 0036-Avoid-infinite-loop-between-DAGCombiner-visitMUL-and.patch
    which is upstreamed now.
    
    Signed-off-by: Khem Raj <raj.khem@gmail.com>
    (cherry picked from commit b19d5f6)
    kraj authored and rakuco committed Jul 27, 2023
    Configuration menu
    Copy the full SHA
    d14cb19 View commit details
    Browse the repository at this point in the history
  16. clang: Upgrade to latest on 14.x

    Enable __int128 for compiler-rt/ppc32
    Drop redundant ppc patch which is fixed upstream already
    
    Brings these fixes
    
      * e879b2bf82ef [libcxxabi] [test] Depend on unwind only if available
      * 569b773323a3 [libcxx][CI] Set Arm triples to match native clang build's default
      * f7007c570a21 Lambdas are not necessarily locals. This resolves DR48250.
      * eb84577cbc23 Revert "[release] Use the Bootstrapping build for building LLVM releases"
      * d843bde69aab [clang][driver] Fix float128 diagnostics with glibc >= 2.32
      * ba9ff030d302 [SimplifyCFG][PhaseOrdering] Defer lowering switch into an integer range comparison and branch until after at least the IPSCCP
      * da3953fb0315 [NFC][PhaseOrdering] Add some tests from D119839
      * 8b51e5ee0a2e [NewPM][Inliner] Make inlined calls to functions in same SCC as callee exponentially expensive
      * 6a713120502a [llvm] [bindings/OCaml] Remove unused dep on ounit2
      * 2de2a2bba998 [LICM][PhaseOrder] Don't speculate in LICM until after running loop rotate
      * 7d1cd3380add [NFC][PhaseOrdering] Improve test coverage for D119975
      * 1f4613675051 [NFC][PhaseOrdering] spurious-peeling.ll: also test -O1/-O2 results
      * 36bf1a9e628d [NFC][PhaseOrdering] Precommit tests from D119965
      * 67555104d23a [MachineSink] Disable if there are any irreducible cycles
      * 1e4fd59253c6 [CodeGen] Add test for PR53990 (NFC)
      * bfaed485756a [BOLT][CMAKE] Remove CMake 3.13.4 incompatible parameter
      * 43b4544023b7 [LLD] [COFF] Order .debug_* sections at the end, to avoid leaving gaps if stripped
      * e6d2aa9b0f13 [MC][WebAssembly] Fix crash when relocation addend underlows U32
      * f6a4df3a0a3d [WebAssembly] Covert llvm/test/MC/WebAssembly/reloc-code.ll to asm. NFC
      * 9d54fe21c67f [docs] Add RISC-V release notes for LLVM 14
      * 1e3d5ccab6b6 Add cmake to source release tarballs
      * 0205cc086e50 [OpenMP][FIX] Ensure custom state machine works
      * 0826716786cd [Mips] support "sp" named register
      * 09546e1b5103 [libc++][doc] Update the release notes.
      * 8f9f84c6873e [docs] clang/docs/ReleaseNotes.rst: Add blank line
      * aab33202d239 [docs] PowerPC release notes formatting/grammar fixes
      * acf67b7a0dfc [docs] Tweak wording of note re: LTO on AIX
      * ce1e90fc8dba [docs] Add PowerPC release notes for LLVM 14
    
    Signed-off-by: Khem Raj <raj.khem@gmail.com>
    (cherry picked from commit b3e3eee)
    kraj authored and rakuco committed Jul 27, 2023
    Configuration menu
    Copy the full SHA
    2f58c20 View commit details
    Browse the repository at this point in the history
  17. lldb: Disable builds for ppc32

    ppc32 build fails, disable for now
    
    NativeThreadLinux.cpp:(.text._ZN12lldb_private13process_linux17NativeThreadLinuxC2ERNS0_18NativeProcessLinuxEy+0x84): undefined reference to `lldb_private::process_linux::NativeRegisterContextLinux::CreateHostNativeRegisterContextLinux(lldb_private::ArchSpec const&, lldb_private::process_linux::NativeThreadLinux&)'
    
    Signed-off-by: Khem Raj <raj.khem@gmail.com>
    (cherry picked from commit 8efb230)
    kraj authored and rakuco committed Jul 27, 2023
    Configuration menu
    Copy the full SHA
    5aa29b4 View commit details
    Browse the repository at this point in the history
  18. clang: Use -mno-altivec for ppc 7400

    Workaround qemuppc illegal instruction trap on vxor instruction emulation
    this instruction is emitted by clang with -mcpu=7400 on ppc32 when
    compiling musl/strspn.c file
    
    The crash shows up running qemu-ppc via gobject-introspection, so a long
    unwieldy path but we know whats happening
    
    Signed-off-by: Khem Raj <raj.khem@gmail.com>
    (cherry picked from commit 321edad)
    kraj authored and rakuco committed Jul 27, 2023
    Configuration menu
    Copy the full SHA
    412e76d View commit details
    Browse the repository at this point in the history
  19. clang: Update to 14.0.0 RC4

    Brings in these changes
    
      * 69ba522c58d0 [Hexagon] Fix crash with shuffle_vector of v128f16
      * ac3398a0b003 Revert "[CMake] Include runtimes test suites in check-all"
      * df2fcea78fb8 Revert "Revert "Revert "[release] Use the Bootstrapping build for building LLVM releases"""
      * 893b864cb855 Revert "GCC ABI Compatibility: Preserve alignment of non-pod members in packed structs"
      * a9415df334f0 Revert "Revert "[release] Use the Bootstrapping build for building LLVM releases""
      * e54a7bf0c0f1 [CMake] Include runtimes test suites in check-all
    
    Signed-off-by: Khem Raj <raj.khem@gmail.com>
    (cherry picked from commit 0a441ca)
    kraj authored and rakuco committed Jul 27, 2023
    Configuration menu
    Copy the full SHA
    71e0e85 View commit details
    Browse the repository at this point in the history
  20. clang.bbclass: Remove commented code

    Signed-off-by: Khem Raj <raj.khem@gmail.com>
    (cherry picked from commit 1eb9032)
    kraj authored and rakuco committed Jul 27, 2023
    Configuration menu
    Copy the full SHA
    47e4a4d View commit details
    Browse the repository at this point in the history
  21. musl: Use gcc for ppc32 arch

    Signed-off-by: Khem Raj <raj.khem@gmail.com>
    (cherry picked from commit 10b32c6)
    kraj authored and rakuco committed Jul 27, 2023
    Configuration menu
    Copy the full SHA
    81835f6 View commit details
    Browse the repository at this point in the history
  22. clang: Avoid double libcxx in BASE_DEFAULT_DEPS

    When RUNTIME=="llvm" the libcxx entry will be added in a separate if clause
    right after this.  We don't need it twice.
    
    Signed-off-by: Esben Haabendal <esben.haabendal@huawei.com>
    (cherry picked from commit c63c71b)
    esben authored and rakuco committed Jul 27, 2023
    Configuration menu
    Copy the full SHA
    7f1f497 View commit details
    Browse the repository at this point in the history
  23. llvm-project-source: Emit all default MULTILIB_GLOBAL_VARIANTS

    This ensures that signature of do_patch does not change between multilib
    and non-multilib builds of clang-native, this essentially hardcodes the
    multilib variants to lib32 lib64 libx32 which is 99.9% usecase, if you
    fall into 0.1% then go ahead and modify MULTILIB_VARIANTS in a bbappend
    file and it will be fine.
    
    Signed-off-by: Khem Raj <raj.khem@gmail.com>
    (cherry picked from commit 2979956)
    kraj authored and rakuco committed Jul 27, 2023
    Configuration menu
    Copy the full SHA
    de32e58 View commit details
    Browse the repository at this point in the history
  24. clang.bbclass: Be mindful of multilibs when adding tools dependencies

    This ensures that multilib prefix is respected in dependencies and can
    be handled when distro enables multilib
    
    Signed-off-by: Khem Raj <raj.khem@gmail.com>
    (cherry picked from commit 1d8389b)
    kraj authored and rakuco committed Jul 27, 2023
    Configuration menu
    Copy the full SHA
    961ae2a View commit details
    Browse the repository at this point in the history
  25. libcxx: Drop duplicate setting of LLVM_LIBDIR_SUFFIX

    LLVM_LIBDIR_SUFFIX is already computed fine in clang.inc
    
    Signed-off-by: Khem Raj <raj.khem@gmail.com>
    (cherry picked from commit ee587d0)
    kraj authored and rakuco committed Jul 27, 2023
    Configuration menu
    Copy the full SHA
    cb2c2a1 View commit details
    Browse the repository at this point in the history
  26. clang: Add env override for libdir

    This is useful when using clang cross compiler and the packages rely on
    llvm-config to detect paths and various attributes of clang/llvm install
    
    Update to latest on 14.x as well
    
    * 3f43d803382d [libc++] Re-enable workaround for pre-ranges CTAD in std::span
    * add3ab7f4c8a [libc++] Add workaround to avoid breaking users of <span> when <ranges> are disabled
    * 329fda39c507 NFC: Mention auto-vec support for SVE in release notes.
    
    Signed-off-by: Khem Raj <raj.khem@gmail.com>
    (cherry picked from commit fb382a5)
    kraj authored and rakuco committed Jul 27, 2023
    Configuration menu
    Copy the full SHA
    895cac3 View commit details
    Browse the repository at this point in the history
  27. llvm-config: Set YOCTO_ALTERNATE_LIBDIR and YOCTO_ALTERNATE_EXE_PATH

    If they are set by recipe in env, respect that
    
    Signed-off-by: Khem Raj <raj.khem@gmail.com>
    (cherry picked from commit 3f7efae)
    kraj authored and rakuco committed Jul 27, 2023
    Configuration menu
    Copy the full SHA
    ea213cc View commit details
    Browse the repository at this point in the history
  28. clang.bbclass: Export YOCTO_ALTERNATE_LIBDIR and YOCTO_ALTERNATE_EXE_…

    …PATH
    
    These variables are used during target package compiles in packages
    which user llvm-config e.g. libclc
    
    Signed-off-by: Khem Raj <raj.khem@gmail.com>
    (cherry picked from commit 7008a2e)
    kraj authored and rakuco committed Jul 27, 2023
    Configuration menu
    Copy the full SHA
    5eb88a8 View commit details
    Browse the repository at this point in the history
  29. clang: Add a patch to fix llvm-objdump

    Signed-off-by: Khem Raj <raj.khem@gmail.com>
    (cherry picked from commit 42dd548)
    kraj authored and rakuco committed Jul 27, 2023
    Configuration menu
    Copy the full SHA
    e1a0567 View commit details
    Browse the repository at this point in the history
  30. clang.bbclass: Do not export llvm-config variables

    exporting them changes signatures of the tasks for all recipes
    includeing native ones, so when meta-clang is not used it ends up
    building all native recipes too. Defining these variables is good
    enought for clang to see them in do_compile shell for target recipes
    
    Signed-off-by: Khem Raj <raj.khem@gmail.com>
    (cherry picked from commit 17a6480)
    kraj authored and rakuco committed Jul 27, 2023
    Configuration menu
    Copy the full SHA
    4af4572 View commit details
    Browse the repository at this point in the history
  31. nonclangable: Enable clang for several packages pinned to gcc-only

    with clang-14 more packages are now buildable from the exlcusion list,
    therefore enable clang for them.
    
    Signed-off-by: Khem Raj <raj.khem@gmail.com>
    (cherry picked from commit aa77015)
    kraj authored and rakuco committed Jul 27, 2023
    Configuration menu
    Copy the full SHA
    b5742a4 View commit details
    Browse the repository at this point in the history
  32. python3: Use gcc for riscv/aarch64 and all musl

    Configure test crashes while using clang on riscv
    aarch64 needs to use gcc until [1] is merged
    
    [1] https://lists.openembedded.org/g/openembedded-core/message/164192
    
    Signed-off-by: Khem Raj <raj.khem@gmail.com>
    (cherry picked from commit 3882c27)
    kraj authored and rakuco committed Jul 27, 2023
    Configuration menu
    Copy the full SHA
    e6c6292 View commit details
    Browse the repository at this point in the history
  33. clang: Upgrade to latest on 14.x release branch

    brings in these fixes
    
    * ec13fed5867f [X86] lowerV8I16Shuffle - use explicit SmallVector<SDValue, 4> width to avoid MSVC AVX alignment bug
    * aaf0c921a54a [clang-repl] Add an accessor to our underlying execution engine
    * d150523f0776 [AArch64] Use correct calling convention for each vararg
    * fd98b0f1a6a1 [SelectionDAG] Don't create illegally-typed nodes while constant folding
    * d53e2603383a [AArch64] Allow .variant_pcs before the symbol is registered
    * 67a290460c37 [VectorCombine] Insert addrspacecast when crossing address space boundaries
    * 353068233f21 [ELF] Fix llvm_unreachable failure when COMMON is placed in SHT_PROGBITS output section
    * 311a622edd31 [Object][test] Fix invalid.test
    * 1007cb795a3c [llvm-objdump] --private-headers: change errors to warnings for dynamic section dumping
    * c9ec4902c3e3 [llvm-objdump][test] dos2unix some files
    * 5b9dd016bec7 [SelectionDAG][RISCV] Make RegsForValue::getCopyToRegs explicitly zero_extend constants.
    * e9b26b5b2a70 [RISCV] Add test case for miscompile caused by treating ANY_EXTEND of constants as SIGN_EXTEND.
    * a4681df0202c [libcxx] [test] Avoid spurious test breakage in clang-cl-dll configs with newer CMake
    * db07d9f098b3 [MC] Fix llvm_unreachable when a STB_GNU_UNIQUE symbol needs a relocation
    * 22d7bee01a5a [PPCISelLowering] Avoid emitting calls to __multi3, __muloti4
    * 23d08271a4b2 Add cmake/ to release tarballs via concatenation
    * b69247dcbd80 [libcxx] random_device, specify optimal entropy properties for all OS's using arc4random()
    * 63e7af77ec42 [Clang][NeonEmitter] emit ret decl first for -Wdeclaration-after-statement
    * f3b89727716a [Driver][OpenBSD] Disable unwind tables on Arm
    * fe5c24e93754 [docs] Fix typo in tutorial
    * 99c0f85ef992 Re-commit: Driver: Don't warn on -mbranch-protection when linking
    * 0547ffef5d39 workflows: Consolidate tests to reduce the number of build jobs
    * bd8dc965cff1 Bump version to 14.0.1
    
    Signed-off-by: Khem Raj <raj.khem@gmail.com>
    (cherry picked from commit f50840f)
    kraj authored and rakuco committed Jul 27, 2023
    Configuration menu
    Copy the full SHA
    73fc59e View commit details
    Browse the repository at this point in the history
  34. libclc: Export YOCTO_ALTERNATE_EXE_PATH and YOCTO_ALTERNATE_LIBDIR

    They need to be explicitly exported
    
    Signed-off-by: Khem Raj <raj.khem@gmail.com>
    (cherry picked from commit 401ed26)
    kraj authored and rakuco committed Jul 27, 2023
    Configuration menu
    Copy the full SHA
    d93cac3 View commit details
    Browse the repository at this point in the history
  35. compiler-rt: Build builtins only for the default target

    We were never really supposed to build for multiple target architectures in one
    compiler-rt build, so let's use the feature created to do exactly that.
    
    This also happens to fix building for ARM softfp ABI builds, where the target
    architecture guessing logics ends up with:
    
        -- Builtin supported architectures: arm;armv6m
    
    And later on bailing out because of duplicate ninja rules:
    
        ninja: error: build.ninja:56765: multiple rules generate lib/clang/14.0.0/lib/linux/libclang_rt.builtins-arm.a [-w dupbuild=err]
    
    Signed-off-by: Esben Haabendal <esben.haabendal@huawei.com>
    (cherry picked from commit 74c7f65)
    esben authored and rakuco committed Jul 27, 2023
    Configuration menu
    Copy the full SHA
    783aede View commit details
    Browse the repository at this point in the history
  36. musl: Build with clang on ppc64

    The build issue is only seen on ppc32
    
    Signed-off-by: Khem Raj <raj.khem@gmail.com>
    (cherry picked from commit 07c1cf8)
    kraj authored and rakuco committed Jul 27, 2023
    Configuration menu
    Copy the full SHA
    41f3139 View commit details
    Browse the repository at this point in the history
  37. clang: Enable altivec again for ppc32

    This was disabled for musl issue which is not related to altivec
    
    Signed-off-by: Khem Raj <raj.khem@gmail.com>
    (cherry picked from commit 10461fa)
    kraj authored and rakuco committed Jul 27, 2023
    Configuration menu
    Copy the full SHA
    fe0f223 View commit details
    Browse the repository at this point in the history
  38. clang.bbclass: Use BASELIB instead of base_libdir in YOCTO_ALTERNATE_…

    …LIBDIR
    
    base_libdir may vary e.g. when using usrmerge feature
    
    Signed-off-by: Khem Raj <raj.khem@gmail.com>
    (cherry picked from commit e8b870b)
    kraj authored and rakuco committed Jul 27, 2023
    Configuration menu
    Copy the full SHA
    f4af35f View commit details
    Browse the repository at this point in the history
  39. compiler-rt: Fix nativesdk building

    Signed-off-by: Esben Haabendal <esben.haabendal@huawei.com>
    (cherry picked from commit f3c3e49)
    esben authored and rakuco committed Jul 27, 2023
    Configuration menu
    Copy the full SHA
    43b4997 View commit details
    Browse the repository at this point in the history
  40. libcxx: Fix nativesdk building

    Signed-off-by: Esben Haabendal <esben.haabendal@huawei.com>
    (cherry picked from commit 12a5f8b)
    esben authored and rakuco committed Jul 27, 2023
    Configuration menu
    Copy the full SHA
    05209da View commit details
    Browse the repository at this point in the history
  41. clang: Upgrade to 14.0.3

    Brings these changes
    
    * 1f9140064dfb Bump version to 14.0.3
    * 2e7e14177186 workflows: Add a test to ensure that the LLVM version is correct
    * 0e27d08cdeb3 [RISCV] Fix crash for section alignment with .option norvc
    * a36801750327 [asan] Always skip first object from dl_iterate_phdr
    * 1f4c7b2a9120 [RISCV] Don't emit fractional VIDs with negative steps
    * e19be4195b87 [RISCV] Add another test showing incorrect BUILD_VECTOR lowering
    * 9efcce92b55b [RISCV] Fix lowering of BUILD_VECTORs as VID sequences
    * 21ce6cfd1d93 [RISCV] Add tests showing incorrect BUILD_VECTOR lowering
    * 58d5fbe2c20b [llvm-mt] Add support /notify_update
    * 50c6ba751fa2 [RISCV] Only try LUI+SH*ADD+ADDI for int materialization if LUI+ADDI+SH*ADD failed.
    * dc30b0d3320d [ELF] --emit-relocs: fix missing STT_SECTION when the first input section is synthetic
    * 324127d8da95 [libcxx] Add some missing xlocale wrapper functions for OpenBSD
    * ebf29ba9f0a3 [LV] Remove stray debug dump added in 0d2efbb8b82c.
    * 0d2efbb8b82c [LV] Always use add to add scalar iv and (startidx + step) for ints.
    * e7a9fd4f57d6 [LV] Add test case for PR54427.
    * 9a3e81e1f91f [InstCombine] canonicalize select with signbit test
    * b83c4a2dc0fb [x86] Fix infinite loop inside DAG combiner with lzcnt feature.
    * 0fbe860711be [Clang][Fortify] drop inline decls when redeclared
    * 571c7d8f6dae Reland "[llvm][AArch64] Insert "bti j" after call to setjmp"
    * 0f56ce0fb207 [DebugInfo][InstrRef] Avoid a crash from mixed variable location modes
    * e8f03f2057ee Force GHashCell to be 8-byte-aligned.
    * 09fba23d41f7 [compiler-rt] Implement __clear_cache on FreeBSD/powerpc
    * 33504b3bbe10 [PowerPC] Allow absolute expressions in relocations
    * 3400d0293a14 [CMake] Update cache file for Win to ARM Linux cross toolchain builders. NFC.
    * 6c41c8edb0cc [CMake] Replace `TARGET_TRIPLE` with `TOOLCHAIN_TARGET_TRIPLE` for Win-to-Arm cross toolchain cache file. NFC.
    * b6dbee34387d [CMake] Update cache file for Win to ARM cross tooolchain. NFC.
    * 46d19f3a8699 [CMake] Use CMAKE_SYSROOT to build libs for Win to ARM cross tooolchain. NFC.
    * e11b929a3c97 [LLD][COFF] Fix TypeServerSource matcher with more than one collision
    * d800180f6bee [lld][COFF] Fix TypeServerSource lookup on GUID collisions
    * 8c3445ac1c8b [AArch64][LOH] Don't ignore regmasks in bundles by iterating over instrs.
    * 43ee392dd462 [InstCombine] try to fold low-mask of ashr to lshr
    * 5ea5e3c01b7b [InstCombine] add tests for low-mask of ashr; NFC
    * fe8a27acd716 [LV] Handle zero cost loops in selectInterleaveCount.
    * 2c4d288eae8b [RISCV][NFC] Add missing lit.local.cfg in test/CodeGen/MIR/RISCV/
    * d0f27fb44952 [RISCV] Fixing stack offset for RVV object with vararg in stack.
    * b6e91d4a331e [RISCV] Pre-commit for fixing stack offset for RVV object
    * 87599bdabbd1 [RISCV] Store/restore RISCVMachineFunctionInfo into MIR YAML file
    * 5c9eed741dbd [libc++] Make __dir_stream visibility declaration consistent
    * c62053979489 [AArch64] Fix the upper limit for folded address offsets for COFF
    * 6697c5bc3a1e [compiler-rt] [scudo] Use -mcrc32 on x86 when available
    * 8475349bd639 [AARCH64] ssbs should be enabled by default for cortex-x1, cortex-x1c, cortex-a77
    * d4e3c50b2bda [libc++] Define `namespace views` in its own detail header.
    
    Signed-off-by: Khem Raj <raj.khem@gmail.com>
    (cherry picked from commit 85d956d)
    kraj authored and rakuco committed Jul 27, 2023
    Configuration menu
    Copy the full SHA
    8186e84 View commit details
    Browse the repository at this point in the history
  42. compiler-rt: Build clang_rt.profile library when possible

    To enable clang_rt.profile library do something like the following in
    local.conf or your distro configuration.
    
        PACKAGECONFIG:pn-compiler-rt = "profile"
    
    The clang_rt.profile library is used to collect coverage information. It is a
    static library, so does not introduce any additional footprint in
    target images.
    
    Signed-off-by: Esben Haabendal <esben.haabendal@huawei.com>
    (cherry picked from commit 659d431)
    (cherry picked from commit cd7b2f8)
    esben authored and rakuco committed Jul 27, 2023
    Configuration menu
    Copy the full SHA
    a87f974 View commit details
    Browse the repository at this point in the history
  43. compiler-rt: backport a patch fixing ARMv5 cross-compile

    Compiler-rt cross-compile for ARMv5 fails because D99282 made it an error if DMB
    is used for any pre-ARMv6 targets. More specifically, the "#error only supported
    on ARMv6+" added in D99282 will cause compilation to fail when any source file
    which includes assembly.h are compiled for pre-ARMv6 targets. Since the only
    place where DMB is used is syn-ops.h (which is only included by
    arm/sync_fetch_and_* and these files are excluded from being built for older
    targets), this patch moves the definition there to avoid the issues described
    above.
    
    Signed-off-by: Ming Liu <liu.ming50@gmail.com>
    (cherry picked from commit 36c4dc6)
    liuming50 authored and rakuco committed Jul 27, 2023
    Configuration menu
    Copy the full SHA
    6c42fe6 View commit details
    Browse the repository at this point in the history
  44. clang: Fix native and nativesdk builds for hf targets

    Setting the ${HF} variable based on ${TUNE_CCARGS_MFLOAT} does only make sense
    for target builds, as it defines arguments for target.  Without this fix,
    building with hf machine configuration will cause problems, as native and
    nativesdk triplets will be include "hf", something like "x86_64hf-linux", which
    is wrong and not recognized by LLVM build/configuration system.
    
    Signed-off-by: Esben Haabendal <esben.haabendal@huawei.com>
    (cherry picked from commit 9cea736)
    (cherry picked from commit d669d87)
    esben authored and rakuco committed Jul 27, 2023
    Configuration menu
    Copy the full SHA
    db1b7ad View commit details
    Browse the repository at this point in the history
  45. spirv-llvm-translator: fix branch name

    Upstream doesn't have a branch 'master' anymore so switch to using LLVM
    14 specific branch.
    
    meta-clang master uses main branch so that doesn't have this problem.
    
    Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
    (cherry picked from commit 7952eba)
    anujm1 authored and rakuco committed Jul 27, 2023
    Configuration menu
    Copy the full SHA
    eb525a3 View commit details
    Browse the repository at this point in the history
  46. compiler-rt-sanitizer: fix nativesdk-compiler-rt-sanitizers build

    Signed-off-by: Mamta Shukla <mamta.shukla@leica-geosystems.com>
    (cherry picked from commit 8e53d8f)
    Mamta Shukla authored and rakuco committed Jul 27, 2023
    Configuration menu
    Copy the full SHA
    ad5f48d View commit details
    Browse the repository at this point in the history
  47. compiler-rt-sanitizers: fix multiple installations for orc lib

    remove libclang_rt.orc and c_orc.h header since it is being installed by both
    compiler-rt and compiler-rt-sanitizer when built for arm.
    
    Signed-off-by: Mamta Shukla <mamta.shukla@leica-geosystems.com>
    (cherry picked from commit ed5ac4f)
    Mamta Shukla authored and rakuco committed Jul 27, 2023
    Configuration menu
    Copy the full SHA
    8ff1ebc View commit details
    Browse the repository at this point in the history
  48. clang: Add compiler-rt and libcxx to build time depends for target

    These are not staged into sysroot otherwise and cmake fails to configure
    
    Signed-off-by: Khem Raj <raj.khem@gmail.com>
    (cherry picked from commit 5d6c7c1)
    kraj authored and rakuco committed Jul 27, 2023
    Configuration menu
    Copy the full SHA
    022f0f9 View commit details
    Browse the repository at this point in the history
  49. nonclangable.conf: Add new exceptions

    Add "erlang" for all architectures (found on riscv64 and x86-64)
    Add "grub" for x86-64 architecture
    Use proper OBJCOPY for "linux-yocto" for all architectures
    
    Signed-off-by: Aleksey Smirnov <aleksey.smirnov@yadro.com>
    Signed-off-by: Khem Raj <raj.khem@gmail.com>
    (cherry picked from commit f7fa299)
    Aleksey Smirnov authored and rakuco committed Jul 27, 2023
    Configuration menu
    Copy the full SHA
    b567501 View commit details
    Browse the repository at this point in the history
  50. linux-yocto: Use binutils provided strip

    We are not _yet_ using clang as kernel compiler
    
    Signed-off-by: Khem Raj <raj.khem@gmail.com>
    (cherry picked from commit 299a5fd)
    kraj authored and rakuco committed Jul 27, 2023
    Configuration menu
    Copy the full SHA
    21782e0 View commit details
    Browse the repository at this point in the history
  51. Fix OpenMP builds with thin LTO enabled.

    When built with thin LTO enabled, LLVM produces object files containing
    LLVM IR, which ld can't understand. Since we're forcing the toolchain
    to clang anyway, let's also force using lld.
    
    Fixes GitHub kraj#708
    
    Signed-off-by: Jan Dorniak <jaskij@gmail.com>
    (cherry picked from commit bc8388c)
    jaskij authored and rakuco committed Jul 27, 2023
    Configuration menu
    Copy the full SHA
    7cd11b4 View commit details
    Browse the repository at this point in the history
  52. llvm-project-source: fix create-spdx handling

    as the recipe populates the shared source tree as part of
    do_patch, but create-spdx does only wait for do_unpack.
    Add an explicit dependency to wait to avoid race conditions
    
    Signed-off-by: Konrad Weihmann <kweihmann@witekio.com>
    (cherry picked from commit dc95c5e)
    Konrad Weihmann authored and rakuco committed Jul 27, 2023
    Configuration menu
    Copy the full SHA
    36179c9 View commit details
    Browse the repository at this point in the history
  53. common-source: fix create-spdx handling

    - do_create_spdx does have to wait till the shared source
      tree is properly populated
    - override the spdx class code detection to determine
      if sources are under work-shared.
      the core code does only look at WORKDIR, which isn’t
      overridden in every case, more likely only S and B are
      touched, which make the spdx class code assume that
      these are per-workdir sources and starts to remove the
      shared sources via bitbake’s cleandirs settings.
      Avoid that by let the code always handle recipes including
      common-source as shared sources.
    
    Relates to kraj#721
    
    Signed-off-by: Konrad Weihmann <kweihmann@witekio.com>
    (cherry picked from commit b7c0dcc)
    Konrad Weihmann authored and rakuco committed Jul 27, 2023
    Configuration menu
    Copy the full SHA
    c2e73cd View commit details
    Browse the repository at this point in the history
  54. llvm-project-source: Ensure deploy_source_date_epoch sstate hash does…

    …n't change
    
    if machines are switched, do_deploy_source_date_epoch
    would re-run as the stamps are tune specific
    
    Signed-off-by: Khem Raj <raj.khem@gmail.com>
    (cherry picked from commit 16c67b4)
    Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io>
    (cherry picked from commit e33eec3)
    kraj authored and rakuco committed Jul 27, 2023
    Configuration menu
    Copy the full SHA
    406f811 View commit details
    Browse the repository at this point in the history
  55. clang: Move .so symlinks to -dev package fixes multilib build

    Fixes
    ERROR: lib32-clang-15.0.7-r0 do_package_qa: QA Issue: non -dev/-dbg/nativesdk- package lib32-liblldb contains symlink .so '/usr/lib/liblldbIntelFeatures.so'
    non -dev/-dbg/nativesdk- package lib32-liblldb contains symlink .so '/usr/lib/liblldb.so' [dev-so]                                                                                      ERROR: lib32-clang-15.0.7-r0 do_package_qa: Fatal QA errors were found, failing task.
    
    Signed-off-by: Khem Raj <raj.khem@gmail.com>
    (cherry picked from commit 56a8534)
    kraj authored and rakuco committed Jul 27, 2023
    Configuration menu
    Copy the full SHA
    d9dafd1 View commit details
    Browse the repository at this point in the history
  56. Add missing scan-build runtime dependencies

    * The perl scan-build script need some perl-modules to be executable
    
    Signed-off-by: Michel Zink <m.zink@rational-online.com>
    (cherry picked from commit 68ec449)
    mzink89 authored and rakuco committed Jul 27, 2023
    Configuration menu
    Copy the full SHA
    7846d31 View commit details
    Browse the repository at this point in the history
  57. llvm-config: add --libfiles option

    --libfiles        Fully qualified library filenames for makefile depends.
    
    This option is being used by ispc cmake.
    https://github.com/ispc/ispc/blob/main/cmake/FindLLVM.cmake#L116
    
    Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
    (cherry picked from commit b9df712)
    saininav authored and rakuco committed Jul 27, 2023
    Configuration menu
    Copy the full SHA
    a224d23 View commit details
    Browse the repository at this point in the history
  58. clang.bbclass: create lld symbolic link in sysroot when ld-is-lld is set

    Create a symbolic link lld -> ld in recipe sysroot to choose the
    default linker lld when ld-is-lld is set in DISTRO_FEATURES. othereise,
    we can get linking issues when '-fuse-ld=lld' is in LDFLAGS but the
    actual ld is not lld.
    
    Signed-off-by: Ming Liu <liu.ming50@gmail.com>
    (cherry picked from commit 71321dd)
    liuming50 authored and rakuco committed Jul 27, 2023
    Configuration menu
    Copy the full SHA
    3ba0e57 View commit details
    Browse the repository at this point in the history
  59. sanitizer: Fix build with glibc 2.36

    Signed-off-by: Khem Raj <raj.khem@gmail.com>
    (cherry picked from commit 013b5ee)
    kraj authored and rakuco committed Jul 27, 2023
    Configuration menu
    Copy the full SHA
    98a2a4b View commit details
    Browse the repository at this point in the history
  60. clang: fix build with yocto uninative gcc 13

    Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io>
    (cherry picked from commit 3523149)
    quaresmajose authored and rakuco committed Jul 27, 2023
    Configuration menu
    Copy the full SHA
    248d639 View commit details
    Browse the repository at this point in the history
  61. libclc: Define llvm tools needed during build

    It pokes at target llvm.cmake and gets the path
    LLVM_TOOLS_BINARY_DIR pointing to target sysroot
    however during cross builds it should be looking
    for tools for cross building in native sysroot
    
    MJ: otherwise it may fail to build with gold linker:
        DWARF error: invalid or unhandled FORM value: 0x23
    
    Signed-off-by: Khem Raj <raj.khem@gmail.com>
    Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
    (cherry picked from commit 5563999)
    kraj authored and rakuco committed Jul 27, 2023
    Configuration menu
    Copy the full SHA
    0dc3caf View commit details
    Browse the repository at this point in the history