clang can't working on windows with mingw or msvc properly

clang was compiled with msvc
I am using mingw gcc 4.4.0 comes from mingw.org

The file a.c is
#include <stdio.h>

int main()
{
  return 0;
}

But with
"D:/Tools/Building/llvm/bin/clang-cc.exe" -triple i386-pc-mingw -S
-disable-free -main-file-name a.c --relocation-model static
--disable-fp-elim --unwind-tables=0 --mcpu=pentium4 --fmath-errno=1 -v
-ID:/Tools/Building/llvm/Headers -fdiagnostics-show-option -o a.s -x c
a.c
It's generated

  .text
  .align 16
  .globl _main
  .def _main; .scl 2; .type 32; .endef
_main:
  pushl %ebp
  movl %esp, %ebp
  subl $4, %esp
  call ___main
  movl $0, -4(%ebp)
  movl $0, -4(%ebp)
  movl -4(%ebp), %eax
  addl $4, %esp
  popl %ebp
  ret
g++ a.s
It's can produce a.exe properly

And also we need to add
typedef unsigned int wint_t;
into file Headers/stddef.h

It's can working with mingw:)

But with
"D:/Tools/Building/llvm/bin/clang-cc.exe" -triple i386-pc-win32 -S
-disable-free -main-file-name a.c --relocation-model static
--disable-fp-elim --unwind-tables=0 --mcpu=pentium4 --fmath-errno=1 -v
-ID:/Tools/Building/llvm/Headers -fdiagnostics-show-option -o a.s -x c
a.c
It's generated
  .686
  .MMX
  .XMM
  .model flat

  EXTERN _abort:near

  .text ends

  .text SEGMENT PARA 'DATA'
  public _main
  ALIGN 16
_main proc near
  push EBP
  mov EBP, ESP
  sub ESP, 4
  mov DWORD PTR [EBP - 4], 0
  mov DWORD PTR [EBP - 4], 0
  mov EAX, DWORD PTR [EBP - 4]
  add ESP, 4
  pop EBP
  ret
_main endp
  end

can't be compiled with ml. or I don't know how to.

Hello,

can't be compiled with ml. or I don't know how to.

Correct. This never worked properly and ml it too weak to be able to
compile something non-trivial. The support of mams was dropped
recently from the mainline.

Hello,

can't be compiled with ml. or I don't know how to.

Correct. This never worked properly and ml it too weak to be able to
compile something non-trivial. The support of mams was dropped
recently from the mainline.

But at least, we need to support mingw:) maybe we just set mingw as
default on windows platform. Because mingw is getting more and more
mature:)
And just need little code.
I think mingw now is stable enough now.
So we need to set -triple i386-pc-mingw
nothing else, that's all, maybe just need to change the CMake config files:)

Hello

But at least, we need to support mingw:) maybe we just set mingw as
default on windows platform. Because mingw is getting more and more
mature:)

mingw works for me. However, I don't use cmake.