From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HFeHG-0006ZW-M4 for qemu-devel@nongnu.org; Fri, 09 Feb 2007 17:31:34 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HFeHF-0006ZK-9J for qemu-devel@nongnu.org; Fri, 09 Feb 2007 17:31:33 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HFeHF-0006ZH-3T for qemu-devel@nongnu.org; Fri, 09 Feb 2007 17:31:33 -0500 Received: from static-71-162-243-5.phlapa.fios.verizon.net ([71.162.243.5] helo=grelber.thyrsus.com) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1HFeHE-0003Re-KW for qemu-devel@nongnu.org; Fri, 09 Feb 2007 17:31:32 -0500 From: Rob Landley Subject: Re: [Qemu-devel] Re: strange crash on FreeBSD-current/amd64 (pointertruncation?) Date: Fri, 9 Feb 2007 17:31:29 -0500 References: <61EB814CF63D9642BA6DD5B76DB0894306DAC0@mx-met-exch0.scisys.co.uk> <200702080809.54787.rob@landley.net> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200702091731.29849.rob@landley.net> Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gwenole Beauchesne Cc: qemu-devel@nongnu.org On Friday 09 February 2007 2:06 am, Gwenole Beauchesne wrote: > In particular, and likely not limited to, a reasonnable C++ ABI I don't do C++, but Garrett the uClibc++ maintainer used to be at the desk next to mine. He would find this statment hilarious. Among other things, any _sane_ C++ ABI will deal with nested classes and namespaces by listing the innermost one first, so that when you have: parent1.parent2.parent3.child.member parent1.parent2.parent3.child.walrus parent1.parent2.parent3.child.thingy You don't strcmp your way through 80 bytes of guaranteed-to-be-identical data every time you want to do linking or RTTI or anything that needs to find a symbol. This is just one random example of how the people who were doing this weren't THINKING. I'll stop now. Rob -- "Perfection is reached, not when there is no longer anything to add, but when there is no longer anything to take away." - Antoine de Saint-Exupery