From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1RzerJ-00059W-0J for garchives@archives.gentoo.org; Tue, 21 Feb 2012 01:49:37 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1BB80E07D3; Tue, 21 Feb 2012 01:49:21 +0000 (UTC) Received: from edge1.cs.stonybrook.edu (edge1.cs.stonybrook.edu [130.245.9.210]) by pigeon.gentoo.org (Postfix) with ESMTP id 43092E0F4F for ; Tue, 21 Feb 2012 01:48:44 +0000 (UTC) Received: from HUBCAS1.cs.stonybrook.edu (130.245.9.206) by edge1.cs.stonybrook.edu (130.245.9.210) with Microsoft SMTP Server (TLS) id 14.1.355.2; Mon, 20 Feb 2012 20:48:40 -0500 Received: from mail-iy0-f181.google.com (209.85.210.181) by hubcas1.cs.stonybrook.edu (130.245.9.212) with Microsoft SMTP Server (TLS) id 14.1.323.3; Mon, 20 Feb 2012 20:48:43 -0500 Received: by iakl21 with SMTP id l21so11835120iak.40 for ; Mon, 20 Feb 2012 17:48:42 -0800 (PST) Received-SPF: pass (google.com: domain of ryao@cs.stonybrook.edu designates 10.50.203.66 as permitted sender) client-ip=10.50.203.66; Authentication-Results: mr.google.com; spf=pass (google.com: domain of ryao@cs.stonybrook.edu designates 10.50.203.66 as permitted sender) smtp.mail=ryao@cs.stonybrook.edu Received: from mr.google.com ([10.50.203.66]) by 10.50.203.66 with SMTP id ko2mr16447183igc.7.1329788922611 (num_hops = 1); Mon, 20 Feb 2012 17:48:42 -0800 (PST) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org MIME-Version: 1.0 Received: by 10.50.203.66 with SMTP id ko2mr13292751igc.7.1329788922592; Mon, 20 Feb 2012 17:48:42 -0800 (PST) Received: by 10.231.30.197 with HTTP; Mon, 20 Feb 2012 17:48:42 -0800 (PST) In-Reply-To: References: <1329770054.21166.12.camel@belkin4> Date: Mon, 20 Feb 2012 20:48:42 -0500 Message-ID: Subject: Re: [gentoo-dev] Re: About gcc-4.6 unmasking From: Richard Yao To: "gentoo-dev@lists.gentoo.org" Content-Type: text/plain; charset="ISO-8859-1" X-Originating-IP: [209.85.210.181] X-Archives-Salt: 11f13524-9431-42a9-96c5-cd9c26036948 X-Archives-Hash: f5d1ae083595fdfaa5ebd6127080edc9 > I took a look at the problem cited in your bug report. I suggest > compiling sys-boot/grub with CFLAGS="-O0 -ggdb3", attaching gdb to > grub-install and then watching what happens in the debugger. If you > compare runs with a GCC 4.5.3 built stage2 and a GCC 4.6.2 built > stage2, you should be able to find the bug. I should add that I was able to use this technique to fix a bug that I encountered during my initial attempt to port Illumos GRUB a month ago. The code the introduced the Illumos GRUB bug is not present in sys-boot/grub, but I imagine that the same technique should work here. Also, for anyone interested in what happened to the sys-boot/grub-illumos port I mention, there are issues with the generated stage2 binary, grub-install is broken (Solaris uses a separate install-grub tool) and I would prefer to rework the Sun Microsystems code into a patch for sys-boot/grub, but the diff between Illumos GRUB and GRUB 0.97 is a few megabytes in size, so that won't happen this month.