]> git.ipfire.org Git - thirdparty/gcc.git/commit
ada: Deconstruct representation clauses required by ASIS
authorPiotr Trojanek <trojanek@adacore.com>
Mon, 24 Feb 2025 13:19:46 +0000 (14:19 +0100)
committerMarc Poulhiès <dkm@gcc.gnu.org>
Fri, 6 Jun 2025 08:37:09 +0000 (10:37 +0200)
commit957a41f6daae59c3d0cbe1a76349416fae980ffa
treee6563ac925d3c0147340671d8e8e36a06ce0d6c3
parentdaa245bc566835d162c0bcf323ead2effa9e2ecb
ada: Deconstruct representation clauses required by ASIS

When GNAT was operating in ASIS mode, it was writing internal tables to files,
so we annotated record types for elements stored in these tables with
representation clauses to avoid holes with potentially uninitialized data.

Since ASIS mode has been now deconstructed and we no longer write internal
tables to files, we can remove explicit representation clauses and rely on the
data layout chosen by the compiler.

Code cleanup; behavior is unaffected.

gcc/ada/ChangeLog:

* lib.ads (Unit_Record): Remove representation clauses and filler
components
* lib-load.adb, lib-writ.adb: Remove initialization of data fillers.
* nlists.adb (Allocate_List_Tables): Remove explicit initialization.
* repinfo.adb (Exp_Node): Remove representation clauses.
* sinput.ads (Source_File_Record): Likewise.
* urealp.adb (Ureal_Entry): Likewise.
gcc/ada/lib-load.adb
gcc/ada/lib-writ.adb
gcc/ada/lib.ads
gcc/ada/nlists.adb
gcc/ada/repinfo.adb
gcc/ada/sinput.ads
gcc/ada/urealp.adb