* [Ada] Failure to allocate on storage subpool
@ 2017-09-08 9:16 Arnaud Charlet
0 siblings, 0 replies; only message in thread
From: Arnaud Charlet @ 2017-09-08 9:16 UTC (permalink / raw)
To: gcc-patches; +Cc: Hristian Kirtchev
[-- Attachment #1: Type: text/plain, Size: 450 bytes --]
This patch modifies the processing of allocators to account for a case where
a simple allocation still requires a call to Allocate_Any_Controlled due to
subpool management. No small reproducer possible.
Tested on x86_64-pc-linux-gnu, committed on trunk
2017-09-08 Hristian Kirtchev <kirtchev@adacore.com>
* exp_ch4.adb (Expand_N_Allocator): Generate a
call to Allocate_Any_Controlled when the allocation does not
require any initialization.
[-- Attachment #2: difs --]
[-- Type: text/plain, Size: 479 bytes --]
Index: exp_ch4.adb
===================================================================
--- exp_ch4.adb (revision 251863)
+++ exp_ch4.adb (working copy)
@@ -4632,7 +4632,9 @@
-- No initialization required
else
- null;
+ Build_Allocate_Deallocate_Proc
+ (N => N,
+ Is_Allocate => True);
end if;
-- Case of initialization procedure present, must be called
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2017-09-08 9:16 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-09-08 9:16 [Ada] Failure to allocate on storage subpool Arnaud Charlet
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).