DragonFly bugs List (threaded) for 2009-04
DragonFly BSD
DragonFly bugs List (threaded) for 2009-04
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

[issue1346] [PATCH] Fix some minor inline assembly for llvm/clang compatibility


From: "Alex Hornung \(via DragonFly issue tracker\)" <sinknull@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Fri, 24 Apr 2009 13:01:31 +0000

New submission from Alex Hornung <ahornung@gmail.com>:

1) remove uses of __label__, which is not supported by llvm/clang and is not
needed for either gcc or llvm/clang.

2) remove uses of register type var __asm("ecx") and other variable
register-binding as it is not supported by llvm/clang and is superfluous. By
specifying that the variable content should go into ecx in the clobber list, the
current use is not needed.

3) add an ugly hack, conditionalized on __clang__, to allow correct
compilation of atomic_intr_cond_try(). This hack should be removed once
http://llvm.org/bugs/show_bug.cgi?id=3812 is solved. It is conditionalized on
__clang__ define because it is not a valid syntax for gcc.


Patch is at:
http://gitweb.dragonflybsd.org/~alexh/dragonfly.git/commit/6e6c8028465bf25a6e9f5685b57a3fee79f77382

----------
assignedto: alexh
messages: 6480
nosy: alexh
priority: feature
status: unread
title: [PATCH] Fix some minor inline assembly for llvm/clang compatibility

_____________________________________________________
DragonFly issue tracker <bugs@lists.dragonflybsd.org>
<http://bugs.dragonflybsd.org/issue1346>
_____________________________________________________



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]