From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24233 invoked by alias); 10 Dec 2004 17:26:49 -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 24162 invoked from network); 10 Dec 2004 17:26:46 -0000 Received: from unknown (HELO mail.codesourcery.com) (65.74.133.9) by sourceware.org with SMTP; 10 Dec 2004 17:26:46 -0000 Received: (qmail 18580 invoked from network); 10 Dec 2004 17:26:45 -0000 Received: from localhost (HELO wren.home) (paul@127.0.0.1) by mail.codesourcery.com with SMTP; 10 Dec 2004 17:26:45 -0000 From: Paul Brook Organization: CodeSourcery To: gcc@gcc.gnu.org Subject: Re: Unomitted frame pointers Date: Fri, 10 Dec 2004 17:26:00 -0000 User-Agent: KMail/1.7.1 Cc: "Thomas R. Truscott" , Andreas Schwab , Dave Korn , 'jlh' References: <200412101654.iBAGssbs010940@meenie.cs.duke.edu> In-Reply-To: <200412101654.iBAGssbs010940@meenie.cs.duke.edu> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200412101726.33264.paul@codesourcery.com> X-SW-Source: 2004-12/txt/msg00374.txt.bz2 On Friday 10 December 2004 16:54, Thomas R. Truscott wrote: > P.S. here is another thing gcc misses: > > memcpy("hi", p, 2); /* "cannot modify string literal" */ Works for me: paul@wren:~$ gcc -Wwrite-strings test.c test.c: In function 'main': test.c:9: warning: passing argument 1 of 'memcpy' discards qualifiers from pointer target type Paul