From mboxrd@z Thu Jan 1 00:00:00 1970 From: pbonzini@redhat.com (Paolo Bonzini) Date: Wed, 16 Jun 2010 01:55:13 +0200 Subject: [ltt-dev] [PATCH RFC] Force build failure on unknown architectures In-Reply-To: <20100615231423.GA16064@linux.vnet.ibm.com> References: <20100615231423.GA16064@linux.vnet.ibm.com> Message-ID: <4C1812E1.5080103@redhat.com> On 06/16/2010 01:14 AM, Paul E. McKenney wrote: > Create urcu/arch_unknown.h and urcu/uatomic_arch_unknown.h, which > contain only #error statements and explanatory comments. This forces > build failures on unrecognized architectures in preference to trying > to guess at what operations might be safe on such architectures. > > One other semi-feasible alternative is to use hashed arrays of locks > that are acquired with signals disabled. However, this seems a bit > too ornate, especially for architectures for which the gcc __sync_ > primitives work correctly. ia64 is one. Paolo