From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16156 invoked by alias); 27 Apr 2012 15:28:24 -0000 Received: (qmail 16148 invoked by uid 22791); 27 Apr 2012 15:28:23 -0000 X-SWARE-Spam-Status: No, hits=-7.4 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,KHOP_THREADED,RCVD_IN_DNSWL_HI,RCVD_IN_HOSTKARMA_W,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 27 Apr 2012 15:28:10 +0000 Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q3RFS76l010353 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 27 Apr 2012 11:28:07 -0400 Received: from [127.0.0.1] (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx12.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id q3RFS56m026724; Fri, 27 Apr 2012 11:28:06 -0400 Message-ID: <4F9ABB05.1080306@redhat.com> Date: Fri, 27 Apr 2012 15:29:00 -0000 From: Pedro Alves User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20120329 Thunderbird/11.0.1 MIME-Version: 1.0 To: "Maciej W. Rozycki" CC: Jan Kratochvil , gdb-patches@sourceware.org Subject: Re: [PATCH] microMIPS support References: <20120426183713.GA21029@host2.jankratochvil.net> <20120426192611.GA24056@host2.jankratochvil.net> <20120427020603.GA24531@host2.jankratochvil.net> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2012-04/txt/msg00995.txt.bz2 On 04/27/2012 03:48 PM, Maciej W. Rozycki wrote: > "const type *var" is a pointer to a variable of "const type" type. > "type *const var" is a const pointer to a variable of "type" type. > >>> > > At the time I learnt C (some 18 years ago) that certainly wasn't a >>> > > construct I had seen in any language reference >> > >> > I do not see any problem using const for an array, what specifically do you >> > see wrong here? > Not a const array, but a const pointer. There's a c89 draft publicly available at: http://nepsweb.co.uk/langstand/isoC/gordon/ansi-c89u.txt And '3.5.4.1 Pointer declarators' describes const pointers. -- Pedro Alves