From: Arnaud Charlet Date: Tue, 12 May 2020 14:35:12 +0000 (+0200) Subject: [Ada] Add support for XDR streaming in the default runtime X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8deaec2952797afe2d0d14ab60142397e96173c2;p=gcc.git [Ada] Add support for XDR streaming in the default runtime gcc/ada/ * Makefile.rtl: Remove dead code. * doc/gnat_ugn/building_executable_programs_with_gnat.rst: Document gnatbind -xdr switch. * gnat_ugn.texi: Regenerate. --- diff --git a/gcc/ada/Makefile.rtl b/gcc/ada/Makefile.rtl index 92af01733df..1f6ea017b97 100644 --- a/gcc/ada/Makefile.rtl +++ b/gcc/ada/Makefile.rtl @@ -2704,10 +2704,7 @@ setup-rts: force $(RM) $(foreach PAIR,$(LIBGNAT_TARGET_PAIRS), \ $(RTSDIR)/$(word 1,$(subst <, ,$(PAIR)))) for f in $(RTSDIR)/*-*__*.ads $(RTSDIR)/*-*__*.adb; do \ - case "$$f" in \ - $(RTSDIR)/s-stratt__*) ;; \ - *) $(RM) $$f ;; \ - esac; \ + $(RM) $$f ; \ done # Copy new target dependent sources $(foreach PAIR,$(LIBGNAT_TARGET_PAIRS), \ diff --git a/gcc/ada/doc/gnat_ugn/building_executable_programs_with_gnat.rst b/gcc/ada/doc/gnat_ugn/building_executable_programs_with_gnat.rst index 1fd59d77fe2..1d44d70e45c 100644 --- a/gcc/ada/doc/gnat_ugn/building_executable_programs_with_gnat.rst +++ b/gcc/ada/doc/gnat_ugn/building_executable_programs_with_gnat.rst @@ -6711,6 +6711,14 @@ be presented in subsequent sections. Exclude source files (check object consistency only). + .. index:: -xdr (gnatbind) + +:switch:`-xdr` + Use the target-independent XDR protocol for stream oriented attributes + instead of the default implementation which is based on direct binary + representations and is therefore target-and endianness-dependent. + + .. index:: -Xnnn (gnatbind) :switch:`-X{nnn}` diff --git a/gcc/ada/gnat_ugn.texi b/gcc/ada/gnat_ugn.texi index b2f022e2c04..fc49da1b2ba 100644 --- a/gcc/ada/gnat_ugn.texi +++ b/gcc/ada/gnat_ugn.texi @@ -16142,6 +16142,14 @@ Override default wide character encoding for standard Text_IO files. Exclude source files (check object consistency only). +@geindex -xdr (gnatbind) + +@item @code{-xdr} + +Use the target-independent XDR protocol for stream oriented attributes +instead of the default implementation which is based on direct binary +representations and is therefore target-and endianness-dependent. + @geindex -Xnnn (gnatbind) @item @code{-X@emph{nnn}}