[llvm-bugs] [Bug 24765] New: '-arch armv6' generates code for armv7 instead of armv6

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Sep 9 14:10:35 PDT 2015


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

            Bug ID: 24765
           Summary: '-arch armv6' generates code for armv7 instead of
                    armv6
           Product: clang
           Version: 3.7
          Hardware: PC
                OS: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: t.poechtrager at gmail.com
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

This only affects 3.7.
I have used the official 3.7.0 binaries from llvm.org for testing.

Clang 3.6 and trunk seem to do the right thing.

$ echo "int x; " | clang -target arm-apple-darwin -miphoneos-version-min=4.2.1
-arch arm64 -c -o- -xc - | file -
/dev/stdin: Mach-O 64-bit 64-bit architecture=12 object

$ echo "int x; " | clang -target arm-apple-darwin -miphoneos-version-min=4.2.1
-arch armv7s -c -o- -xc - | file -
/dev/stdin: Mach-O arm subarchitecture=11 object

$ echo "int x; " | clang -target arm-apple-darwin -miphoneos-version-min=4.2.1
-arch armv7 -c -o- -xc - | file -
/dev/stdin: Mach-O arm_v7 object

$ echo "int x; " | clang -target arm-apple-darwin -miphoneos-version-min=4.2.1
-arch armv6 -c -o- -xc - | file -
/dev/stdin: Mach-O arm_v7 object # Shouldn't this generate code for armv6, or
am I missing something here?

-- 
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/20150909/a5660d93/attachment.html>


More information about the llvm-bugs mailing list