This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

optimization/5391: gcc eats all memory @ >= -O



>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==


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]