This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
c++/3187: gcc-3.0 prerelease lays down two copies of constructors
- To: gcc-gnats at gcc dot gnu dot org
- Subject: c++/3187: gcc-3.0 prerelease lays down two copies of constructors
- From: peter at empeg dot com
- Date: 14 Jun 2001 18:38:39 -0000
- Reply-To: peter at empeg dot com
>Number: 3187
>Category: c++
>Synopsis: gcc-3.0 prerelease lays down two copies of constructors
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: wrong-code
>Submitter-Id: net
>Arrival-Date: Thu Jun 14 11:46:02 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator: Peter Hartley
>Release: gcc version 3.0 20010614 (prerelease)
>Organization:
>Environment:
PC Linux host, ARM Linux cross-compiler
Configured with: ../gcc/configure --prefix=/home/peter --host=i686-linux --build=i686-linux --target=arm-cvs-linux --enable-languages=c,c++ --enable-static
>Description:
Two (sometimes three) identical copies of constructors and destructors are laid down. The linker doesn't fail this, but the binaries produced are 20% bigger (on our real-world example) than necessary.
>How-To-Repeat:
arm-cvs-linux-g++ -S aubergine.cpp -o aubergine2.s
The aubergine2.s file clearly contains two identical constructors and two identical destructors.
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: