public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug modula2/112923] New: gm2 runs out of memory
@ 2023-12-08 15:13 gaius at gcc dot gnu.org
2024-01-05 13:32 ` [Bug modula2/112923] " gaius at gcc dot gnu.org
2024-01-05 13:49 ` gaius at gcc dot gnu.org
0 siblings, 2 replies; 3+ messages in thread
From: gaius at gcc dot gnu.org @ 2023-12-08 15:13 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112923
Bug ID: 112923
Summary: gm2 runs out of memory
Product: gcc
Version: 14.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: modula2
Assignee: gaius at gcc dot gnu.org
Reporter: gaius at gcc dot gnu.org
Target Milestone: ---
Forwarded from the gm2 mailing list:
When building:
https://github.com/k-john-gough/gpmclr/tree/master/GPMCLR/source/gpmake
Gm2 runs out of memory with one particular module, namely TermSymbolsIO:
$ gm2 -c -fiso -I../libgm2gpm -I. TermSymbolsIO.mod
cc1gm2: out of memory allocating 2097152 bytes after a total of
33873920 bytes
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug modula2/112923] gm2 runs out of memory
2023-12-08 15:13 [Bug modula2/112923] New: gm2 runs out of memory gaius at gcc dot gnu.org
@ 2024-01-05 13:32 ` gaius at gcc dot gnu.org
2024-01-05 13:49 ` gaius at gcc dot gnu.org
1 sibling, 0 replies; 3+ messages in thread
From: gaius at gcc dot gnu.org @ 2024-01-05 13:32 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112923
Gaius Mulley <gaius at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed| |2024-01-05
Ever confirmed|0 |1
Status|UNCONFIRMED |ASSIGNED
--- Comment #1 from Gaius Mulley <gaius at gcc dot gnu.org> ---
Indeed - I'm writing a M2Diagnostic module to collect stats about memory and
time consumption - which hopefully will identify the modules consuming too much
resource.
In this particular case it occurs when building an array constant with
characters - I suspect too many temporary constants are being preserved from
the garbage collector.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug modula2/112923] gm2 runs out of memory
2023-12-08 15:13 [Bug modula2/112923] New: gm2 runs out of memory gaius at gcc dot gnu.org
2024-01-05 13:32 ` [Bug modula2/112923] " gaius at gcc dot gnu.org
@ 2024-01-05 13:49 ` gaius at gcc dot gnu.org
1 sibling, 0 replies; 3+ messages in thread
From: gaius at gcc dot gnu.org @ 2024-01-05 13:49 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112923
--- Comment #2 from Gaius Mulley <gaius at gcc dot gnu.org> ---
Created attachment 56992
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=56992&action=edit
Tiny example code showing the problem
The attached source will compile but consumes vast amounts of ram.
$ time gm2 -g -c Blowup.mod
takes 43 secs on a amd64 3.6 GHz box and about 6GB ram. The M2Diagnostic
module will generate resource data and will be called when -fmem-report or
-ftime-report is issued.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-01-05 13:49 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-12-08 15:13 [Bug modula2/112923] New: gm2 runs out of memory gaius at gcc dot gnu.org
2024-01-05 13:32 ` [Bug modula2/112923] " gaius at gcc dot gnu.org
2024-01-05 13:49 ` gaius at gcc dot gnu.org
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).