From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Thu, 17 Mar 2005 20:13:29 -0800 From: "David S. Miller" Subject: Re: Consolidation of asm/unaligned.h Message-Id: <20050317201329.272de7d5.davem@davemloft.net> In-Reply-To: <20050318002034.GA31880@twiddle.net> References: <20050317104744.4be7e550.davem@davemloft.net> <20050317140316.79210a73.davem@davemloft.net> <20050318002034.GA31880@twiddle.net> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit To: Richard Henderson Cc: geert@linux-m68k.org, linux-arch@vger.kernel.org List-ID: On Thu, 17 Mar 2005 16:20:34 -0800 Richard Henderson wrote: > You do realize that the compiler knows when the target supports unaligned > loads, and optimizes the __attribute__((packed)) case appropriately? I'd > be surprised if *any* target needed a specialized version (indeed, if so, > I'd consider this a failing in the compiler). That's a good point. Less compilation overhead though for the direct pointer deref defines.