]> git.ipfire.org Git - thirdparty/gcc.git/commit
ada: Restrict External_Initialization file lookup
authorRonan Desplanques <desplanques@adacore.com>
Thu, 14 Nov 2024 15:52:55 +0000 (16:52 +0100)
committerMarc Poulhiès <dkm@gcc.gnu.org>
Thu, 12 Dec 2024 09:57:54 +0000 (10:57 +0100)
commit1726eda68199ab64e327035e782865468b626edc
tree6f6a586750af803d2024199afff41d1fec42d31e
parent9c399e7ef2dfae46b6abb34842a8769376f623c9
ada: Restrict External_Initialization file lookup

Before this patch, External_Initialization looked for files in all
directories of the source search path, which led to inconsistencies in
some cases. This patch restricts the file lookup so the argument is
interpreted as relative to the current source file's directory only.

gcc/ada/ChangeLog:

* sem_ch3.adb (Apply_External_Initialization): Restrict File lookup.
gcc/ada/sem_ch3.adb