public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/12780] New: [3.3.2 regression] Huge memory use while compiling a C file
@ 2003-10-26 23:08 casteyde dot christian at free dot fr
  2003-10-26 23:09 ` [Bug c/12780] " casteyde dot christian at free dot fr
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: casteyde dot christian at free dot fr @ 2003-10-26 23:08 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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

           Summary: [3.3.2 regression] Huge memory use while compiling a C
                    file
           Product: gcc
           Version: 3.3.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: casteyde dot christian at free dot fr
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i686-pc-gnu-linux
  GCC host triplet: i686-pc-gnu-linux
GCC target triplet: i686-pc-gnu-linux

While compiling Cinelerra, the file "quicktime/cmodel_default.c" 
makes gcc eats nearly 512Mo RAM. This doesn't happen with gcc 3.3.1 
(but cinelerra builds finally, whereas it didn't build with gcc 3.3.1). 
 
This doesn't happen without optimization flags used by the build 
system either. Preprocessed source and faulty flags appended. 
 
To reproduice : compile with 
 
gcc -c `cat flags` az.c


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

* [Bug c/12780] [3.3.2 regression] Huge memory use while compiling a C file
  2003-10-26 23:08 [Bug c/12780] New: [3.3.2 regression] Huge memory use while compiling a C file casteyde dot christian at free dot fr
@ 2003-10-26 23:09 ` casteyde dot christian at free dot fr
  2003-10-26 23:23 ` casteyde dot christian at free dot fr
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: casteyde dot christian at free dot fr @ 2003-10-26 23:09 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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



------- Additional Comments From casteyde dot christian at free dot fr  2003-10-26 23:08 -------
Created an attachment (id=5002)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=5002&action=view)
preprocessed source file


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

* [Bug c/12780] [3.3.2 regression] Huge memory use while compiling a C file
  2003-10-26 23:08 [Bug c/12780] New: [3.3.2 regression] Huge memory use while compiling a C file casteyde dot christian at free dot fr
  2003-10-26 23:09 ` [Bug c/12780] " casteyde dot christian at free dot fr
@ 2003-10-26 23:23 ` casteyde dot christian at free dot fr
  2003-11-14 17:03 ` [Bug c/12780] " dhazeghi at yahoo dot com
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: casteyde dot christian at free dot fr @ 2003-10-26 23:23 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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



------- Additional Comments From casteyde dot christian at free dot fr  2003-10-26 23:09 -------
Created an attachment (id=5003)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=5003&action=view)
Compile flags to use to trigger the bug


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

* [Bug c/12780] Huge memory use while compiling a C file
  2003-10-26 23:08 [Bug c/12780] New: [3.3.2 regression] Huge memory use while compiling a C file casteyde dot christian at free dot fr
  2003-10-26 23:09 ` [Bug c/12780] " casteyde dot christian at free dot fr
  2003-10-26 23:23 ` casteyde dot christian at free dot fr
@ 2003-11-14 17:03 ` dhazeghi at yahoo dot com
  2003-11-18  9:09 ` [Bug optimization/12780] " pinskia at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: dhazeghi at yahoo dot com @ 2003-11-14 17:03 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From dhazeghi at yahoo dot com  2003-11-14 17:03 -------
I fail to see any regression from 3.3.1 to current 3.3 branch (20031107). It looks like the loop 
optimizer is taking the biggest chunk of time, but still, under 1/3 of total compile time. Using 
flags -O3 -funroll-all-loops, the whole things takes around 120 seconds, 500 megs. With only -
O3, it gets aways with 70 seconds and 400 megs. On mainline it's even worse: 205 seconds for 
only -O3. I'll see if I can shrink the code a bit for a better testcase...

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[3.3.2 regression] Huge     |Huge memory use while
                   |memory use while compiling a|compiling a C file
                   |C file                      |


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


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

* [Bug optimization/12780] Huge memory use while compiling a C file
  2003-10-26 23:08 [Bug c/12780] New: [3.3.2 regression] Huge memory use while compiling a C file casteyde dot christian at free dot fr
                   ` (2 preceding siblings ...)
  2003-11-14 17:03 ` [Bug c/12780] " dhazeghi at yahoo dot com
@ 2003-11-18  9:09 ` pinskia at gcc dot gnu dot org
  2003-12-27 23:23 ` [Bug optimization/12780] [3.3/3.4 Regression] " pinskia at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-11-18  9:09 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|c                           |optimization
           Keywords|                            |compile-time-hog, memory-hog


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


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

