diff options
author | Arnaud Charlet <charlet@adacore.com> | 2020-05-25 11:30:56 -0400 |
---|---|---|
committer | Pierre-Marie de Rodat <derodat@adacore.com> | 2020-07-10 05:16:17 -0400 |
commit | 2f9821a09ac0c5f07ce621ef6a32acfdfa2e485e (patch) | |
tree | 02567e042b72d4a8c8e076c15bec3d80a87c9022 /gcc/cp/class.c | |
parent | 9e0cd875b5c5911200543044f855843afb93bf67 (diff) | |
download | gcc-2f9821a09ac0c5f07ce621ef6a32acfdfa2e485e.zip gcc-2f9821a09ac0c5f07ce621ef6a32acfdfa2e485e.tar.gz gcc-2f9821a09ac0c5f07ce621ef6a32acfdfa2e485e.tar.bz2 |
[Ada] Make System.Generic_Bignums more flexible
gcc/ada/
* Makefile.rtl (GNATRTL_NONTASKING_OBJS): Add s-shabig.o.
* libgnat/s-shabig.ads: New file to share definitions.
* libgnat/s-genbig.ads, libgnat/s-genbig.adb: Reorganized to
make it more generic and flexible in terms of memory allocation
and data structure returned.
(To_String): Moved to System.Generic_Bignums to allow sharing
this code.
(Big_And, Big_Or, Big_Shift_Left, Big_Shift_Right): New.
* libgnat/s-bignum.adb, libgnat/s-bignum.ads: Adapt to new
System.Generic_Bignums spec.
* libgnat/a-nbnbin.adb: Likewise.
(To_String): Moved to System.Generic_Bignums to allow sharing
this code.
* libgnat/a-nbnbre.adb (Normalize): Fix handling of Num = 0
leading to an exception.
Diffstat (limited to 'gcc/cp/class.c')
0 files changed, 0 insertions, 0 deletions