This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/33401] Unwanted memset in default constructor
- From: "kbateman at seicorp dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 11 Sep 2007 22:32:27 -0000
- Subject: [Bug c++/33401] Unwanted memset in default constructor
- References: <bug-33401-15085@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from kbateman at seicorp dot com 2007-09-11 22:32 -------
Sorry, that a.s is from a run without -O2. The memset call is still in the -O2
output, though.
a.s:
...
movl $65536, (%esp)
call _Znwj
movl %eax, %ebx
movl $65536, %edx
xorl %eax, %eax
movl %ebx, (%esp)
movl %edx, 8(%esp)
movl %eax, 4(%esp)
call memset
...
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33401