Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1LsuaY-0001JB-IZ for mharc-grub-devel@gnu.org; Sun, 12 Apr 2009 03:58:50 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LsuaW-0001HZ-ML for grub-devel@gnu.org; Sun, 12 Apr 2009 03:58:48 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LsuaV-0001HE-8f for grub-devel@gnu.org; Sun, 12 Apr 2009 03:58:47 -0400 Received: from [199.232.76.173] (port=36583 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LsuaV-0001HB-2n for grub-devel@gnu.org; Sun, 12 Apr 2009 03:58:47 -0400 Received: from [74.93.104.97] (port=53995 helo=sunset.davemloft.net) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LsuaS-0004PA-L3; Sun, 12 Apr 2009 03:58:44 -0400 Received: from localhost (localhost [127.0.0.1]) by sunset.davemloft.net (Postfix) with ESMTP id 56F46C8C0DD; Sun, 12 Apr 2009 00:58:34 -0700 (PDT) Date: Sun, 12 Apr 2009 00:58:34 -0700 (PDT) Message-Id: <20090412.005834.202946486.davem@davemloft.net> To: grub-devel@gnu.org, proski@gnu.org From: David Miller In-Reply-To: <1239508413.6491.11.camel@mj> References: <20090411.012731.101657495.davem@davemloft.net> <1239508413.6491.11.camel@mj> X-Mailer: Mew version 6.2.51 on Emacs 22.1 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Cc: Subject: Re: [PATCH]: Fix fs modules on sparc64 build with newer gcc 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: Sun, 12 Apr 2009 07:58:49 -0000 From: Pavel Roskin Date: Sat, 11 Apr 2009 23:53:33 -0400 > On Sat, 2009-04-11 at 01:27 -0700, David Miller wrote: >> Newer versions of gcc emit references to libgcc internal >> functions __bswapsi2 and __bswapdi2 when building ufs and >> some other filesystem modules on sparc64. >> >> Unfortunately older versions of gcc lack these symbols in >> libgcc so we can't export them universally, we have to check >> for it using configure link tests. >> >> I commited this under the "trust dave with sparc stuff" rule. >> Let me know if it that wasn't appropriate in this case :-) > > Actually, changes to configure.ac affect other users as well. Users of > other architectures would have to run those checks. And what kind of problems would that cause? The symbols would not be found, the test wouldn't pass, and other platforms don't use the resulting config.h defines as well. Only the sparc64 build uses this stuff. It seems entirely harmless. > I would try to use weak functions or something like that. Failing that, > I would add a check for affected architectures only. Even if that would > make the script longer, it would make it clear which architectures need > the check, which is probably a good idea. I don't think that would work well, these are symbols we have to export to modules. And since as I described above the test and the config.h defines are totally harmless to other targets, I don't see what the point is in using a more complicated and indirect implementation. >> I also rebuild configure when commiting these changes. > > I see that configure and config.h.in we built by different versions of > autoconf. That's likely to break. > > I would run autogen.sh and commit all changed files after examining the > changes. As a courtesy to others, I install the same version of > Autoconf that the current configure script was generated with. > > Adding or removing files means that DISTLIST will change. That should > be committed as well. I always check the status of my tree after running autogen.sh so I would take care of all of these things.