This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Unomitted frame pointers
- From: kaih at khms dot westfalen dot de (Kai Henningsen)
- To: gcc at gcc dot gnu dot org
- Date: 11 Dec 2004 11:19:00 +0200
- Subject: Re: Unomitted frame pointers
- Organization: Organisation? Me?! Are you kidding?
- References: <200412101726.33264.paul@codesourcery.com>
paul@codesourcery.com (Paul Brook) wrote on 10.12.04 in <200412101726.33264.paul@codesourcery.com>:
> 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
Would it be hard to say what qualifier(s) here? I'm sure that would make
many programmers go "duh!" significantly faster in those moments.
MfG Kai