https://llvm.org/bugs/show_bug.cgi?id=31805

            Bug ID: 31805
           Summary: external assembler error with clang, ARM thumb:
                    "branch out of range"
           Product: new-bugs
           Version: 3.9
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: unassignedb...@nondot.org
          Reporter: a...@linaro.org
                CC: llvm-bugs@lists.llvm.org
    Classification: Unclassified

Created attachment 17917
  --> https://llvm.org/bugs/attachment.cgi?id=17917&action=edit
preprocessed arch/arm/kernel/suspend.c file from linux, reduced

Building an "allmodconfig" build of the Linux kernel for ARM (with additional
patches to make it work initially), I ran into one assembler error that happens
specifically in Thumb2 mode. I used creduce to produce a smaller test case:

/home/arnd/cross/bin/clang  -std=gnu89 -target arm-linux-gnueabihf -mthumb
-no-integrated-as -march=armv7-a -Wa,-mimplicit-it=always -O2 -c suspend.i
/tmp/suspend-be0319.s: Assembler messages:
/tmp/suspend-be0319.s:41: Error: branch out of range
clang: error: assembler command failed with exit code 1 (use -v to see
invocation)

The original file (before reducing) worked fine with clang-3.8 but broke with
3.9, the reduced version breaks with both, but still builds fine with gcc.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to