From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1RTvNU-0005bb-Nq for mharc-grub-devel@gnu.org; Fri, 25 Nov 2011 07:59:40 -0500 Received: from eggs.gnu.org ([140.186.70.92]:33042) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RTvNM-0005Lq-TB for grub-devel@gnu.org; Fri, 25 Nov 2011 07:59:38 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RTvNF-0000Cg-Ay for grub-devel@gnu.org; Fri, 25 Nov 2011 07:59:29 -0500 Received: from mail-ww0-f49.google.com ([74.125.82.49]:33497) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RTvNF-0000Cc-6d for grub-devel@gnu.org; Fri, 25 Nov 2011 07:59:25 -0500 Received: by wwf5 with SMTP id 5so2230312wwf.30 for ; Fri, 25 Nov 2011 04:59:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=epW0v/n54Dr9V7zOEyH6rYX+3vLap0hngU1y/Z8sdC8=; b=MJD8DY1wkPNyEqqRxqHqRvoPEI3NMJ3M0Vfn8pyNIGtYo4iUSgOCRKHyfXfepPAzm5 5HcAZLZt8B/TwDT2Sk3E0F8uPLhup2cOe1iX1tvnYopHhBxJF4e0UHSI+88swsVdO9RH ZCd3DVbK1Ip1vAmFpXN5k+K15ITLba3yRZRZ4= Received: by 10.180.18.165 with SMTP id x5mr33787655wid.24.1322225963921; Fri, 25 Nov 2011 04:59:23 -0800 (PST) Received: from debian.bg45.phcoder (public-docking-hg-2-022.ethz.ch. [129.132.247.22]) by mx.google.com with ESMTPS id fg15sm4063733wbb.7.2011.11.25.04.59.22 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 25 Nov 2011 04:59:22 -0800 (PST) Message-ID: <4ECF9127.1040800@gmail.com> Date: Fri, 25 Nov 2011 13:59:19 +0100 From: =?UTF-8?B?VmxhZGltaXIgJ8+GLWNvZGVyL3BoY29kZXInIFNlcmJpbmVua28=?= User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.24) Gecko/20111114 Icedove/3.1.16 MIME-Version: 1.0 To: The development of GRUB 2 Subject: Nested func attr and gcc < 4.5 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 74.125.82.49 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Nov 2011 12:59:38 -0000 Hello, all. It seems that NESTED_FUNC_ATTR strikes again. This time since most of our devs use gcc >= 4.5 (I use 4.6) where the compiler bug is fixe, it's a bigger problem than before. So I propose the following: If gcc has this bug, compile with mregparms=1 and show a message recommendation to upgrade. Since we may be unable to execute target programs, we have to rely on version check but it shouldn't cause much trouble. This way we continue to support gcc < 4.5 without sacrificing reliability and finally get rid of the need of NESTED_FUNC_ATTR. The only downside is increased binary size with gcc < 4.5. -- Regards Vladimir 'φ-coder/phcoder' Serbinenko