This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/29215] Unnecessary use of stack space
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 25 Sep 2006 16:43:30 -0000
- Subject: [Bug middle-end/29215] Unnecessary use of stack space
- References: <bug-29215-13298@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #4 from pinskia at gcc dot gnu dot org 2006-09-25 16:43 -------
Second this is just a memcpy issue, short testcase:
#include <string.h>
char buf[21];
int main(void)
{
int a = 0xffffffff;
memcpy(buf, &a, 4);
buf[4] = '\0';
puts(buf);
return 0;
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29215