[Bug middle-end/32887] memset warning

2007-07-26 Thread cnstar9988 at gmail dot com
--- Comment #12 from cnstar9988 at gmail dot com 2007-07-26 08:20 --- I want the warning. but why the warning is glibc's bug? because memset(x,19,0), is buggy code. I need the warning. -- cnstar9988 at gmail dot com changed: What|Removed |Added --

[Bug middle-end/32887] memset warning

2007-07-26 Thread cnstar9988 at gmail dot com
--- Comment #11 from cnstar9988 at gmail dot com 2007-07-26 08:13 --- Created an attachment (id=13981) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13981&action=view) (64bit)gcc -m32 -O3 -Wall test.c -save-temps (64bit)gcc -m32 -O3 -Wall test.c -save-temps In this platform, it'

[Bug middle-end/32887] memset warning

2007-07-26 Thread pinskia at gcc dot gnu dot org
--- Comment #10 from pinskia at gcc dot gnu dot org 2007-07-26 08:10 --- This is a bug in glibc version you are using, the warning is comming from the expansion of a #define. Looking at the expanded version, I see that glibc is violating C aliasing rules anyways so the code might not

[Bug middle-end/32887] memset warning

2007-07-26 Thread cnstar9988 at gmail dot com
--- Comment #9 from cnstar9988 at gmail dot com 2007-07-26 08:02 --- Created an attachment (id=13980) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13980&action=view) file gcc -m32 -O3 -Wall test.c -save-temps -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32887

[Bug middle-end/32887] memset warning

2007-07-26 Thread pinskia at gcc dot gnu dot org
--- Comment #8 from pinskia at gcc dot gnu dot org 2007-07-26 07:50 --- It might be, can you attach the preprocessed source? Which you can find by adding -save-temps and it will be either end in .i or .ii. The difference in glibc versions could be cause different warnings to show up in

[Bug middle-end/32887] memset warning

2007-07-26 Thread cnstar9988 at gmail dot com
--- Comment #7 from cnstar9988 at gmail dot com 2007-07-26 07:45 --- test.c:14: warning: statement with no effect So I think it is gcc warning -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32887

[Bug middle-end/32887] memset warning

2007-07-26 Thread pinskia at gcc dot gnu dot org
--- Comment #6 from pinskia at gcc dot gnu dot org 2007-07-26 07:42 --- > can gernerate warning on gcc-4.2.1 on x86 What is the warning? Because I am not seeing it. It might be that glibc is doing the warning. Can you paste the warning you are getting? -- http://gcc.gnu.org/bugzil

[Bug middle-end/32887] memset warning

2007-07-25 Thread cnstar9988 at gmail dot com
--- Comment #5 from cnstar9988 at gmail dot com 2007-07-26 02:29 --- Why the behavior on both platform is not the same? same code, same release of GCC. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32887

[Bug middle-end/32887] memset warning

2007-07-25 Thread cnstar9988 at gmail dot com
--- Comment #4 from cnstar9988 at gmail dot com 2007-07-25 09:13 --- I download GCC from ftp.gnu.org, 4.2.1 release. 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. I only think the behavior on both platform is the sam

[Bug middle-end/32887] memset warning

2007-07-25 Thread pinskia at gcc dot gnu dot org
--- Comment #3 from pinskia at gcc dot gnu dot org 2007-07-25 09:09 --- (In reply to comment #2) > why gcc show warnings on x86. I am saying this does not warn in a normal FSF GCC release. So what warning do you expect? A warning for a zero sized memset? Well the FSF GCC does not war

[Bug middle-end/32887] memset warning

2007-07-24 Thread cnstar9988 at gmail dot com
--- Comment #2 from cnstar9988 at gmail dot com 2007-07-25 02:49 --- why gcc show warnings on x86. not show warnings on x64? Bug? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32887

[Bug middle-end/32887] memset warning

2007-07-24 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2007-07-25 02:43 --- What is the warning that you are expecting? We don't warn at all for memset with a zero size. -- pinskia at gcc dot gnu dot org changed: What|Removed |Added --