From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15532 invoked by alias); 24 Oct 2008 10:58:08 -0000 Received: (qmail 15194 invoked by alias); 24 Oct 2008 10:56:40 -0000 Date: Fri, 24 Oct 2008 10:58:00 -0000 Message-ID: <20081024105640.15193.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug debug/33429] debug info for class2 in g++.dg/other/unused1.C requires -femit-class-debug-always In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "dodji at seketeli dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2008-10/txt/msg01583.txt.bz2 ------- Comment #16 from dodji at seketeli dot org 2008-10-24 10:56 ------- Subject: Re: debug info for class2 in g++.dg/other/unused1.C requires -femit-class-debug-always jason at redhat dot com a écrit : > Could you (Dodji) try building libstdc++ with -femit-class-debug-always, > and see how much it affects the size of the library? So, I built libstdc++, nemiver, mozilla and openoffice with and without the -femit-class-debug-always. I both cases, I did build those programs with -g, obviously. Below are the results of the measurements I did. The debug-info size is actually the total size of the elf sections which names are .debug*, summed up across all the binaries of a given software. For a point of comparison, I did also measure the size of .text+data+bss segment for both cases. I hope this helps. Dodji. =~= Nemiver ======== [compact] debug-info: 43686650 text+data+bss: 13403553 [emit-class-debug-always] debug-info: 61978858 text+data+bss: 13403793 % increase of debug info size: 42% libstdc++ ========= [compact] debug-info: 6474724 text+data+bss: 1282176 [emit-class-debug-always] debug-info: 6998035 text+data+bss: 1282176 % increase of debug info size: 8% Mozilla ======== [compact] debug-info: 882264540 text+data+bss: 60055643 [emit-class-debug-always] debug-info: 975240699 text+data+bss: 60055739 % increase debug info size: 10,5% OpenOffice ========== [compact] debug-info: 961663753 text+data+bss: 442286732 [emit-class-debug-always] debug-info: 1010668556 text+data+bss: 442568161 % increase of debug info size: 5% =~= -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33429