import llvm-12.0.1-3.el9
This commit is contained in:
commit
13f96460c9
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
SOURCES/llvm-12.0.1.src.tar.xz
|
||||
SOURCES/tstellar-gpg-key.asc
|
2
.llvm.metadata
Normal file
2
.llvm.metadata
Normal file
@ -0,0 +1,2 @@
|
||||
619fe668e0972d11d0fa2db670a57a42d02fb8ca SOURCES/llvm-12.0.1.src.tar.xz
|
||||
b8d2648a01d36ed0186fd2c5af325fd28797f9a0 SOURCES/tstellar-gpg-key.asc
|
25
SOURCES/0001-Deactivate-markdown-doc.patch
Normal file
25
SOURCES/0001-Deactivate-markdown-doc.patch
Normal file
@ -0,0 +1,25 @@
|
||||
diff -Naur a/llvm/docs/conf.py b/llvm/docs/conf.py
|
||||
--- a/llvm/docs/conf.py 2020-09-15 09:12:24.318287611 +0000
|
||||
+++ b/llvm/docs/conf.py 2020-09-15 15:01:00.025893199 +0000
|
||||
@@ -36,20 +36,7 @@
|
||||
'.rst': 'restructuredtext',
|
||||
}
|
||||
|
||||
-try:
|
||||
- import recommonmark
|
||||
-except ImportError:
|
||||
- # manpages do not use any .md sources
|
||||
- if not tags.has('builder-man'):
|
||||
- raise
|
||||
-else:
|
||||
- import sphinx
|
||||
- if sphinx.version_info >= (3, 0):
|
||||
- # This requires 0.5 or later.
|
||||
- extensions.append('recommonmark')
|
||||
- else:
|
||||
- source_parsers = {'.md': 'recommonmark.parser.CommonMarkParser'}
|
||||
- source_suffix['.md'] = 'markdown'
|
||||
+import sphinx
|
||||
|
||||
# The encoding of source files.
|
||||
#source_encoding = 'utf-8-sig'
|
@ -0,0 +1,29 @@
|
||||
From 60760d66030695105bcf4364f22b7f6053a25253 Mon Sep 17 00:00:00 2001
|
||||
From: serge-sans-paille <sguelton@redhat.com>
|
||||
Date: Thu, 8 Apr 2021 09:33:37 +0200
|
||||
Subject: [PATCH] [PATCH][llvm] Make source-interleave-prefix test case
|
||||
compatible with llvm-test
|
||||
|
||||
llvm-test runs test from a directory that's not the upstream one, and that leads
|
||||
to some false positive. Workaround this by forcing the current working
|
||||
directory.
|
||||
---
|
||||
llvm/test/tools/llvm-objdump/X86/source-interleave-prefix.test | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/llvm/test/tools/llvm-objdump/X86/source-interleave-prefix.test b/llvm/test/tools/llvm-objdump/X86/source-interleave-prefix.test
|
||||
index 23ce55a..d260ee2 100644
|
||||
--- a/llvm/test/tools/llvm-objdump/X86/source-interleave-prefix.test
|
||||
+++ b/llvm/test/tools/llvm-objdump/X86/source-interleave-prefix.test
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
; RUN: sed -e "s,SRC_COMPDIR,./Inputs,g" %p/Inputs/source-interleave.ll > %t-relative-path.ll
|
||||
; RUN: llc -o %t-relative-path.o -filetype=obj -mtriple=x86_64-pc-linux %t-relative-path.ll
|
||||
-; RUN: llvm-objdump --prefix myprefix --source %t-relative-path.o 2>&1 | \
|
||||
+; RUN: mkdir -p %t0 && cd %t0 && llvm-objdump --prefix myprefix --source %t-relative-path.o 2>&1 | \
|
||||
; RUN: FileCheck %s --check-prefix=CHECK-BROKEN-PREFIX -DFILE=%t-relative-path.o -DPREFIX=.
|
||||
; CHECK-BROKEN-PREFIX: warning: '[[FILE]]': failed to find source [[PREFIX]]/Inputs/source-interleave-x86_64.c
|
||||
|
||||
--
|
||||
1.8.3.1
|
||||
|
@ -0,0 +1,64 @@
|
||||
From 9df652778fc92db9eb371c78bc7d1691417f3a60 Mon Sep 17 00:00:00 2001
|
||||
From: Rafik Zurob <rzurob@ca.ibm.com>
|
||||
Date: Fri, 22 Jan 2021 06:51:19 -0600
|
||||
Subject: [PATCH] [llvm-jitlink] Replace use of deprecated gethostbyname by
|
||||
getaddrinfo.
|
||||
|
||||
This patch replaces use of deprecated gethostbyname by getaddrinfo.
|
||||
|
||||
Author: Rafik Zurob
|
||||
|
||||
Reviewed By: lhames
|
||||
|
||||
Differential Revision: https://reviews.llvm.org/D95477
|
||||
---
|
||||
llvm/tools/llvm-jitlink/llvm-jitlink.cpp | 28 ++++++++++++++++++++++++----
|
||||
1 file changed, 24 insertions(+), 4 deletions(-)
|
||||
|
||||
diff --git a/llvm/tools/llvm-jitlink/llvm-jitlink.cpp b/llvm/tools/llvm-jitlink/llvm-jitlink.cpp
|
||||
index da4a164..108dd61 100644
|
||||
--- a/llvm/tools/llvm-jitlink/llvm-jitlink.cpp
|
||||
+++ b/llvm/tools/llvm-jitlink/llvm-jitlink.cpp
|
||||
@@ -690,15 +690,35 @@ LLVMJITLinkRemoteTargetProcessControl::ConnectToExecutor() {
|
||||
" is not a valid integer",
|
||||
inconvertibleErrorCode());
|
||||
|
||||
+ addrinfo *AI;
|
||||
+ addrinfo Hints{};
|
||||
+ Hints.ai_family = AF_INET;
|
||||
+ Hints.ai_socktype = SOCK_STREAM;
|
||||
+ Hints.ai_protocol = PF_INET;
|
||||
+ Hints.ai_flags = AI_NUMERICSERV;
|
||||
+ if (getaddrinfo(HostName.c_str(), PortStr.str().c_str(), &Hints, &AI) != 0)
|
||||
+ return make_error<StringError>("Failed to resolve " + HostName + ":" +
|
||||
+ Twine(Port),
|
||||
+ inconvertibleErrorCode());
|
||||
+
|
||||
int SockFD = socket(PF_INET, SOCK_STREAM, 0);
|
||||
- hostent *Server = gethostbyname(HostName.c_str());
|
||||
sockaddr_in ServAddr;
|
||||
memset(&ServAddr, 0, sizeof(ServAddr));
|
||||
ServAddr.sin_family = PF_INET;
|
||||
- memmove(&Server->h_addr, &ServAddr.sin_addr.s_addr, Server->h_length);
|
||||
ServAddr.sin_port = htons(Port);
|
||||
- if (connect(SockFD, reinterpret_cast<sockaddr *>(&ServAddr),
|
||||
- sizeof(ServAddr)) < 0)
|
||||
+
|
||||
+ // getaddrinfo returns a list of address structures. Go through the list
|
||||
+ // to find one we can connect to.
|
||||
+ int ConnectRC = -1;
|
||||
+ for (addrinfo *Server = AI; Server; Server = Server->ai_next) {
|
||||
+ memmove(&Server->ai_addr, &ServAddr.sin_addr.s_addr, Server->ai_addrlen);
|
||||
+ ConnectRC = connect(SockFD, reinterpret_cast<sockaddr *>(&ServAddr),
|
||||
+ sizeof(ServAddr));
|
||||
+ if (ConnectRC == 0)
|
||||
+ break;
|
||||
+ }
|
||||
+ freeaddrinfo(AI);
|
||||
+ if (ConnectRC == -1)
|
||||
return make_error<StringError>("Failed to connect to " + HostName + ":" +
|
||||
Twine(Port),
|
||||
inconvertibleErrorCode());
|
||||
--
|
||||
1.8.3.1
|
||||
|
17
SOURCES/lit.fedora.cfg.py
Normal file
17
SOURCES/lit.fedora.cfg.py
Normal file
@ -0,0 +1,17 @@
|
||||
|
||||
config.llvm_tools_dir = '/usr/bin'
|
||||
config.llvm_shlib_dir = '%(llvm_shlib_dir)s' % lit_config.params
|
||||
|
||||
if hasattr(config, 'host_triple'):
|
||||
# This means we are running lit regression tests
|
||||
|
||||
# Regression tests write output to this directory, so we need to be able to specify
|
||||
# a temp directory when invoking lit. e.g. lit -Dllvm_obj_root=/tmp/lit
|
||||
config.llvm_obj_root = "%(llvm_obj_root)s" % lit_config.params
|
||||
lit_config.load_config(config, '%(llvm_test_root)s/lit.cfg.py' % lit_config.params)
|
||||
else:
|
||||
# This means we are running lit unit tests
|
||||
|
||||
# For unit tests, llvm_obj_root is used to find the unit test binaries.
|
||||
config.llvm_obj_root = '%(llvm_unittest_bindir)s' % lit_config.params
|
||||
lit_config.load_config(config, '%(llvm_test_root)s/Unit/lit.cfg.py' % lit_config.params)
|
BIN
SOURCES/llvm-12.0.1.src.tar.xz.sig
Normal file
BIN
SOURCES/llvm-12.0.1.src.tar.xz.sig
Normal file
Binary file not shown.
59
SOURCES/run-lit-tests
Executable file
59
SOURCES/run-lit-tests
Executable file
@ -0,0 +1,59 @@
|
||||
#!/bin/bash
|
||||
|
||||
usage() {
|
||||
echo "usage: `basename $0` [OPTIONS]"
|
||||
echo " --threads NUM The number of threads to use for running tests."
|
||||
echo " --multilib-arch ARCH Use this option to test 32-bit libs/binaries on"
|
||||
echo " 64-bit hosts."
|
||||
}
|
||||
|
||||
threads_arg=''
|
||||
|
||||
while [ $# -gt 0 ]; do
|
||||
case $1 in
|
||||
--threads)
|
||||
shift
|
||||
threads_arg="--threads $1"
|
||||
;;
|
||||
--multilib-arch)
|
||||
shift
|
||||
ARCH=$1
|
||||
;;
|
||||
* )
|
||||
echo "unknown option: $1"
|
||||
echo ""
|
||||
usage
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
shift
|
||||
done
|
||||
|
||||
set -xe
|
||||
|
||||
if [ -z "$ARCH" ]; then
|
||||
ARCH=`rpm --eval '%_arch'`
|
||||
fi
|
||||
|
||||
case $ARCH in
|
||||
arm)
|
||||
;&
|
||||
i686)
|
||||
LIB_DIR="/usr/lib/"
|
||||
;;
|
||||
*)
|
||||
LIB_DIR="/usr/lib64/"
|
||||
;;
|
||||
esac
|
||||
|
||||
cd $(mktemp -d)
|
||||
ln -s /usr/include include
|
||||
ln -s /usr/share/llvm/src/docs docs
|
||||
tar -xzf /usr/share/llvm/src/test.tar.gz
|
||||
ln -s /usr/share/llvm/src/$ARCH.site.cfg.py test/lit.site.cfg.py
|
||||
ln -s /usr/share/llvm/src/$ARCH.Unit.site.cfg.py test/Unit/lit.site.cfg.py
|
||||
lit -v -s $threads_arg test \
|
||||
-Dllvm_obj_root=`pwd` \
|
||||
-Dllvm_test_root=`pwd`/test \
|
||||
-Dllvm_unittest_bindir=$LIB_DIR/llvm \
|
||||
-Dllvm_shlib_dir=$LIB_DIR
|
1166
SPECS/llvm.spec
Normal file
1166
SPECS/llvm.spec
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user