gcc -O3 -Wall test.c
can gernerate warning on gcc-4.2.1 on x86.
but no warning on gcc-4.2.1/x64. even -m32 or -m64.

#include <stdio.h>
#include <string.h>
#include <stdlib.h>
int main(int argc, char **argv)
{
        char x[20];

        memset(x,19,0);

        return 0;
}


-- 
           Summary: memset warning
           Product: gcc
           Version: 4.2.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: cnstar9988 at gmail dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32887

Reply via email to