http://llvm.org/bugs/show_bug.cgi?id=2545

           Summary: THUMB_DIV_MOD_BODY problem with standard arm assembler
                    when building llvm-gcc frontend
           Product: tools
           Version: 2.3
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: llvm-gcc
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]
                CC: [email protected]


Created an attachment (id=1830)
 --> (http://llvm.org/bugs/attachment.cgi?id=1830)
Fix for thumb_div_mod_body

Hi,

When building the llvm-gcc frontend for an ARM cross compiler I ran into the
following error:

-c ../../llvm-gcc4.2-2.3.source/gcc/config/arm/lib1funcs.asm -o
libgcc/thumb/_udivsi3.o
../../llvm-gcc4.2-2.3.source/gcc/config/arm/lib1funcs.asm: Assembler messages:
../../llvm-gcc4.2-2.3.source/gcc/config/arm/lib1funcs.asm:847: Error: bad
instruction `thumb_div_mod_body 0'

It seems that apple's arm assembler behaves differently.  Changing
THUMB_DIV_MOD_BODY 0 into THUMB_DIV_MOD_BODY(0) seems to fix the problem when
using the standard arm assembler from binutils.


-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to