public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* c/8559: Tru64 gcc -O3 hogs memory on Perl 5.8.0's toke.c
@ 2002-11-19 18:32 jhi
0 siblings, 0 replies; only message in thread
From: jhi @ 2002-11-19 18:32 UTC (permalink / raw)
To: gcc-gnats
>Number: 8559
>Category: c
>Synopsis: Tru64 gcc -O3 hogs memory on Perl 5.8.0's toke.c
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Nov 13 07:26:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator: Jarkko Hietaniemi
>Release: gcc version 3.2.1 20020922 (prerelease)
>Organization:
>Environment:
HP/Compaq Tru64 4.0F/5.1A
>Description:
The -O3 optimizer of gcc 3.2.1-to-be consumes quite
a bit of memory in Tru64 when optimizing the toke.c
of Perl 5.8.0. It seems that process datasize limit
64 megabytes as the per-process datasize resource limit
is not enough with -O3 (which is the default
optimization level for gcc with Perl 5.8.0).
>How-To-Repeat:
The Perl 5.8.0 source code is available at
http://www.cpan.org/src/perl-5.8.0.tar.gz
It unpacks to directory perl-5.8.0, cd there,
configure with "sh Configure -des -Dcc=gcc".
The process datasize can be viewed and changed
(when using tcsh) by "limit" and "limit datasize 64M".
This is what happens with process datasize set to
64 megabytes:
$ make toke.o
`sh cflags "optimize='-O3'" toke.o` toke.c
CCCMD = gcc -DPERL_CORE -c -ansi -fno-strict-aliasing -DLANGUAGE_C -O3 -Wall
cc1: Cannot allocate 9139200 bytes after allocating 62192032 bytes
make: *** [toke.o] Error 1
128 MB as the process datasize seems to be
enough to use -O3 for optimizing the toke.o.
Another workaround is that if one drops the
optimization to -O2, gcc does not run out of
the 64 MB limit. (This can be achieved by e.g.
"sh Configure -des -Dcc=gcc -Doptimize=-O2.)
Tested to fail both in Tru64 releases 4.0F and 5.1A,
with the same gcc 3.2.1 prerelease.
>Fix:
See How-To-Repeat for workarounds.
>Release-Note:
>Audit-Trail:
>Unformatted:
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-11-13 15:26 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-11-19 18:32 c/8559: Tru64 gcc -O3 hogs memory on Perl 5.8.0's toke.c jhi
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).