]> git.ipfire.org Git - thirdparty/gcc.git/commit
ada: Tweak Is_Predefined_File_Name
authorRonan Desplanques <desplanques@adacore.com>
Thu, 16 Oct 2025 08:07:04 +0000 (10:07 +0200)
committerMarc Poulhiès <dkm@gcc.gnu.org>
Mon, 3 Nov 2025 14:15:17 +0000 (15:15 +0100)
commite818a8e8bf0de77672386d5953cdb5bc3dc5a605
treee437bb9ea17505122a9590895aff15daf8afbfd0
parent39ba3bb91312eaa37fbcfb94e5cb7689df7e690f
ada: Tweak Is_Predefined_File_Name

This patch extends the set of names recognized by
Is_Predefined_File_Name so that names that start with "a-" and are longer
than 12 characters are considered predefined.

This is motivated by the need to make gprname work with the in-tree
a-strunb__shared.ads file that uses GNAT syntax extensions but whose name
wasn't considered predefined before this patch.

gcc/ada/ChangeLog:

* fname.adb (Is_Predefined_File_Name): Tweak.
gcc/ada/fname.adb