aboutsummaryrefslogtreecommitdiff
path: root/libcpp
diff options
context:
space:
mode:
authorBob Duff <duff@adacore.com>2017-04-27 13:43:49 +0000
committerArnaud Charlet <charlet@gcc.gnu.org>2017-04-27 15:43:49 +0200
commita2168462958f03ca5b060ad49e217a3e262750d0 (patch)
tree9bc9c64f1c0dab1d83d0e57fd7a8eb3a7fdab89b /libcpp
parentf8a36447dbdf5baafe85f953c261ec35f149dfb7 (diff)
downloadgcc-a2168462958f03ca5b060ad49e217a3e262750d0.zip
gcc-a2168462958f03ca5b060ad49e217a3e262750d0.tar.gz
gcc-a2168462958f03ca5b060ad49e217a3e262750d0.tar.bz2
sinput.adb: Minor code cleanup.
2017-04-27 Bob Duff <duff@adacore.com> * sinput.adb: Minor code cleanup. * namet.adb (Append): Create faster versions of Append(String) and Append(Name_Id) by using slice assignment instead of loops. * sem_util.adb (In_Instance): Speed this up by removing unnecessary tests; Is_Generic_Instance is defined for all entities. * sem_util.ads, sem_util.adb (In_Parameter_Specification): Remove unused function. * alloc.ads (Nodes_Initial): Use a much larger value, because the compiler was spending a lot of time copying the nodes table when it grows. This number was chosen in 1996, so is rather out of date with current memory sizes. Anyway, it's virtual memory. Get rid of Orig_Nodes_...; use Node_... instead. * atree.adb (Lock): Do not release the Nodes tables; it's a waste of time. Orig_Nodes_ ==> Nodes_ * nlists.adb: Orig_Nodes_ ==> Nodes_ * g-table.adb: Remove unused "with" clause. * g-table.ads, table.ads: Remove Big_Table_Type, which should not be used by clients. * g-dyntab.adb (Last_Allocated): New function to encapsulate T.P.Last_Allocated, which I'm thinking of changing. From-SVN: r247335
Diffstat (limited to 'libcpp')
0 files changed, 0 insertions, 0 deletions