]> git.ipfire.org Git - thirdparty/gcc.git/commit
[Ada] Do not create large objects for indefinite protected types
authorEric Botcazou <ebotcazou@adacore.com>
Mon, 27 Jun 2022 13:26:34 +0000 (15:26 +0200)
committerPierre-Marie de Rodat <derodat@adacore.com>
Tue, 12 Jul 2022 12:24:13 +0000 (12:24 +0000)
commit570f43b823ad9013aab5abd5868b6554f4cf019c
treec810a6ef7c98545e20a9e1a41f701b811bb1e8d2
parent70c3959a8af920616878e587e64dbd01620b87db
[Ada] Do not create large objects for indefinite protected types

This plugs a small loophole in the Needs_Secondary_Stack predicate for
some protected types and record types containing protected components.

gcc/ada/

* sem_util.adb (Caller_Known_Size_Record): Make entry assertion
more robust and add guard for null argument.  For protected
types, invoke Caller_Known_Size_Record on
Corresponding_Record_Type.
(Needs_Secondary_Stack): Likewise.
gcc/ada/sem_util.adb