This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
optimization/5391: gcc eats all memory @ >= -O
- From: ritzert at t-online dot de
- To: gcc-gnats at gcc dot gnu dot org
- Date: 15 Jan 2002 19:10:04 -0000
- Subject: optimization/5391: gcc eats all memory @ >= -O
- Reply-to: ritzert at t-online dot de
>Number: 5391
>Category: optimization
>Synopsis: gcc eats all memory @ >= -O
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Jan 15 11:16:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator: ritzert@t-online.de
>Release: gcc version 3.1 20020115 (experimental)
>Organization:
>Environment:
Linux 2.4.16, Athlon, i686-pc-linux-gnu
>Description:
When compiling the attached file with -O the cc1 process eats all memory (512MB RAM+1GB swap) until it it killed by the kernel.
When compiling with -da it's connect.c.03.jump that grows obviously without limit.
This does not happen with gcc version 3.1 20020113 (experimental) on hppa1.1-hp-hpux11.00.
>How-To-Repeat:
gcc -c -O connect.c
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: text/x-csrc; name="connect.c"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="connect.c"
ZXh0ZXJuIHZvaWQgZm9vICgpOwoKaW50CmJhciAoKQp7CiAgICBpbnQgYSA9IDAsIGIgPSAwOwoK
ICAgIHdoaWxlICghYSAmJiAhYikKICAgIHsKICAgICAgICBpZiAoYikKICAgICAgICB7CiAgICAg
ICAgICAgIGZvbyAoKTsKICAgICAgICB9CiAgICB9Cn0KCg==