Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1MiTcx-0002fE-Hq for mharc-grub-devel@gnu.org; Tue, 01 Sep 2009 09:42:27 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MiTcw-0002eq-AT for grub-devel@gnu.org; Tue, 01 Sep 2009 09:42:26 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MiTcr-0002cp-Or for grub-devel@gnu.org; Tue, 01 Sep 2009 09:42:26 -0400 Received: from [199.232.76.173] (port=52788 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MiTcr-0002ci-Jt for grub-devel@gnu.org; Tue, 01 Sep 2009 09:42:21 -0400 Received: from mail-bw0-f222.google.com ([209.85.218.222]:48712) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MiTcr-0005Rf-5s for grub-devel@gnu.org; Tue, 01 Sep 2009 09:42:21 -0400 Received: by bwz22 with SMTP id 22so4373945bwz.42 for ; Tue, 01 Sep 2009 06:42:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=uPmbs1LgNNih3h3EwvK3nFuq8jtcM+OWJVmKxF5qv88=; b=hENZ7C5O7mMgWnmb6NBjtY6Fo8Y0K9i/8JvT1gqnexj0CrvY8PaHtajuYKvSiTLLk4 e/CkNof78mN7iXb8ww6Wc+klXjNjfKne4xqNIpX7bEFSAHSB1SMa5qN7VhijJV6YCefL aoGYSzBkgcTW7bPX6EGNrffc7C4Ijb4v2nrxg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=RK0kQBaBr4wzYrjojN/bb5IcJC2iqx8AKtqsPLXl6DcDgZVRVMYvLLy9TOis4jUlDC I9SroXt8m6gpMrBoWz3CsQMMr0v7SNjkG4BbmjnVVemZzoaTtk9az+8+vxPELSafD8pr wWVgChm9rO6YKElf1Mo1qt8O9nJJjMyq7lZYw= MIME-Version: 1.0 Received: by 10.204.154.150 with SMTP id o22mr5535542bkw.154.1251812538321; Tue, 01 Sep 2009 06:42:18 -0700 (PDT) Date: Tue, 1 Sep 2009 15:42:18 +0200 Message-ID: From: "Vladimir 'phcoder' Serbinenko" To: The development of GRUB 2 Content-Type: text/plain; charset=ISO-8859-1 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: [RFC] Eliminate NESTED_ATTR_FUNC 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: Tue, 01 Sep 2009 13:42:26 -0000 Hello. NESTED_ATTR_FUNC was introduced 6 years ago to workaround a bug in compiler. Now it creates only problems. In particular if they are used wrong it creates a bug of argument passing. Such bugs are difficult to find because it usually results in strange behaviour and in grub-emu NESTED_FUNC_ATTR is exteneded to an empty string so gdb and valgrind can't detect any error. Should we perhaps remove it coupled with adding a requirement for at least gcc 4.2? Can I run s/NESTED_FUNC_ATTR//g; on entire codebase and remove corresponding entry in configure.ac? -- Regards Vladimir 'phcoder' Serbinenko Personal git repository: http://repo.or.cz/w/grub2/phcoder.git