xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* [PATCH for-4.7 0/5] build: fixes for building Xen with clang
@ 2016-04-15 18:27 Roger Pau Monne
  2016-04-15 18:27 ` [PATCH for-4.7 1/5] build: make HOSTCC conditional on the value of clang Roger Pau Monne
                   ` (5 more replies)
  0 siblings, 6 replies; 12+ messages in thread
From: Roger Pau Monne @ 2016-04-15 18:27 UTC (permalink / raw)
  To: xen-devel

This series contain small bug-fixes for building the Xen microkernel with
clang. I think they are suitable for 4.7, but that's just my opinion.

I've also noticed that Xen always sets "-no-integrated-as" when using clang,
because previous versions (<3.8.0) didn't support .code16/.code32/.code64
in inline asm. This is solved at least in version 3.8.0 (haven't tested
older versions). The problem now to switch to the integrated clang assembler
is the usage of the rept instructions in some files in conjunction with
labels:

entry.S:403:15: error: unexpected token in '.rept' directive
        .rept 48 -((.-compat_hypercall_table)/8)
              ^
entry.S:405:14: error: unmatched '.endr' directive
        .endr
             ^
entry.S:408:15: error: unexpected token in '.rept' directive
        .rept 64 -((.-compat_hypercall_table)/8)
              ^
entry.S:410:14: error: unmatched '.endr' directive
        .endr
             ^
entry.S:455:15: error: unexpected token in '.rept' directive
        .rept 48 -(.-compat_hypercall_args_table)
              ^
entry.S:457:14: error: unmatched '.endr' directive
        .endr
             ^
entry.S:460:15: error: unexpected token in '.rept' directive
        .rept 64 -(.-compat_hypercall_args_table)
              ^
entry.S:462:14: error: unmatched '.endr' directive
        .endr
             ^

The entry.S file this errors come from is xen/arch/x86/x86_64/compat/entry.S

If anyone has any clever ideas about how to replace those instructions with
compatible ones, I'm more than willing to listen. AFAICT, this is the last
issue that prevents Xen from switch to the integrated clang assembler on
newer clang versions.

Thanks, Roger.

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2016-04-22 16:26 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-15 18:27 [PATCH for-4.7 0/5] build: fixes for building Xen with clang Roger Pau Monne
2016-04-15 18:27 ` [PATCH for-4.7 1/5] build: make HOSTCC conditional on the value of clang Roger Pau Monne
2016-04-17 20:03   ` Jan Beulich
2016-04-20 14:51     ` Roger Pau Monné
2016-04-20 17:09       ` Jan Beulich
2016-04-15 18:27 ` [PATCH for-4.7 2/5] build: set HOSTCXX based on clang value for Kconfig xconfig target Roger Pau Monne
2016-04-15 18:27 ` [PATCH for-4.7 3/5] build: pass HOST{CC/CXX} value down to Kconfig Roger Pau Monne
2016-04-22 16:26   ` Ian Jackson
2016-04-15 18:27 ` [PATCH for-4.7 4/5] build: remove Kconfig forced gcc selection Roger Pau Monne
2016-04-15 18:27 ` [PATCH for-4.7 5/5] travis: add an alias for gcc when using clang Roger Pau Monne
2016-04-17 10:02 ` [PATCH for-4.7 0/5] build: fixes for building Xen with clang Jan Beulich
2016-04-20 14:55   ` Roger Pau Monné

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).