Bug 164739

Summary: openoffice compile failure due to compiler memory usage
Product: [Fedora] Fedora Reporter: David Woodhouse <dwmw2>
Component: gccAssignee: Jakub Jelinek <jakub>
Status: CLOSED WONTFIX QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: rawhide   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-09-27 21:33:48 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
offending C++ file. none

Description David Woodhouse 2005-07-31 10:25:31 UTC
Compiling the attached file fails with '-fno-enforce-eh-specs -O2', even with
gigabytes of RAM and swap. After a few hours it says:

cc1plus: out of memory allocating 1643995136 bytes after a total of 94982144 bytes

It used to be fine with gcc 3.4.

Comment 1 David Woodhouse 2005-07-31 10:25:32 UTC
Created attachment 117321 [details]
offending C++ file.

Comment 2 Jakub Jelinek 2005-08-18 13:54:54 UTC
My guess is this is about inlining heuristics, with -O2 -fno-enforce-eh-specs
it creates a really huge function (almost 60000 basic blocks) and that obviously
then takes a lot of time and memory to process.  The inling heuristics have been
changed again in 4.1 (it is tweaked between all GCC releases).
If you use -Os -fno-enforce-eh-specs, it compiles almost instantly.

Comment 3 Jakub Jelinek 2005-09-27 21:33:48 UTC
I don't think it is a good idea to mess with GCC 4.0 inlining heuristics at this
point.  FC5 will very likely include GCC 4.1.