diff options
author | Arnaud Charlet <charlet@adacore.com> | 2020-01-01 15:19:05 -0500 |
---|---|---|
committer | Pierre-Marie de Rodat <derodat@adacore.com> | 2020-06-03 06:01:26 -0400 |
commit | ba2034610fcc0d56dd52cb20c26f9ab1997b520e (patch) | |
tree | 5260826d088dfa1346429c93e923ffd7866428bb /gcc/ada/table.adb | |
parent | bad8184e3e16dfd4d30099e18e443c4a54b97c83 (diff) | |
download | gcc-ba2034610fcc0d56dd52cb20c26f9ab1997b520e.zip gcc-ba2034610fcc0d56dd52cb20c26f9ab1997b520e.tar.gz gcc-ba2034610fcc0d56dd52cb20c26f9ab1997b520e.tar.bz2 |
[Ada] Remove ASIS tree generation
2020-06-03 Arnaud Charlet <charlet@adacore.com>
gcc/ada/
* aspects.adb, aspects.ads, atree.adb, atree.ads, elists.adb,
elists.ads, fname.adb, fname.ads, gnat1drv.adb, lib.adb,
lib.ads, namet.adb, namet.ads, nlists.adb, nlists.ads, opt.adb,
opt.ads, osint-c.adb, osint-c.ads, repinfo.adb, repinfo.ads,
sem_aux.adb, sem_aux.ads, sinput.adb, sinput.ads, stand.ads,
stringt.adb, stringt.ads, switch-c.adb, table.adb, table.ads,
uintp.adb, uintp.ads, urealp.adb, urealp.ads (Tree_Read,
Tree_Write): Remove generation of ASIS trees.
* doc/gnat_ugn/building_executable_programs_with_gnat.rst:
Remove -gnatt and -gnatct documentation.
* gnat_ugn.texi: Regenerate.
* tree_in.ads, tree_in.adb, tree_io.ads, tree_io.adb,
tree_gen.ads, tree_gen.adb, stand.adb: Remove.
* gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Remove
references to tree_gen.o tree_in.o tree_io.o.
Diffstat (limited to 'gcc/ada/table.adb')
-rw-r--r-- | gcc/ada/table.adb | 59 |
1 files changed, 0 insertions, 59 deletions
diff --git a/gcc/ada/table.adb b/gcc/ada/table.adb index 079e035..cd7cbef 100644 --- a/gcc/ada/table.adb +++ b/gcc/ada/table.adb @@ -33,7 +33,6 @@ with Debug; use Debug; with Opt; use Opt; with Output; use Output; with System; use System; -with Tree_IO; use Tree_IO; with System.Memory; use System.Memory; @@ -60,10 +59,6 @@ package body Table is -- in Max. Works correctly to do an initial allocation if the table -- is currently null. - function Tree_Get_Table_Address return Address; - -- Return Null_Address if the table length is zero, - -- Table (First)'Address if not. - pragma Warnings (Off); -- Turn off warnings. The following unchecked conversions are only used -- internally in this package, and cannot never result in any instances @@ -400,60 +395,6 @@ package body Table is end if; end Set_Last; - ---------------------------- - -- Tree_Get_Table_Address -- - ---------------------------- - - function Tree_Get_Table_Address return Address is - begin - if Length = 0 then - return Null_Address; - else - return Table (First)'Address; - end if; - end Tree_Get_Table_Address; - - --------------- - -- Tree_Read -- - --------------- - - -- Note: we allocate only the space required to accommodate the data - -- actually written, which means that a Tree_Write/Tree_Read sequence - -- does an implicit Release. - - procedure Tree_Read is - begin - Tree_Read_Int (Max); - Last_Val := Max; - Length := Max - Min + 1; - Reallocate; - - Tree_Read_Data - (Tree_Get_Table_Address, - (Last_Val - Int (First) + 1) * - - -- Note the importance of parenthesizing the following division - -- to avoid the possibility of intermediate overflow. - - (Table_Type'Component_Size / Storage_Unit)); - end Tree_Read; - - ---------------- - -- Tree_Write -- - ---------------- - - -- Note: we write out only the currently valid data, not the entire - -- contents of the allocated array. See note above on Tree_Read. - - procedure Tree_Write is - begin - Tree_Write_Int (Int (Last)); - Tree_Write_Data - (Tree_Get_Table_Address, - (Last_Val - Int (First) + 1) * - (Table_Type'Component_Size / Storage_Unit)); - end Tree_Write; - begin Init; end Table; |