[Ada] Add the System.Bitfield_Utils runtime unit

Programming / Compilers / GCC - pmderodat [138bc75d-0d04-0410-961f-82ee72b054a4] - 21 August 2019 08:30 EDT

2019-08-21 Bob Duff

gcc/ada/

- Makefile.rtl (GNATRTL_NONTASKING_OBJS): Add s-bitutil.o and s-biutin.o.
- exp_ch5.adb (Expand_Assign_Array_Bitfield): New function to generate a call to Copy_Bitfield. This is disabled for now. (Expand_Assign_Array_Loop_Or_Bitfield): New function to decide whether to call Expand_Assign_Array_Bitfield. (Expand_Assign_Array): Call Expand_Assign_Array_Loop_Or_Bitfield instead of Expand_Assign_Array_Loop.
- libgnat/s-bitfie.ads, libgnat/s-bituti.adb, libgnat/s-bituti.ads: New units.
- rtsfind.ads: Add enum literals for accessing Copy_Bitfield.

814f5f0e301 [Ada] Add the System.Bitfield_Utils runtime unit
gcc/ada/ChangeLog | 14 ++
gcc/ada/Makefile.rtl | 2 +
gcc/ada/exp_ch5.adb | 160 +++++++++++++++++++++-
gcc/ada/libgnat/s-bitfie.ads | 56 ++++++++
gcc/ada/libgnat/s-bituti.adb | 320 +++++++++++++++++++++++++++++++++++++++++++
gcc/ada/libgnat/s-bituti.ads | 132 ++++++++++++++++++
gcc/ada/rtsfind.ads | 5 +
7 files changed, 686 insertions(+), 3 deletions(-)

Upstream: gcc.gnu.org


  • Share