public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/32887]  New: memset warning
@ 2007-07-25  1:21 cnstar9988 at gmail dot com
  2007-07-25  2:43 ` [Bug middle-end/32887] " pinskia at gcc dot gnu dot org
                   ` (15 more replies)
  0 siblings, 16 replies; 18+ messages in thread
From: cnstar9988 at gmail dot com @ 2007-07-25  1:21 UTC (permalink / raw)
  To: gcc-bugs

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


^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2007-09-10 14:07 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-07-25  1:21 [Bug c/32887] New: memset warning cnstar9988 at gmail dot com
2007-07-25  2:43 ` [Bug middle-end/32887] " pinskia at gcc dot gnu dot org
2007-07-25  2:49 ` cnstar9988 at gmail dot com
2007-07-25  9:09 ` pinskia at gcc dot gnu dot org
2007-07-25  9:13 ` cnstar9988 at gmail dot com
2007-07-26  2:30 ` cnstar9988 at gmail dot com
2007-07-26  7:42 ` pinskia at gcc dot gnu dot org
2007-07-26  7:46 ` cnstar9988 at gmail dot com
2007-07-26  7:50 ` pinskia at gcc dot gnu dot org
2007-07-26  8:02 ` cnstar9988 at gmail dot com
2007-07-26  8:10 ` pinskia at gcc dot gnu dot org
2007-07-26  8:13 ` cnstar9988 at gmail dot com
2007-07-26  8:20 ` cnstar9988 at gmail dot com
2007-07-26 13:57 ` [Bug middle-end/32887] warning for memset with zero size manu at gcc dot gnu dot org
2007-07-26 16:51   ` Andrew Pinski
2007-07-26 16:51 ` pinskia at gmail dot com
2007-07-26 16:58 ` manu at gcc dot gnu dot org
2007-09-10 14:07 ` pinskia at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).