very large memory usage when compiling with optimizations
Bug #187391 reported by
Jean-Paul Calderone
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gcc-4.2 (Ubuntu) |
Won't Fix
|
Medium
|
Unassigned |
Bug Description
Binary package hint: gcc-4.2
release of Ubuntu:
DISTRIB_ID=Ubuntu
DISTRIB_
DISTRIB_
DISTRIB_
version of the package:
Version: 4:4.2.2-1ubuntu2
what happened:
Compiling the source file which (hopefully) will attach to this report uses a large amount of memory with this version of gcc, whereas this did not use to be the case. "large amount" is roughly a gigabyte. Previously it used about 100 megabytes. This only happens when -O1 or higher is specified for compilation.
To post a comment you must log in.
The gcc command line which produces the behavior is this:
gcc -c -O1 bugreport.c -o bugreport.o
The only unusual external requirement is Python.h from python2.4. It should be no problem to use the Python 2.5 version instead, just edit the #include.