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:
parent
9190ccb851
commit
b1b28f51de
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user