This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/31094] Support annotating function parameters as read-only and/or non-escaping
- From: "manu at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 10 Jan 2008 15:40:00 -0000
- Subject: [Bug middle-end/31094] Support annotating function parameters as read-only and/or non-escaping
- References: <bug-31094-13404@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from manu at gcc dot gnu dot org 2008-01-10 15:40 -------
Actually, that is for Wuninitialized. For a missed optimisation:
#include <stdio.h>
char foo()
{
char str[] = "Hola";
char c;
printf("%s", str);
c = str[0];
return c;
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31094