[LLVMbugs] [Bug 2545] New: THUMB_DIV_MOD_BODY problem with standard arm assembler when building llvm-gcc frontend

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Sat Jul 12 09:06:55 PDT 2008


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: unassignedbugs at nondot.org
        ReportedBy: treat at kde.org
                CC: llvmbugs at cs.uiuc.edu


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.



More information about the llvm-bugs mailing list