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: unassignedclangb...@nondot.org Reporter: t.poechtra...@gmail.com CC: llvm-bugs@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.
_______________________________________________ llvm-bugs mailing list llvm-bugs@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs