[Bug c++/33401] Unwanted memset in default constructor

kbateman at seicorp dot com gcc-bugzilla@gcc.gnu.org
Tue Sep 11 22:32:00 GMT 2007



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



More information about the Gcc-bugs mailing list