[llvm-bugs] [Bug 41447] New: clang, sparc: missing compiler command line flags for linux kernel build

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Apr 10 00:57:45 PDT 2019


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

            Bug ID: 41447
           Summary: clang, sparc: missing compiler command line flags for
                    linux kernel build
           Product: new-bugs
           Version: 8.0
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: arnd at linaro.org
                CC: htmldeveloper at gmail.com, llvm-bugs at lists.llvm.org

I tried to build the Linux kernel for sparc32 and sparc64. Both work with few
changes, but the Makefiles pass a number of options to the compiler that clang
does not understand.

In particular, linux-5.1 passes

-mno-fpu
-fcall-used-g5
-fcall-used-g7
-mcpu=ultrasparc
-mcmodel=medlow
-ffixed-g4
-ffixed-g5
-fcall-used-g7
-mv8plus

Removing all of these from the Makefile gets it to compile almost all files,
but I'm fairly sure this will not boot because some of the options are in fact
required.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20190410/fae3e58f/attachment.html>


More information about the llvm-bugs mailing list