[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug binutils/19311] arm-linux-as build on Mac OS X with Xcode7 fails to
From: |
Loria at phantasia dot org |
Subject: |
[Bug binutils/19311] arm-linux-as build on Mac OS X with Xcode7 fails to assemble code from FreePascal cross-compiler |
Date: |
Tue, 26 Jan 2016 23:15:41 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=19311
--- Comment #9 from Loria <Loria at phantasia dot org> ---
Well, how related it is with the named bug is unclear, but it seems the unroll
loops just does not work ...
on x86_64 I get the following disassemble:
_encode_arm_immediate: ## @encode_arm_immediate
.cfi_startproc
## BB#0:
pushq %rbp
Ltmp4:
.cfi_def_cfa_offset 16
Ltmp5:
.cfi_offset %rbp, -16
movq %rsp, %rbp
Ltmp6:
.cfi_def_cfa_register %rbp
movl %edi, %ecx
roll $2, %ecx
movl $256, %edx ## imm = 0x100
cmpl $255, %ecx
jbe LBB1_1
## BB#3:
movl %edi, %ecx
roll $4, %ecx
movl $512, %edx ## imm = 0x200
cmpl $256, %ecx ## imm = 0x100
jb LBB1_1
.....
## BB#16:
roll $30, %edi
movl $-1, %eax
movl $3840, %edx ## imm = 0xF00
cmpl $256, %edi ## imm = 0x100
movl %edi, %ecx
jae LBB1_2
LBB1_1:
orl %edx, %ecx
movl %ecx, %eax
LBB1_2: ## %.loopexit5
popq %rbp
retq
----
well it looks like its definitly not a bug of binutils ... its caused by bad
unroll-loops of Apple LLVM version 7.0.2 (clang-700.1.81).
I think the save workaround would be to add -fno-unroll-loops to the flags for
building a toolchain .. with Apple Xcode 7.2
How do you think ?
(hopefully they fixed it with the upcoming Xcode 7.3 which unfortunatly wont
build for 10.10 anymore.
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug binutils/19311] arm-linux-as build on Mac OS X with Xcode7 fails to assemble code from FreePascal cross-compiler, Loria at phantasia dot org, 2016/01/24
- [Bug binutils/19311] arm-linux-as build on Mac OS X with Xcode7 fails to assemble code from FreePascal cross-compiler, Loria at phantasia dot org, 2016/01/24
- [Bug binutils/19311] arm-linux-as build on Mac OS X with Xcode7 fails to assemble code from FreePascal cross-compiler, nickc at redhat dot com, 2016/01/25
- [Bug binutils/19311] arm-linux-as build on Mac OS X with Xcode7 fails to assemble code from FreePascal cross-compiler, Loria at phantasia dot org, 2016/01/25
- [Bug binutils/19311] arm-linux-as build on Mac OS X with Xcode7 fails to assemble code from FreePascal cross-compiler, nickc at redhat dot com, 2016/01/26
- [Bug binutils/19311] arm-linux-as build on Mac OS X with Xcode7 fails to assemble code from FreePascal cross-compiler, Loria at phantasia dot org, 2016/01/26
- [Bug binutils/19311] arm-linux-as build on Mac OS X with Xcode7 fails to assemble code from FreePascal cross-compiler,
Loria at phantasia dot org <=
- [Bug binutils/19311] arm-linux-as build on Mac OS X with Xcode7 fails to assemble code from FreePascal cross-compiler, nickc at redhat dot com, 2016/01/27
- [Bug binutils/19311] arm-linux-as build on Mac OS X with Xcode7 fails to assemble code from FreePascal cross-compiler, Loria at phantasia dot org, 2016/01/27
- [Bug binutils/19311] arm-linux-as build on Mac OS X with Xcode7 fails to assemble code from FreePascal cross-compiler, Loria at phantasia dot org, 2016/01/27
- [Bug binutils/19311] arm-linux-as build on Mac OS X with Xcode7 fails to assemble code from FreePascal cross-compiler, Loria at phantasia dot org, 2016/01/27
- [Bug binutils/19311] arm-linux-as build on Mac OS X with Xcode7 fails to assemble code from FreePascal cross-compiler, Loria at phantasia dot org, 2016/01/28
- [Bug binutils/19311] arm-linux-as build on Mac OS X with Xcode7 fails to assemble code from FreePascal cross-compiler, Loria at phantasia dot org, 2016/01/28
- [Bug binutils/19311] arm-linux-as build on Mac OS X with Xcode7 fails to assemble code from FreePascal cross-compiler, Loria at phantasia dot org, 2016/01/31