<html>
    <head>
      <base href="http://llvm.org/bugs/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - -no-integrated-as is broken on Mac OS X (Unknown pseudo-op: .macosx_version_min)"
   href="http://llvm.org/bugs/show_bug.cgi?id=21636">21636</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>-no-integrated-as is broken on Mac OS X (Unknown pseudo-op: .macosx_version_min)
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Macintosh
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>MacOS X
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>-New Bugs
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedclangbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>t.poechtrager@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>$ 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</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>