clang compat for Makefile.amd64

2014-07-02 Thread Matthew Dempsky
Diff below allows building an amd64 kernel with CC=clang make. Some random notes: 1. A bunch of the -Wno-foo warnings are probably worth fixing, but it's not a high priority for me at the moment. 2. -Wframe-larger-than= is the name modern GCC and Clang have adopted, and it probably wouldn't

Re: clang compat for Makefile.amd64

2014-07-02 Thread Matthew Dempsky
On Wed, Jul 2, 2014 at 5:16 PM, Matthew Dempsky matt...@dempsky.org wrote: +.if ${CC} == clang +CMACHFLAGS+= -ffreestanding Sorry, Clang actually needs -fno-integrated-as too, otherwise the integrated assembler complains about the bogus XYZZY instructions in kern/genassym.sh.