- Add unreachable-code.patch to fix unreachable code warnings on SLE
OBS-URL: https://build.opensuse.org/package/show/devel:tools:compiler/llvm?expand=0&rev=212
This commit is contained in:
committed by
Git OBS Bridge
parent
cc000c3412
commit
8002ed4159
@@ -1,3 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:80acfe4f0a795975cb8a1c71a5947f484c462e1c492ce5115cb5db6bb1901ede
|
||||
size 24887479
|
||||
oid sha256:d4a8bd36d80ff1aad0c6375dc335641fc04009d626e13d89f217af4d11650ff7
|
||||
size 24887370
|
||||
|
@@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu May 9 09:05:41 UTC 2013 - idonmez@suse.com
|
||||
|
||||
- Add unreachable-code.patch to fix unreachable code warnings on SLE
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed May 8 08:56:28 UTC 2013 - idonmez@suse.com
|
||||
|
||||
|
@@ -42,6 +42,8 @@ Patch5: llvm-config-lib64.patch
|
||||
Patch6: arm_suse_support.diff
|
||||
# PATCH-FIX-OPENSUSE disable_neon_in_armv7.diff -- Disable use of neon in armv7 openSUSE
|
||||
Patch7: disable_neon_in_armv7.diff
|
||||
# PATCH-FIX-OPENSUSE unreachable-code.patch -- Unreachable code warning triggered on SLE
|
||||
Patch8: unreachable-code.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: autoconf
|
||||
BuildRequires: automake
|
||||
@@ -138,6 +140,7 @@ This package contains vim plugins for LLVM like syntax highlighting.
|
||||
%ifarch armv7l armv7hl
|
||||
%patch7 -p0
|
||||
%endif
|
||||
%patch8 -p1
|
||||
|
||||
# We hardcode i586
|
||||
rm tools/clang/test/Driver/x86_features.c
|
||||
|
13
unreachable-code.patch
Normal file
13
unreachable-code.patch
Normal file
@@ -0,0 +1,13 @@
|
||||
Index: llvm/utils/TableGen/CodeGenInstruction.cpp
|
||||
===================================================================
|
||||
--- llvm.orig/utils/TableGen/CodeGenInstruction.cpp
|
||||
+++ llvm/utils/TableGen/CodeGenInstruction.cpp
|
||||
@@ -191,7 +191,7 @@ CGIOperandList::ParseOperandName(const s
|
||||
return std::make_pair(OpIdx, i);
|
||||
|
||||
// Otherwise, didn't find it!
|
||||
- PrintFatalError(TheDef->getName() + ": unknown suboperand name in '" + Op + "'");
|
||||
+ llvm_unreachable(TheDef->getName() + ": unknown suboperand name in '" + Op + "'");
|
||||
}
|
||||
|
||||
static void ParseConstraint(const std::string &CStr, CGIOperandList &Ops) {
|
Reference in New Issue
Block a user