Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1E41Ht-0003lf-7w for mharc-grub-devel@gnu.org; Sat, 13 Aug 2005 15:03:21 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1E41Hd-0003hn-JT for grub-devel@gnu.org; Sat, 13 Aug 2005 15:03:05 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1E41HM-0003dX-2P for grub-devel@gnu.org; Sat, 13 Aug 2005 15:02:57 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1E41HL-0003Vk-FL for grub-devel@gnu.org; Sat, 13 Aug 2005 15:02:47 -0400 Received: from [212.43.237.68] (helo=kotoba.storever.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1E41Jv-0007BB-JU for grub-devel@gnu.org; Sat, 13 Aug 2005 15:05:27 -0400 Received: from ASSP-nospam (localhost [127.0.0.1]) by kotoba.storever.com (Postfix) with ESMTP id 054BBFF51E2D for ; Sat, 13 Aug 2005 20:50:05 +0200 (CEST) Received: from 127.0.0.1 ([127.0.0.1] helo=ip6-localhost) by ASSP-nospam ; 13 Aug 05 18:50:04 -0000 From: "Yoshinori K. Okuji" Organization: enbug.org To: The development of GRUB 2 Date: Sat, 13 Aug 2005 20:48:59 +0200 User-Agent: KMail/1.7.2 References: <42FD3EE7.80903@inma.ucl.ac.be> In-Reply-To: <42FD3EE7.80903@inma.ucl.ac.be> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200508132048.59822.okuji@enbug.org> Subject: Re: problem with NESTED_FUNC_ATTR : unaligned pointer X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 13 Aug 2005 19:03:18 -0000 I investigated this problem. Actually, there were two problems: - The test didn't detect bugs in gcc-3.4 or gcc-4.0. - The check was reverse. This is my mistake. I tried to rewrite the test program, and found a way to detect the bug in gcc-3.4. However, I still do not find a simple way to detect the bug in gcc-4.0. So, for now, the workaround is always enabled, regardless of the result of the test. The difficulty is that recent GCC is "too clever" in a sense. So it emits code trimmed down very much when a program is simple. But clearly gcc-4.0 has the same bug as older versions with the file ext2.c, so there must be a way to detect the bug in a simple way. Okuji