* [Bug optimization/12780] [3.3/3.4 Regression] Huge memory use while compiling a C file
  2003-10-26 23:08 [Bug c/12780] New: [3.3.2 regression] Huge memory use while compiling a C file casteyde dot christian at free dot fr
                   ` (3 preceding siblings ...)
  2003-11-18  9:09 ` [Bug optimization/12780] " pinskia at gcc dot gnu dot org
@ 2003-12-27 23:23 ` pinskia at gcc dot gnu dot org
  2003-12-28 14:29 ` steven at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-12-27 23:23 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2003-12-27 20:55 -------
This is a regression.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Huge memory use while       |[3.3/3.4 Regression] Huge
                   |compiling a C file          |memory use while compiling a
                   |                            |C file
   Target Milestone|---                         |3.4.0


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


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

* [Bug optimization/12780] [3.3/3.4 Regression] Huge memory use while compiling a C file
  2003-10-26 23:08 [Bug c/12780] New: [3.3.2 regression] Huge memory use while compiling a C file casteyde dot christian at free dot fr
                   ` (4 preceding siblings ...)
  2003-12-27 23:23 ` [Bug optimization/12780] [3.3/3.4 Regression] " pinskia at gcc dot gnu dot org
@ 2003-12-28 14:29 ` steven at gcc dot gnu dot org
  2003-12-28 16:13 ` steven at gcc dot gnu dot org
  2004-01-02  4:08 ` pinskia at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: steven at gcc dot gnu dot org @ 2003-12-28 14:29 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From steven at gcc dot gnu dot org  2003-12-28 11:34 -------
Confirmed: 
 
 (...) 
 transfer_YUV422_to_YUV420P 
 transfer_YUV422_to_YUV422 
 cmodel_default 
 
Analyzing compilation unit 
Performing intraprocedural optimizations 
Assembling functions: 
 cmodel_default 
 {Main zone GC 225104k -> 501k} 
cc1: out of memory allocating 33292 bytes after a total of 368948640 bytes 
 

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2003-12-28 11:34:23
               date|                            |


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


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

* [Bug optimization/12780] [3.3/3.4 Regression] Huge memory use while compiling a C file
  2003-10-26 23:08 [Bug c/12780] New: [3.3.2 regression] Huge memory use while compiling a C file casteyde dot christian at free dot fr
                   ` (5 preceding siblings ...)
  2003-12-28 14:29 ` steven at gcc dot gnu dot org
@ 2003-12-28 16:13 ` steven at gcc dot gnu dot org
  2004-01-02  4:08 ` pinskia at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: steven at gcc dot gnu dot org @ 2003-12-28 16:13 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From steven at gcc dot gnu dot org  2003-12-28 12:09 -------
This is a loop optimizer issue.  For me it already terminates with "-O2 
-funroll-all-loops -fno-unit-at-a-time".   

-- 


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


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

* [Bug optimization/12780] [3.3/3.4 Regression] Huge memory use while compiling a C file
  2003-10-26 23:08 [Bug c/12780] New: [3.3.2 regression] Huge memory use while compiling a C file casteyde dot christian at free dot fr
                   ` (6 preceding siblings ...)
  2003-12-28 16:13 ` steven at gcc dot gnu dot org
@ 2004-01-02  4:08 ` pinskia at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-01-02  4:08 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-01-02 04:08 -------
This is a dup of bug 12440.

*** This bug has been marked as a duplicate of 12440 ***

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


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


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

end of thread, other threads:[~2004-01-02  4:08 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-10-26 23:08 [Bug c/12780] New: [3.3.2 regression] Huge memory use while compiling a C file casteyde dot christian at free dot fr
2003-10-26 23:09 ` [Bug c/12780] " casteyde dot christian at free dot fr
2003-10-26 23:23 ` casteyde dot christian at free dot fr
2003-11-14 17:03 ` [Bug c/12780] " dhazeghi at yahoo dot com
2003-11-18  9:09 ` [Bug optimization/12780] " pinskia at gcc dot gnu dot org
2003-12-27 23:23 ` [Bug optimization/12780] [3.3/3.4 Regression] " pinskia at gcc dot gnu dot org
2003-12-28 14:29 ` steven at gcc dot gnu dot org
2003-12-28 16:13 ` steven at gcc dot gnu dot org
2004-01-02  4:08 ` pinskia 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).