[Ada] Preliminary work to avoid full pathnames in ALI files
authorBob Duff <duff@adacore.com>
Tue, 29 May 2018 09:28:59 +0000 (09:28 +0000)
committerPierre-Marie de Rodat <pmderodat@gcc.gnu.org>
Tue, 29 May 2018 09:28:59 +0000 (09:28 +0000)
commit9f4b346b0b604183a7b2285df61961ebb4a4c582
tree9b90ec6496d0506cb5101ef9cbff8c45513b3a5c
parent0c46b4263c49f008485b25eafffbe685c3c9031f
[Ada] Preliminary work to avoid full pathnames in ALI files

Normally, ALI files refer to source files using simple names. This allows files
to be moved around without disturbing things (causing extra recompilations,
etc). However, for configuration files, the full pathname is stored. This patch
preparates the code base to store the simple name in this case.

2018-05-29  Bob Duff  <duff@adacore.com>

gcc/ada/

* lib-writ.adb (Write_ALI): Cleanup: avoid use of global var; call new
To_Lower function.
* libgnat/s-casuti.ads, libgnat/s-casuti.adb (To_Upper, To_Lower,
To_Mixed): New functions.
* osint.adb: Cleanup: use Is_Directory_Separator, which correctly
allows both '\' and '/' on Windows.

From-SVN: r260860
gcc/ada/ChangeLog
gcc/ada/lib-writ.adb
gcc/ada/libgnat/s-casuti.adb
gcc/ada/libgnat/s-casuti.ads
gcc/ada/osint.adb