diff --git a/llvm-update-extract-section-script.patch b/llvm-update-extract-section-script.patch new file mode 100644 index 0000000..615c595 --- /dev/null +++ b/llvm-update-extract-section-script.patch @@ -0,0 +1,28 @@ +From 4c0d15f86f33dc61ec1dc618fb164c127409edfc Mon Sep 17 00:00:00 2001 +From: Min-Yih Hsu +Date: Sat, 7 Aug 2021 17:07:28 -0700 +Subject: [PATCH] Update `llvm-readobj` command invocation in + extract-section.py + +Change `-elf-output-style` to `--elf-output-style` to reflect the recent +changes on short/long CLI options in LLVM binary utils. +--- + llvm/utils/extract-section.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/llvm/utils/extract-section.py b/llvm/utils/extract-section.py +index ca19b0ee8b61..0c96b52fc522 100755 +--- a/llvm/utils/extract-section.py ++++ b/llvm/utils/extract-section.py +@@ -31,7 +31,7 @@ def read_raw_stdin(): + + def get_raw_section_dump(readobj_path, section_name, input_file): + import subprocess +- cmd = [readobj_path, '-elf-output-style=GNU', '--hex-dump={}'.format(section_name), ++ cmd = [readobj_path, '--elf-output-style=GNU', '--hex-dump={}'.format(section_name), + input_file] + proc = subprocess.Popen(cmd, stdin=subprocess.PIPE, stdout=subprocess.PIPE) + +-- +2.26.2 + diff --git a/llvm13.changes b/llvm13.changes index 2a6c5d5..1ec97c8 100644 --- a/llvm13.changes +++ b/llvm13.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Thu Jan 20 00:11:33 UTC 2022 - John Paul Adrian Glaubitz + +- Add support for experimental targets and enable the M68k backend +- Add patch to fix testsuite after enabling the M68k backend + + llvm-update-extract-section-script.patch + ------------------------------------------------------------------- Sat Dec 18 15:05:40 UTC 2021 - Aaron Puchert diff --git a/llvm13.spec b/llvm13.spec index 80ab346..7ed94f6 100644 --- a/llvm13.spec +++ b/llvm13.spec @@ -1,7 +1,7 @@ # # spec file for package llvm13 # -# Copyright (c) 2021 SUSE LLC +# Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -138,6 +138,7 @@ Patch27: llvm-exegesis-link-dylib.patch # Fix lookup of targets in installed CMake files. (boo#1180748, https://reviews.llvm.org/D96670) Patch33: CMake-Look-up-target-subcomponents-in-LLVM_AVAILABLE_LIBS.patch Patch34: llvm-fix-building-with-GCC-12.patch +Patch35: llvm-update-extract-section-script.patch BuildRequires: binutils-devel >= 2.21.90 BuildRequires: cmake >= 3.13.4 BuildRequires: fdupes @@ -566,6 +567,7 @@ This package contains the development files for Polly. %patch27 -p2 %patch33 -p2 %patch34 -p2 +%patch35 -p2 pushd clang-%{_version}.src %patch2 -p1 @@ -656,21 +658,26 @@ CXXFLAGS=$flags # By default build everything TARGETS_TO_BUILD="all" +EXPERIMENTAL_TARGETS_TO_BUILD="M68k" %ifarch s390 s390x # No graphics cards on System z TARGETS_TO_BUILD="host;BPF" +EXPERIMENTAL_TARGETS_TO_BUILD= %endif %ifarch %arm # TODO: Document why those. TARGETS_TO_BUILD="host;ARM;AMDGPU;BPF;NVPTX" +EXPERIMENTAL_TARGETS_TO_BUILD= %endif %ifarch ppc64 ppc64le # TODO: Document why those. TARGETS_TO_BUILD="host;AMDGPU;BPF;NVPTX" +EXPERIMENTAL_TARGETS_TO_BUILD= %endif %ifarch ppc # TODO: Graphics cards turned off because of relocation overflows. TARGETS_TO_BUILD="host;BPF" +EXPERIMENTAL_TARGETS_TO_BUILD= %endif mem_per_compile_job=1000000 @@ -808,6 +815,7 @@ export CLANG_TOOLS_EXTRA_DIR=${PWD}/tools/clang/tools/extra -DLLVM_ENABLE_PIC=ON \ -DLLVM_BINUTILS_INCDIR=%{_includedir} \ -DLLVM_TARGETS_TO_BUILD=${TARGETS_TO_BUILD} \ + -DLLVM_EXPERIMENTAL_TARGETS_TO_BUILD=${EXPERIMENTAL_TARGETS_TO_BUILD} \ %if %{with libcxx} -DLIBCXX_ENABLE_SHARED=YES \ -DLIBCXX_ENABLE_STATIC=NO \