public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/15320] New: Excessive memory consumption
@ 2004-05-06 15:29 dmartin at cliftonlabs dot com
  2004-05-06 15:33 ` [Bug c++/15320] " pinskia at gcc dot gnu dot org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: dmartin at cliftonlabs dot com @ 2004-05-06 15:29 UTC (permalink / raw)
  To: gcc-bugs

I work on an LGPL VHDL front-end and code generator called savant.  It is
implemented in C++.  We've been using g++-3.3 as our primary compiler for
the last few months.  With the annoucement of version 3.4 I have installed
g++-3.4 to experiment with.  (I run Debian Gnu/Linux, and I compiled the
experimental packages on my "woody" box.)  Overall I have found it to be
faster, more strict, and other good things so I was planning on moving to
it.

On one of our branches I noticed a problem.  Several files that compile
using "normal" amounts of memory - not in excess of 400M of virtual memory
- require more than 2G of virtual memory to compile with g++ 3.4.  These
source files do include a large and complex class heirarchy - one of the
classes is a factory for example, so it #includes a large number of files.
But 2G seems indicative of a problem.

-- 
           Summary: Excessive memory consumption
           Product: gcc
           Version: 3.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: dmartin at cliftonlabs dot com
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15320


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug c++/15320] Excessive memory consumption
  2004-05-06 15:29 [Bug c++/15320] New: Excessive memory consumption dmartin at cliftonlabs dot com
@ 2004-05-06 15:33 ` pinskia at gcc dot gnu dot org
  2004-05-06 15:43 ` dmartin at cliftonlabs dot com
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-05-06 15:33 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-05-06 15:33 -------
Can you provide the preprocessed source?

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15320


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug c++/15320] Excessive memory consumption
  2004-05-06 15:29 [Bug c++/15320] New: Excessive memory consumption dmartin at cliftonlabs dot com
  2004-05-06 15:33 ` [Bug c++/15320] " pinskia at gcc dot gnu dot org
@ 2004-05-06 15:43 ` dmartin at cliftonlabs dot com
  2004-05-06 16:36 ` pinskia at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: dmartin at cliftonlabs dot com @ 2004-05-06 15:43 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From dmartin at cliftonlabs dot com  2004-05-06 15:43 -------
Created an attachment (id=6239)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=6239&action=view)
(One) file causing excessive memory consumption reported in 15320

Here is the command line used for compilation:
g++-3.4 -DHAVE_CONFIG_H -I. -I/work/dmartin/oss/savant.andy/src/analyzer
-I../../src -I/work/dmartin/oss/savant.andy/src
-I/work/dmartin/oss/savant.andy/src/aire
-I/work/dmartin/oss/savant.andy/src/aire/iir/visitor
-I/work/dmartin/oss/savant.andy/src/aire/iir/IIR
-I/work/dmartin/oss/savant.andy/src/aire/iir/IIRBase
-I/work/dmartin/oss/savant.andy/src/aire/iir/IIRScram
-I/work/dmartin/oss/savant.andy/src/visitors/module
-I/work/dmartin/oss/savant.andy/src/util
-I/work/dmartin/oss/savant.andy/src/analyzer -DDEVELOPER_ASSERTIONS
-DGENERATE_CC_REFERENCES -I/work/dmartin/local/3.4/include -I/usr/include/pccts
-I/work/dmartin/local/3.4/include -g -Wall -ggdb3 -ggdb3 -MT scram.lo -MD -MP
-MF .deps/scram.Tpo -c /work/dmartin/oss/savant.andy/src/analyzer/scram.cc 
-fPIC -DPIC


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15320


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug c++/15320] Excessive memory consumption
  2004-05-06 15:29 [Bug c++/15320] New: Excessive memory consumption dmartin at cliftonlabs dot com
  2004-05-06 15:33 ` [Bug c++/15320] " pinskia at gcc dot gnu dot org
  2004-05-06 15:43 ` dmartin at cliftonlabs dot com
@ 2004-05-06 16:36 ` pinskia at gcc dot gnu dot org
  2004-05-15 18:10 ` [Bug c++/15320] [3.4/3.5? Regression] " giovannibajo at libero dot it
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-05-06 16:36 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-05-06 16:36 -------
I can confirm that this takes a huge amount of memory at -O0, with -funit-at-a-time, it seems to take 
less memory but still big.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |memory-hog


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15320


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug c++/15320] [3.4/3.5? Regression] Excessive memory consumption
  2004-05-06 15:29 [Bug c++/15320] New: Excessive memory consumption dmartin at cliftonlabs dot com
                   ` (2 preceding siblings ...)
  2004-05-06 16:36 ` pinskia at gcc dot gnu dot org
