[Ada] Add support for XDR streaming in the default runtime
authorArnaud Charlet <charlet@adacore.com>
Thu, 23 Apr 2020 09:46:29 +0000 (05:46 -0400)
committerPierre-Marie de Rodat <derodat@adacore.com>
Thu, 18 Jun 2020 09:08:30 +0000 (05:08 -0400)
commit8cd7aec26f11d3d317e0e59e3dbe04b96b7052e4
tree4d86db185b225f11a160ebf06051052c0ade1ca3
parent5b3950bed95136ad2b5e037e29daf3a464dc7cd5
[Ada] Add support for XDR streaming in the default runtime

2020-06-18  Arnaud Charlet  <charlet@adacore.com>

gcc/ada/

* Makefile.rtl: Add s-statxd.o.
* bindgen.adb (Gen_Adainit): Add support for XDR_Stream.
* bindusg.adb (Display): Add mention of -xdr.
* gnatbind.adb: Process -xdr switch.
* init.c (__gl_xdr_stream): New.
* opt.ads (XDR_Stream): New.
* libgnat/s-stratt__xdr.adb: Rename to...
* libgnat/s-statxd.adb: this and adjust.
* libgnat/s-statxd.ads: New.
* libgnat/s-stratt.ads, libgnat/s-stratt.adb: Choose between
default and XDR implementation at runtime.
* libgnat/s-ststop.ads: Update comments.
* doc/gnat_rm/implementation_advice.rst: Update doc on XDR
streaming.
* gnat_rm.texi: Regenerate.
14 files changed:
gcc/ada/Makefile.rtl
gcc/ada/bindgen.adb
gcc/ada/bindusg.adb
gcc/ada/doc/gnat_rm/implementation_advice.rst
gcc/ada/gnat_rm.texi
gcc/ada/gnatbind.adb
gcc/ada/init.c
gcc/ada/libgnat/s-statxd.adb [new file with mode: 0644]
gcc/ada/libgnat/s-statxd.ads [new file with mode: 0644]
gcc/ada/libgnat/s-stratt.adb
gcc/ada/libgnat/s-stratt.ads
gcc/ada/libgnat/s-stratt__xdr.adb [deleted file]
gcc/ada/libgnat/s-ststop.ads
gcc/ada/opt.ads