]> git.ipfire.org Git - thirdparty/gcc.git/commit
ada: Cleanup calculation of task stacks
authorPiotr Trojanek <trojanek@adacore.com>
Wed, 10 Jan 2024 12:14:34 +0000 (13:14 +0100)
committerMarc Poulhiès <poulhies@adacore.com>
Tue, 7 May 2024 07:55:58 +0000 (09:55 +0200)
commitcf14e7c1db2f20d9dbcc8c3efdebe549ec5eec80
tree350e554e5f1e73dbdae5d66ce43bd07535b190c9
parent326f6a4e7400771893a482009c121fc77bc471fe
ada: Cleanup calculation of task stacks

Code cleanup; semantics is unaffected.

gcc/ada/

* exp_ch3.adb (Count_Default_Sized_Task_Stacks): Do not look for
tasks inside record discriminants; remove avoid repeated call to
Has_Task that happened for record components.
(Expand_N_Object_Declaration): Use high-level routine to detect
array types and subtypes; remove unused initial values.
gcc/ada/exp_ch3.adb