@ 2004-05-15 18:10 ` giovannibajo at libero dot it
  2004-07-02 16:44 ` mmitchel at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: giovannibajo at libero dot it @ 2004-05-15 18:10 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From giovannibajo at libero dot it  2004-05-15 00:24 -------
Confirmed, a regression from 3.3.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
      Known to fail|                            |3.4.0
      Known to work|                            |3.3.3
   Last reconfirmed|0000-00-00 00:00:00         |2004-05-15 00:24:42
               date|                            |
            Summary|Excessive memory consumption|[3.4/3.5? Regression]
                   |                            |Excessive memory consumption
   Target Milestone|---                         |3.4.1


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15320


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug c++/15320] [3.4/3.5? Regression] Excessive memory consumption
  2004-05-06 15:29 [Bug c++/15320] New: Excessive memory consumption dmartin at cliftonlabs dot com
                   ` (3 preceding siblings ...)
  2004-05-15 18:10 ` [Bug c++/15320] [3.4/3.5? Regression] " giovannibajo at libero dot it
@ 2004-07-02 16:44 ` mmitchel at gcc dot gnu dot org
  2004-08-18 18:47 ` mmitchel at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2004-07-02 16:44 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|3.4.1                       |3.4.2


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15320


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug c++/15320] [3.4/3.5? Regression] Excessive memory consumption
  2004-05-06 15:29 [Bug c++/15320] New: Excessive memory consumption dmartin at cliftonlabs dot com
                   ` (4 preceding siblings ...)
  2004-07-02 16:44 ` mmitchel at gcc dot gnu dot org
@ 2004-08-18 18:47 ` mmitchel at gcc dot gnu dot org
  2004-08-18 20:55 ` dmartin at cliftonlabs dot com
  2004-08-19 21:08 ` mmitchel at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2004-08-18 18:47 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From mmitchel at gcc dot gnu dot org  2004-08-18 18:47 -------
For me, this seems to take about 527MB on an i686-pc-linux-gnu system using the
tip of the 3.4 branch in CVS.  Is this the file that was taking 2GB?

(I did fix a major memory overuse problem for complex class hierarchies recently.)

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15320


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug c++/15320] [3.4/3.5? Regression] Excessive memory consumption
  2004-05-06 15:29 [Bug c++/15320] New: Excessive memory consumption dmartin at cliftonlabs dot com
                   ` (5 preceding siblings ...)
  2004-08-18 18:47 ` mmitchel at gcc dot gnu dot org
@ 2004-08-18 20:55 ` dmartin at cliftonlabs dot com
  2004-08-19 21:08 ` mmitchel at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: dmartin at cliftonlabs dot com @ 2004-08-18 20:55 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From dmartin at cliftonlabs dot com  2004-08-18 20:55 -------
Subject: Re:  [3.4/3.5? Regression] Excessive memory consumption

On Wed, Aug 18, 2004 at 06:47:42PM -0000, mmitchel at gcc dot gnu dot org wrote:
> 
> ------- Additional Comments From mmitchel at gcc dot gnu dot org  2004-08-18 18:47 -------
> For me, this seems to take about 527MB on an i686-pc-linux-gnu system using the
> tip of the 3.4 branch in CVS.  Is this the file that was taking 2GB?
> 
> (I did fix a major memory overuse problem for complex class hierarchies recently.)

Yes, this is the file that was taking that much.  Will this be a 3.4.2 fix
or was it in 3.4.1?

Thanks!
	Dale


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15320


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug c++/15320] [3.4/3.5? Regression] Excessive memory consumption
  2004-05-06 15:29 [Bug c++/15320] New: Excessive memory consumption dmartin at cliftonlabs dot com
                   ` (6 preceding siblings ...)
  2004-08-18 20:55 ` dmartin at cliftonlabs dot com
@ 2004-08-19 21:08 ` mmitchel at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2004-08-19 21:08 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From mmitchel at gcc dot gnu dot org  2004-08-19 21:08 -------
This will be in 3.4.2.

The mainline is doing better: 453 MB.

I've closed this PR.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15320


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2004-08-19 21:08 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-05-06 15:29 [Bug c++/15320] New: Excessive memory consumption dmartin at cliftonlabs dot com
2004-05-06 15:33 ` [Bug c++/15320] " pinskia at gcc dot gnu dot org
2004-05-06 15:43 ` dmartin at cliftonlabs dot com
2004-05-06 16:36 ` pinskia at gcc dot gnu dot org
2004-05-15 18:10 ` [Bug c++/15320] [3.4/3.5? Regression] " giovannibajo at libero dot it
2004-07-02 16:44 ` mmitchel at gcc dot gnu dot org
2004-08-18 18:47 ` mmitchel at gcc dot gnu dot org
2004-08-18 20:55 ` dmartin at cliftonlabs dot com
2004-08-19 21:08 ` mmitchel at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).