[llvm-commits] Fix bug 12769 MCAssembler crashes with -mthumb -mcpu=cortex-a9
Weiming Zhao
weimingz at codeaurora.org
Tue May 8 17:18:18 PDT 2012
Hello,
On LLVM 3.1, clang crashes when "-mthumb -mcpu=cortex-a9 -integrated-as" are
specified with the following C code:
void foo()
{
exit(1);
}
Or the asm code:
.syntax unified
.fpu neon
.eabi_attribute 10, 3
.eabi_attribute 12, 1
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.file "test_exit.c"
.text
.globl foo
.align 2
.type foo,%function
.code 16
.thumb_func
foo:
push {r7, lr}
mov r7, sp
movs r0, #1
mov lr, pc
b.w exit
.Ltmp0:
.size foo, .Ltmp0-foo
Bug is reported at: http://llvm.org/bugs/show_bug.cgi?id=12769
This patch fixes the issue. And it also passes the test suite. For the unit
tests, it doesn't create new fails. (details are in tests.tar)
Fix-12769.patch is the patch, which is also attached in bugzilla.
Please review it.
Thanks,
Weiming
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20120508/5fed9394/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix-12769.patch
Type: application/octet-stream
Size: 844 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20120508/5fed9394/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tests.tar
Type: application/x-tar
Size: 92160 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20120508/5fed9394/attachment.tar>
More information about the llvm-commits
mailing list