This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/10573: empty destructor not optimized away with 2 levels of inheritance and member with explicit destructor
- From: bangerth at dealii dot org
- To: darin at netscape dot com, dbaron at dbaron dot org, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org
- Date: 1 May 2003 00:19:58 -0000
- Subject: Re: c++/10573: empty destructor not optimized away with 2 levels of inheritance and member with explicit destructor
- Reply-to: bangerth at dealii dot org, darin at netscape dot com, dbaron at dbaron dot org, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, gcc-gnats at gcc dot gnu dot org
Synopsis: empty destructor not optimized away with 2 levels of inheritance and member with explicit destructor
State-Changed-From-To: open->closed
State-Changed-By: bangerth
State-Changed-When: Thu May 1 00:19:57 2003
State-Changed-Why:
Confirmed, but already fixed. 3.3 gives this code:
pushl %ebp
xorl %eax, %eax
movl %esp, %ebp
subl $24, %esp
andl $-16, %esp
movl %ebp, %esp
popl %ebp
That's still silly, but at least better.
Thanks anyway for the report. Let us know if you find any
problems with gcc3.3 along the same lines.
Wolfgang
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=10573