From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10032 invoked by alias); 23 Nov 2004 08:39:06 -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 9946 invoked from network); 23 Nov 2004 08:38:55 -0000 Received: from unknown (HELO mail.libertysurf.net) (213.36.80.90) by sourceware.org with SMTP; 23 Nov 2004 08:38:55 -0000 Received: from dyn-83-156-222-3.ppp.tiscali.fr (83.156.222.3) by mail.libertysurf.net (7.1.026) id 41A2DD2200017273; Tue, 23 Nov 2004 09:38:32 +0100 From: Eric Botcazou To: Matt Austern Subject: Re: generalized lvalues -- patch outline Date: Tue, 23 Nov 2004 09:43:00 -0000 User-Agent: KMail/1.6.1 Cc: gcc@gcc.gnu.org, Mark Mitchell , Steve Naroff , Michael Matz , Ziemowit Laski , Joe Buck , Andrew Pinski , Mike Stump References: <4D2CF60C-3919-11D9-8BD2-000A95BCF344@apple.com> <41A27FA4.2000107@codesourcery.com> In-Reply-To: MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200411230936.53676.ebotcazou@libertysurf.fr> X-SW-Source: 2004-11/txt/msg00798.txt.bz2 > Partly depends on what the value of "..." actually is. I'd be > interested in seeing whether other compilers (EDG? IBM? Sun? HP?) > support this extension. poog% cat ext.c void foo(char *p) { *((long *) p)++ = 1; } poog% cc -S ext.c "ext.c", line 3: warning: a cast does not yield an lvalue poog% cc -V cc: Sun C 5.5 Patch 112760-14 2004/09/28 The assembly code looks correct (full word stored, p is incremented by 4). -- Eric Botcazou