http://llvm.org/bugs/show_bug.cgi?id=21636
Bug ID: 21636
Summary: -no-integrated-as is broken on Mac OS X (Unknown
pseudo-op: .macosx_version_min)
Product: clang
Version: trunk
Hardware: Macintosh
OS: MacOS X
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Classification: Unclassified
$ cat test.c
int main(){}
$ ~/llvm-trunk/bin/clang test.c -no-integrated-as
/var/folders/yv/43njmxj17k7gv_04z6m21krm0000gn/T/test-4988d4.s:2:Unknown
pseudo-op: .macosx_version_min
/var/folders/yv/43njmxj17k7gv_04z6m21krm0000gn/T/test-4988d4.s:2:Rest of line
ignored. 1st junk character valued 49 (1).
[...]
---
cctools version: 855
clang version: trunk (3.5 seems also affected)
---
$ ~/llvm-trunk/bin/clang test.c -S -o-
.section __TEXT,__text,regular,pure_instructions
.macosx_version_min 10, 9
.globl _main
.align 4, 0x90
_main: ## @main
## BB#0:
pushl %ebp
movl %esp, %ebp
movl $0, %eax
popl %ebp
retl
.subsections_via_symbols
---
Apple Clang:
$ clang test.c -S -o-
.section __TEXT,__text,regular,pure_instructions
.globl _main
.align 4, 0x90
_main: ## @main
.cfi_startproc
## BB#0:
pushq %rbp
Ltmp2:
.cfi_def_cfa_offset 16
Ltmp3:
.cfi_offset %rbp, -16
movq %rsp, %rbp
Ltmp4:
.cfi_def_cfa_register %rbp
movl $0, %eax
popq %rbp
ret
.cfi_endproc
.subsections_via_symbols
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs