From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Schwab Subject: Re: [PATCH v2 1/6] Add new macros for page-aligned data and bss sections. Date: Sat, 02 May 2009 01:02:12 +0200 Message-ID: References: <1241121253-32341-1-git-send-email-tabbott@mit.edu> <1241121253-32341-2-git-send-email-tabbott@mit.edu> <20090501091848.GB18326@uranus.ravnborg.org> <49FB2449.1010301@zytor.com> <20090501171717.GA26401@uranus.ravnborg.org> <49FB2EDC.9050300@zytor.com> <20090501174457.GA26559@uranus.ravnborg.org> <49FB35C4.6060107@zytor.com> Mime-Version: 1.0 Return-path: In-Reply-To: <49FB35C4.6060107@zytor.com> (H. Peter Anvin's message of "Fri, 01 May 2009 10:47:48 -0700") Sender: linux-mips-bounce@linux-mips.org Errors-to: linux-mips-bounce@linux-mips.org List-Id: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: "H. Peter Anvin" Cc: Sam Ravnborg , linux-mips@linux-mips.org, linux-m68k@vger.kernel.org, linux-ia64@vger.kernel.org, linux-sh@vger.kernel.org, Denys Vlasenko , Tim Abbott , Heiko Carstens , linuxppc-dev@ozlabs.org, Paul Mackerras , Greg Ungerer , sparclinux@vger.kernel.org, Thomas Gleixner , linux-s390@vger.kernel.org, Jesper Nilsson , Yoshinori Sato , Helge Deller , Ingo Molnar , Geert Uytterhoeven , Russell King , user-mode-linux-devel@lists.sourceforge.net, microblaze-uclinux@itee.uq.edu.au, Jeff Dike , Jeff Arnold , dev-etrax@axis.com, Mikael Starvik "H. Peter Anvin" writes: > Sam Ravnborg wrote: >>> >>> What's wrong with @? >> arm does not support it :-( >> I recall it denote a comment in arm assembler. >> >> I could do some magic to detect the ARM case but I'm reluctant to do so. >> I could also ignore the arm issue for now as it is not used by arm, >> but that strikes me as the wrong approach. >> > > If we really have to use different tokens, I would say: > > #ifdef __ARM__ > # define _PROGBITS %progbits /* or whatever */ > # define _NOBITS %nobits > #else > # define _PROGBITS @progbits > # define _NOBITS @nobits > #endif GAS has always supported both '@' and '%', so '%' can be used everywhere. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different." From mboxrd@z Thu Jan 1 00:00:00 1970 Received: with ECARTIS (v1.0.0; list linux-mips); Sat, 02 May 2009 00:02:42 +0100 (BST) Received: from mail-out.m-online.net ([212.18.0.9]:35618 "EHLO mail-out.m-online.net" rhost-flags-OK-OK-OK-OK) by ftp.linux-mips.org with ESMTP id S28574086AbZEAXCf (ORCPT ); Sat, 2 May 2009 00:02:35 +0100 Received: from mail01.m-online.net (mail.m-online.net [192.168.3.149]) by mail-out.m-online.net (Postfix) with ESMTP id 241241C15368; Sat, 2 May 2009 01:02:15 +0200 (CEST) Received: from localhost (dynscan2.mnet-online.de [192.168.1.215]) by mail.m-online.net (Postfix) with ESMTP id 8B89E90197; Sat, 2 May 2009 01:02:15 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.3.149]) by localhost (dynscan2.mnet-online.de [192.168.1.215]) (amavisd-new, port 10024) with ESMTP id J5MY1fAE9fML; Sat, 2 May 2009 01:02:13 +0200 (CEST) Received: from igel.home (DSL01.83.171.176.91.ip-pool.NEFkom.net [83.171.176.91]) by mail.mnet-online.de (Postfix) with ESMTP; Sat, 2 May 2009 01:02:13 +0200 (CEST) Received: by igel.home (Postfix, from userid 501) id E9F0B10DA5D; Sat, 2 May 2009 01:02:12 +0200 (CEST) From: Andreas Schwab To: "H. Peter Anvin" Cc: Sam Ravnborg , linux-mips@linux-mips.org, linux-m68k@vger.kernel.org, linux-ia64@vger.kernel.org, linux-sh@vger.kernel.org, Denys Vlasenko , Tim Abbott , Heiko Carstens , linuxppc-dev@ozlabs.org, Paul Mackerras , Greg Ungerer , sparclinux@vger.kernel.org, Thomas Gleixner , linux-s390@vger.kernel.org, Jesper Nilsson , Yoshinori Sato , Helge Deller , Ingo Molnar , Geert Uytterhoeven , Russell King , user-mode-linux-devel@lists.sourceforge.net, microblaze-uclinux@itee.uq.edu.au, Jeff Dike , Jeff Arnold , dev-etrax@axis.com, Mikael Starvik , Cyrill Gorcunov , Michal Simek , Waseem Daher , Richard Henderson , Chris Zankel , Bryan Wu , Tony Luck , linux-parisc@vger.kernel.org, Haavard Skinnemoen , Hirokazu Takata , Linux kernel mailing list , Ralf Baechle , Anders Kaseorg , Kyle McMartin , Paul Mundt , linux-alpha@vger.kernel.org, Martin Schwidefsky , uclinux-dist-devel@blackfin.uclinux.org, Linus Torvalds , "David S. Miller" Subject: Re: [PATCH v2 1/6] Add new macros for page-aligned data and bss sections. References: <1241121253-32341-1-git-send-email-tabbott@mit.edu> <1241121253-32341-2-git-send-email-tabbott@mit.edu> <20090501091848.GB18326@uranus.ravnborg.org> <49FB2449.1010301@zytor.com> <20090501171717.GA26401@uranus.ravnborg.org> <49FB2EDC.9050300@zytor.com> <20090501174457.GA26559@uranus.ravnborg.org> <49FB35C4.6060107@zytor.com> X-Yow: I'm MENTALLY here.. but PHYSICALLY I'm purchasing NAUGAHYDE furniture in the' SUBURBS of PHOENIX!! Date: Sat, 02 May 2009 01:02:12 +0200 In-Reply-To: <49FB35C4.6060107@zytor.com> (H. Peter Anvin's message of "Fri, 01 May 2009 10:47:48 -0700") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.93 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-Path: X-Envelope-To: <"|/home/ecartis/ecartis -s linux-mips"> (uid 0) X-Orcpt: rfc822;linux-mips@linux-mips.org Original-Recipient: rfc822;linux-mips@linux-mips.org X-archive-position: 22599 X-ecartis-version: Ecartis v1.0.0 Sender: linux-mips-bounce@linux-mips.org Errors-to: linux-mips-bounce@linux-mips.org X-original-sender: schwab@linux-m68k.org Precedence: bulk X-list: linux-mips "H. Peter Anvin" writes: > Sam Ravnborg wrote: >>> >>> What's wrong with @? >> arm does not support it :-( >> I recall it denote a comment in arm assembler. >> >> I could do some magic to detect the ARM case but I'm reluctant to do so. >> I could also ignore the arm issue for now as it is not used by arm, >> but that strikes me as the wrong approach. >> > > If we really have to use different tokens, I would say: > > #ifdef __ARM__ > # define _PROGBITS %progbits /* or whatever */ > # define _NOBITS %nobits > #else > # define _PROGBITS @progbits > # define _NOBITS @nobits > #endif GAS has always supported both '@' and '%', so '%' can be used everywhere. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different." From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-out.m-online.net (mail-out.m-online.net [212.18.0.9]) by ozlabs.org (Postfix) with ESMTP id 1D88EDDEE7 for ; Sat, 2 May 2009 09:02:31 +1000 (EST) From: Andreas Schwab To: "H. Peter Anvin" Subject: Re: [PATCH v2 1/6] Add new macros for page-aligned data and bss sections. References: <1241121253-32341-1-git-send-email-tabbott@mit.edu> <1241121253-32341-2-git-send-email-tabbott@mit.edu> <20090501091848.GB18326@uranus.ravnborg.org> <49FB2449.1010301@zytor.com> <20090501171717.GA26401@uranus.ravnborg.org> <49FB2EDC.9050300@zytor.com> <20090501174457.GA26559@uranus.ravnborg.org> <49FB35C4.6060107@zytor.com> Date: Sat, 02 May 2009 01:02:12 +0200 In-Reply-To: <49FB35C4.6060107@zytor.com> (H. Peter Anvin's message of "Fri, 01 May 2009 10:47:48 -0700") Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: linux-mips@linux-mips.org, linux-m68k@vger.kernel.org, linux-ia64@vger.kernel.org, linux-sh@vger.kernel.org, Denys Vlasenko , Tim Abbott , Heiko Carstens , linuxppc-dev@ozlabs.org, Waseem, Paul Mackerras , Greg Ungerer , sparclinux@vger.kernel.org, Sam Ravnborg , Bryan Wu , linux-s390@vger.kernel.org, Jesper Nilsson , Yoshinori Sato , "David S. Miller" , Helge Deller , Ingo Molnar , Geert Uytterhoeven , Russell King , user-mode-linux-devel@lists.sourceforge.net, microblaze-uclinux@itee.uq.edu.au, Jeff Dike , Jeff Arnold , Michal Simek , Mikael Starvik , Cyrill Gorcunov , Thomas Gleixner , Daher , Richard Henderson , Chris Zankel , dev-etrax@axis.com, Tony Luck , Haavard Skinnemoen , linux-parisc@vger.kernel.org, Linux kernel mailing list , Ralf Baechle , Anders Kaseorg , Kyle McMartin , Paul Mundt , linux-alpha@vger.kernel.org, Martin Schwidefsky , uclinux-dist-devel@blackfin.uclinux.org, Linus Torvalds , Hirokazu Takata List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , "H. Peter Anvin" writes: > Sam Ravnborg wrote: >>> >>> What's wrong with @? >> arm does not support it :-( >> I recall it denote a comment in arm assembler. >> >> I could do some magic to detect the ARM case but I'm reluctant to do so. >> I could also ignore the arm issue for now as it is not used by arm, >> but that strikes me as the wrong approach. >> > > If we really have to use different tokens, I would say: > > #ifdef __ARM__ > # define _PROGBITS %progbits /* or whatever */ > # define _NOBITS %nobits > #else > # define _PROGBITS @progbits > # define _NOBITS @nobits > #endif GAS has always supported both '@' and '%', so '%' can be used everywhere. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."