]> git.ipfire.org Git - thirdparty/gcc.git/commit
sinput.ads, sinput.adb (Build_Location_String): Take a parameter instead of using...
authorBob Duff <duff@adacore.com>
Mon, 18 Apr 2016 10:48:33 +0000 (10:48 +0000)
committerArnaud Charlet <charlet@gcc.gnu.org>
Mon, 18 Apr 2016 10:48:33 +0000 (12:48 +0200)
commitea1027992d9cc5786beb54439cf310c647e416c5
tree2c662c1707d15631c783d9d9a863a520b4ba13c7
parentbd717ec9b7edb898ec138f58a14821e776bb4fa3
sinput.ads, sinput.adb (Build_Location_String): Take a parameter instead of using a global variable.

2016-04-18  Bob Duff  <duff@adacore.com>

* sinput.ads, sinput.adb (Build_Location_String): Take a
parameter instead of using a global variable.  The function
version no longer destroys the Name_Buffer.
* stringt.ads, stringt.adb (String_From_Name_Buffer): Take a
parameter, which defaults to the Global_Name_Buffer, so some
calls can avoid the global.
* exp_ch11.adb, exp_intr.adb: Use new interfaces above
to avoid using globals. All but one call to Build_Location_String
avoids the global. Only one call to String_From_Name_Buffer
avoids it.

From-SVN: r235126
gcc/ada/ChangeLog
gcc/ada/exp_ch11.adb
gcc/ada/exp_intr.adb
gcc/ada/sinput.adb
gcc/ada/sinput.ads
gcc/ada/stringt.adb
gcc/ada/stringt.ads