From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6972 invoked by alias); 29 Apr 2004 08:04:33 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 6952 invoked from network); 29 Apr 2004 08:04:32 -0000 Received: from unknown (HELO main.gmane.org) (80.91.224.249) by sources.redhat.com with SMTP; 29 Apr 2004 08:04:32 -0000 Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1BJ6X2-0004WX-00 for ; Thu, 29 Apr 2004 10:04:32 +0200 Received: from paride.rett.polimi.it ([131.175.65.135]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 29 Apr 2004 10:04:32 +0200 Received: from bonzini by paride.rett.polimi.it with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 29 Apr 2004 10:04:32 +0200 To: gcc@gcc.gnu.org From: Paolo Bonzini Subject: Re: RFC embedded c proposal Date: Thu, 29 Apr 2004 11:57:00 -0000 Message-ID: <4090B771.4070906@gnu.org> References: <4090B26B.4050002@solidas.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: paride.rett.polimi.it User-Agent: Mozilla Thunderbird 0.5 (Windows/20040207) In-Reply-To: <4090B26B.4050002@solidas.com> X-SW-Source: 2004-04/txt/msg01368.txt.bz2 > b) Declare an __attribute__, e.g. __attribute__((progmem)), that will > become a part of the type decleration: > > __attribute__((progmem)) char a, b, c; // Works today in GCC > > __attribute__((progmem)) int *p; // Does not work > > > Which of these two methods would be best suited for gcc? I think this one; then if you want you can use builtin_define in the target's TARGET_CPU_CPP_BUILTINS #define, to define _Progmem to be __attribute__ ((progmem)). This is how AltiVec works, at least. Paolo