[Bug middle-end/29215] Unnecessary use of stack space

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Mon Sep 25 16:43:00 GMT 2006



------- 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



More information about the Gcc-bugs mailing list