]> git.ipfire.org Git - thirdparty/gcc.git/commit
ada: Fix ALI elaboration flags for ghost compilation units
authorPiotr Trojanek <trojanek@adacore.com>
Thu, 22 May 2025 14:46:17 +0000 (16:46 +0200)
committerMarc Poulhiès <dkm@gcc.gnu.org>
Tue, 1 Jul 2025 08:29:44 +0000 (10:29 +0200)
commit176e9d801490511675772182b7d2b04b2a658ca4
treeae9fbc14516032f7bcfd9748461907fc22221581
parent4137ec1ca20a42f51b112284bd586ba3f9bbabf3
ada: Fix ALI elaboration flags for ghost compilation units

When GNAT was compiling a ghost unit, the ALI file wrongly suggested that this
unit includes elaboration code, which caused linking errors to non-existing
elaboration counters. This was because elaboration code is only detected in
Gigi, which is skipped for ignored ghost units, because we don't generate
object code for them

gcc/ada/ChangeLog:

* gnat1drv.adb (Gnat1drv): Do minimal decoration of the spec and body
of an ignored ghost compilation unit.
gcc/ada/gnat1drv.adb