Clang's integrated assembler can now handle sys/boot/i386/boot2/sio.S.

It used to choke on the notation "inb (%dx),%al" for "inb %dx,%al"; GNU
as accepts both forms.  Which notation is more 'correct' is an open
question. :)
This commit is contained in:
Dimitry Andric 2011-02-27 02:06:09 +00:00
parent 9190ccb851
commit b1b28f51de
3 changed files with 0 additions and 6 deletions

View File

@ -44,8 +44,6 @@ CFLAGS= -DBOOTPROG=\"gptboot\" \
.if ${CC:T:Mclang} == "clang"
# XXX: clang integrated-as doesn't grok .codeNN directives yet
CFLAGS+= ${.IMPSRC:T:Mgptldr.S:C/^.+$/-no-integrated-as/}
# XXX: clang integrated-as doesn't grok some 16-bit instructions yet
CFLAGS+= ${.IMPSRC:T:Msio.S:C/^.+$/-no-integrated-as/}
.endif
LDFLAGS=-static -N --gc-sections

View File

@ -41,8 +41,6 @@ CFLAGS= -DBOOTPROG=\"gptzfsboot\" \
.if ${CC:T:Mclang} == "clang"
# XXX: clang integrated-as doesn't grok .codeNN directives yet
CFLAGS+= ${.IMPSRC:T:Mgptldr.S:C/^.+$/-no-integrated-as/}
# XXX: clang integrated-as doesn't grok some 16-bit instructions yet
CFLAGS+= ${.IMPSRC:T:Msio.S:C/^.+$/-no-integrated-as/}
.endif
LDFLAGS=-static -N --gc-sections

View File

@ -41,8 +41,6 @@ CFLAGS= -DBOOTPROG=\"zfsboot\" \
-Winline --param max-inline-insns-single=100
.if ${CC:T:Mclang} == "clang"
# XXX: clang integrated-as doesn't grok some 16-bit instructions yet
CFLAGS+= ${.IMPSRC:T:Msio.S:C/^.+$/-no-integrated-as/}
# XXX: clang integrated-as doesn't grok .codeNN directives yet
CFLAGS+= ${.IMPSRC:T:Mzfsldr.S:C/^.+$/-no-integrated-as/}
.endif