This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]