mirror of
https://git.proxmox.com/git/llvm-toolchain
synced 2025-08-08 05:32:48 +00:00
* Try to fix the mipsel FTBFS (Closes: #877567)
I am trying the first option from the bug: - gsplit-dward on 32 bits archs - -g everywhere Many thanks to Adrian Bunk for that
This commit is contained in:
parent
be94a5a691
commit
5e4558a841
13
debian/changelog
vendored
13
debian/changelog
vendored
@ -1,10 +1,17 @@
|
|||||||
llvm-toolchain-4.0 (1:4.0.1-7.1) UNRELEASED; urgency=medium
|
llvm-toolchain-4.0 (1:4.0.1-8) unstable; urgency=medium
|
||||||
|
|
||||||
* Non-maintainer upload.
|
[ Ximin Luo ]
|
||||||
* Backport some patches (originally from rust, and upstreamed) to fix two
|
* Backport some patches (originally from rust, and upstreamed) to fix two
|
||||||
failing tests in rustc.
|
failing tests in rustc.
|
||||||
|
|
||||||
-- Ximin Luo <infinity0@debian.org> Wed, 18 Oct 2017 15:28:20 +0200
|
[ Sylvestre Ledru ]
|
||||||
|
* Try to fix the mipsel FTBFS (Closes: #877567)
|
||||||
|
I am trying the first option from the bug:
|
||||||
|
- gsplit-dward on 32 bits archs
|
||||||
|
- -g everywhere
|
||||||
|
Many thanks to Adrian Bunk for that
|
||||||
|
|
||||||
|
-- Sylvestre Ledru <sylvestre@debian.org> Wed, 18 Oct 2017 16:37:25 +0200
|
||||||
|
|
||||||
llvm-toolchain-4.0 (1:4.0.1-7) unstable; urgency=medium
|
llvm-toolchain-4.0 (1:4.0.1-7) unstable; urgency=medium
|
||||||
|
|
||||||
|
24
debian/patches/rL305193-backport.diff
vendored
24
debian/patches/rL305193-backport.diff
vendored
@ -378,15 +378,15 @@ Date: Mon Jun 12 14:56:02 2017 +0000
|
|||||||
+ %bar = alloca [32 x i64]
|
+ %bar = alloca [32 x i64]
|
||||||
+ %foo_i8 = bitcast [32 x i64]* %foo to i8*
|
+ %foo_i8 = bitcast [32 x i64]* %foo to i8*
|
||||||
+ %bar_i8 = bitcast [32 x i64]* %bar to i8*
|
+ %bar_i8 = bitcast [32 x i64]* %bar to i8*
|
||||||
+ call void @llvm.lifetime.start.p0i8(i64 256, i8* %bar_i8)
|
+ call void @llvm.lifetime.start(i64 256, i8* %bar_i8)
|
||||||
+ call void @baz([32 x i64]* %bar, i32 1)
|
+ call void @baz([32 x i64]* %bar, i32 1)
|
||||||
+ call void @llvm.lifetime.end.p0i8(i64 256, i8* %bar_i8)
|
+ call void @llvm.lifetime.end(i64 256, i8* %bar_i8)
|
||||||
+ call void @llvm.lifetime.start.p0i8(i64 256, i8* %foo_i8)
|
+ call void @llvm.lifetime.start(i64 256, i8* %foo_i8)
|
||||||
+ call void @baz([32 x i64]* %foo, i32 1)
|
+ call void @baz([32 x i64]* %foo, i32 1)
|
||||||
+ call void @llvm.lifetime.end.p0i8(i64 256, i8* %foo_i8)
|
+ call void @llvm.lifetime.end(i64 256, i8* %foo_i8)
|
||||||
+ call void @llvm.lifetime.start.p0i8(i64 256, i8* %bar_i8)
|
+ call void @llvm.lifetime.start(i64 256, i8* %bar_i8)
|
||||||
+ call void @baz([32 x i64]* %bar, i32 1)
|
+ call void @baz([32 x i64]* %bar, i32 1)
|
||||||
+ call void @llvm.lifetime.end.p0i8(i64 256, i8* %bar_i8)
|
+ call void @llvm.lifetime.end(i64 256, i8* %bar_i8)
|
||||||
+ ret i1 true
|
+ ret i1 true
|
||||||
+}
|
+}
|
||||||
+
|
+
|
||||||
@ -403,24 +403,24 @@ Date: Mon Jun 12 14:56:02 2017 +0000
|
|||||||
+ %bar_i8 = bitcast [32 x i64]* %bar to i8*
|
+ %bar_i8 = bitcast [32 x i64]* %bar to i8*
|
||||||
+ br i1 %0, label %if_false, label %if_true
|
+ br i1 %0, label %if_false, label %if_true
|
||||||
+if_false:
|
+if_false:
|
||||||
+ call void @llvm.lifetime.start.p0i8(i64 256, i8* %bar_i8)
|
+ call void @llvm.lifetime.start(i64 256, i8* %bar_i8)
|
||||||
+ call void @baz([32 x i64]* %bar, i32 0)
|
+ call void @baz([32 x i64]* %bar, i32 0)
|
||||||
+ br i1 %1, label %if_false.1, label %onerr
|
+ br i1 %1, label %if_false.1, label %onerr
|
||||||
+if_false.1:
|
+if_false.1:
|
||||||
+ call void @llvm.lifetime.end.p0i8(i64 256, i8* %bar_i8)
|
+ call void @llvm.lifetime.end(i64 256, i8* %bar_i8)
|
||||||
+ br label %merge
|
+ br label %merge
|
||||||
+if_true:
|
+if_true:
|
||||||
+ call void @llvm.lifetime.start.p0i8(i64 256, i8* %foo_i8)
|
+ call void @llvm.lifetime.start(i64 256, i8* %foo_i8)
|
||||||
+ call void @baz([32 x i64]* %foo, i32 1)
|
+ call void @baz([32 x i64]* %foo, i32 1)
|
||||||
+ br i1 %1, label %if_true.1, label %onerr
|
+ br i1 %1, label %if_true.1, label %onerr
|
||||||
+if_true.1:
|
+if_true.1:
|
||||||
+ call void @llvm.lifetime.end.p0i8(i64 256, i8* %foo_i8)
|
+ call void @llvm.lifetime.end(i64 256, i8* %foo_i8)
|
||||||
+ br label %merge
|
+ br label %merge
|
||||||
+merge:
|
+merge:
|
||||||
+ ret i1 false
|
+ ret i1 false
|
||||||
+onerr:
|
+onerr:
|
||||||
+ call void @llvm.lifetime.end.p0i8(i64 256, i8* %foo_i8)
|
+ call void @llvm.lifetime.end(i64 256, i8* %foo_i8)
|
||||||
+ call void @llvm.lifetime.end.p0i8(i64 256, i8* %bar_i8)
|
+ call void @llvm.lifetime.end(i64 256, i8* %bar_i8)
|
||||||
+ call void @destructor()
|
+ call void @destructor()
|
||||||
+ ret i1 true
|
+ ret i1 true
|
||||||
+}
|
+}
|
||||||
|
10
debian/rules
vendored
10
debian/rules
vendored
@ -35,9 +35,8 @@ ifneq (,$(filter $(DEB_HOST_ARCH),powerpc powerpcspe))
|
|||||||
LDFLAGS_EXTRA += -latomic
|
LDFLAGS_EXTRA += -latomic
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ENABLE_SPLIT_DWARF_ARCHS := armel armhf i386 mips powerpc
|
# Only enable gsplit dwarf on archs which needs it (32 bits)
|
||||||
# Only enable gsplit dwarf on archs which needs it
|
ifeq ($(DEB_HOST_ARCH_BITS),32)
|
||||||
ifneq (,$(filter $(DEB_HOST_ARCH),$(ENABLE_SPLIT_DWARF_ARCHS)))
|
|
||||||
ifeq ($(shell dpkg --compare-versions $(shell dpkg-query -W -f '$${Version}' binutils) ge 2.22.52.0.4 ; echo $$?),0)
|
ifeq ($(shell dpkg --compare-versions $(shell dpkg-query -W -f '$${Version}' binutils) ge 2.22.52.0.4 ; echo $$?),0)
|
||||||
# when using -gsplit-dwarf, it will requires extract-dwo which doesn't exist on precise:
|
# when using -gsplit-dwarf, it will requires extract-dwo which doesn't exist on precise:
|
||||||
# More: https://llvm.org/bugs/show_bug.cgi?id=28841
|
# More: https://llvm.org/bugs/show_bug.cgi?id=28841
|
||||||
@ -62,11 +61,6 @@ export CC=gcc-$(GCC_VERSION)
|
|||||||
export CXX=g++-$(GCC_VERSION)
|
export CXX=g++-$(GCC_VERSION)
|
||||||
|
|
||||||
opt_flags = -O2 -DNDEBUG
|
opt_flags = -O2 -DNDEBUG
|
||||||
ifneq (,$(filter $(DEB_HOST_ARCH),amd64 arm64 ppc64el s390x))
|
|
||||||
opt_flags += -g1
|
|
||||||
else
|
|
||||||
opt_flags += -g
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifneq (,$(findstring $(DEB_HOST_ARCH),armel))
|
ifneq (,$(findstring $(DEB_HOST_ARCH),armel))
|
||||||
opt_flags += -marm
|
opt_flags += -marm
|
||||||
|
Loading…
Reference in New Issue
Block a user