Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1MZliS-0001Jt-75 for mharc-grub-devel@gnu.org; Sat, 08 Aug 2009 09:12:08 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MZliQ-0001IK-KT for grub-devel@gnu.org; Sat, 08 Aug 2009 09:12:06 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MZliL-0001CT-Hv for grub-devel@gnu.org; Sat, 08 Aug 2009 09:12:05 -0400 Received: from [199.232.76.173] (port=57054 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MZliL-0001CJ-BO for grub-devel@gnu.org; Sat, 08 Aug 2009 09:12:01 -0400 Received: from mail-bw0-f222.google.com ([209.85.218.222]:63401) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MZliK-0002Dj-SY for grub-devel@gnu.org; Sat, 08 Aug 2009 09:12:01 -0400 Received: by bwz22 with SMTP id 22so1864495bwz.42 for ; Sat, 08 Aug 2009 06:11:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=VfkBRb9wuOGtAqUWhSy6iw1H8XMTlfx4Tp8xyGnGQEk=; b=V+smba/wXZh4YgCQgYmzwnD260rYMophFdWL2/r+KyW4DZxOZkVPo5zOTy50A6Uif8 MwmoohZAceETlSkqL6k12rDRhctrPV0ArJIysAwl7OXff0EjuZnL+N4cXfYdOoNKhwCF HIJjn5kXnS199xL8uLMCa+4GrqNuHmO2iglWU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=ek/sasweLSm2axJqEX0F8t7PXY1X5U1tNsJLAqN+VVhRkxzi8b/aGa9Uh5WtZ+vskO qQJsMauRGrmReqdf94O27m3FP65yZwbeyKQu6/tYDK2q3SAgx6qXNqZbFgh5/872UWsz SYJgaYd8vWZknnXE7yIjmujGwyQhWxShwTANo= MIME-Version: 1.0 Received: by 10.204.72.197 with SMTP id n5mr1964979bkj.151.1249737119141; Sat, 08 Aug 2009 06:11:59 -0700 (PDT) In-Reply-To: <1249703542.25983.42.camel@mj> References: <20090804205256.GE15811@thorin> <20090807110654.GC6695@thorin> <87bpmrj2l1.fsf@xs4all.nl> <1249703542.25983.42.camel@mj> Date: Sat, 8 Aug 2009 15:11:57 +0200 Message-ID: From: "Vladimir 'phcoder' Serbinenko" To: The development of GRUB 2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: Re: [PATCH 1/2] Relocator framework 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, 08 Aug 2009 13:12:06 -0000 On Sat, Aug 8, 2009 at 5:52 AM, Pavel Roskin wrote: > On Fri, 2009-08-07 at 14:01 +0200, Vladimir 'phcoder' Serbinenko wrote: > >> Apple's compiler is based GCC but binutils aren't and they pose the >> most of problems. Actualy the most problematic bit was that I didn't >> know that unless you prefix variable with L_ apple's assembler treats >> it as global. Adding L_ in this code solves problem. Yves proposed to >> add a LOCAL(x) macro to symbol.h this way the assembler code is also >> more readable. I also did further adjustments in this patch to >> decrease the number of ifdefs but had no time to test it and so >> couldn't submit it > > I would prefer if you don't commit any patches that introduce any more > preprocessor conditionals for the Apple compiler or assembler. LOCAL(x) can always be expanded to L_## x but it will make code more readable and modifiable in future. And it will allow a bunch of other ifdef's go out. > > It would make it hard to debug problems reported by others, as different > compilers would produce different binaries. > Even just changing compiler options you produce different binary > If we are using some feature that is just nice but not needed (such as > binary & in lnxboot.S to set the image size to 1024), it would be better > to avoid using that feature for all compilers rather than for the > compilers that don't support it. > lnxboot.S with Apple's toolchain is disabled temporarily awaiting someone to find a definitive solution. Why do our 2 new maintainers propose to shave off useful features? > -- > Regards, > Pavel Roskin > > > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > http://lists.gnu.org/mailman/listinfo/grub-devel > -- Regards Vladimir 'phcoder' Serbinenko Personal git repository: http://repo.or.cz/w/grub2/phcoder.git