[llvm-bugs] [Bug 42809] New: AArch64: -mcpu=native -fno-integrated-as should pass the evaluated CPU, not native

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Jul 29 04:44:44 PDT 2019


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

            Bug ID: 42809
           Summary: AArch64: -mcpu=native -fno-integrated-as should pass
                    the evaluated CPU, not native
           Product: clang
           Version: 8.0
          Hardware: Other
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Frontend
          Assignee: unassignedclangbugs at nondot.org
          Reporter: landfillbaby69 at gmail.com
                CC: llvm-bugs at lists.llvm.org, neeilans at live.com,
                    richard-llvm at metafoo.co.uk

Compiling any code on AArch64 using "-mcpu=native -fno-integrated-as", with GNU
assembler 2.32, gives the following error:

Assembler messages:
Error: unknown cpu `native'
Error: unrecognized option -mcpu=native
clang-8: error: assembler command failed with exit code 1 (use -v to see
invocation)

So, for compatibility, clang should evaluate the native CPU before passing it
to the assembler.

-- 
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/20190729/a746b885/attachment.html>


More information about the llvm-bugs mailing list