On Sat, Apr 06, 2019 at 09:40:15PM +0000, Takeshi Nakayama wrote: > Module Name: src > Committed By: nakayama > Date: Sat Apr 6 21:40:15 UTC 2019 > > Modified Files: > src/sys/arch/sparc64/include: psl.h > > Log Message: > The real cause for removing asm inline code on clang is that the > "r" constraint cannot handle 64-bit and is treated as 32-bit. > > So code that refers to the upper 32-bit (manuf or impl) of the %ver > register is removed by optimization. > > Use 32-bit kernel code as a workaround when referring to the %ver > register.
Thanks! Could you please add a note to doc/TODO.clang about the hackaround? Joerg