From e203dd6e24ebb349128e3a4354e5847a90422c64 Mon Sep 17 00:00:00 2001 From: Ghjuvan Lacambre Date: Fri, 13 Dec 2019 09:05:33 +0000 Subject: [PATCH] [Ada] implementation_defined_pragmas.rst: Update Initialize_Scalars docs 2019-12-13 Ghjuvan Lacambre gcc/ada/ * doc/gnat_rm/implementation_defined_pragmas.rst: Update Initialize_Scalars documentation. * gnat_rm.texi: Regenerate. From-SVN: r279366 --- gcc/ada/ChangeLog | 6 ++++++ gcc/ada/doc/gnat_rm/implementation_defined_pragmas.rst | 6 ++++-- gcc/ada/gnat_rm.texi | 6 ++++-- 3 files changed, 14 insertions(+), 4 deletions(-) diff --git a/gcc/ada/ChangeLog b/gcc/ada/ChangeLog index bfc9be15be2..cfa051ad312 100644 --- a/gcc/ada/ChangeLog +++ b/gcc/ada/ChangeLog @@ -1,3 +1,9 @@ +2019-12-13 Ghjuvan Lacambre + + * doc/gnat_rm/implementation_defined_pragmas.rst: Update + Initialize_Scalars documentation. + * gnat_rm.texi: Regenerate. + 2019-12-13 Javier Miranda * sem_ch13.adb (Analyze_Aspect_Specification): Processing a diff --git a/gcc/ada/doc/gnat_rm/implementation_defined_pragmas.rst b/gcc/ada/doc/gnat_rm/implementation_defined_pragmas.rst index fd66aedfe26..04e4ac8049f 100644 --- a/gcc/ada/doc/gnat_rm/implementation_defined_pragmas.rst +++ b/gcc/ada/doc/gnat_rm/implementation_defined_pragmas.rst @@ -3057,7 +3057,9 @@ different ways: particular family of scalar types using the optional arguments of the pragma. The compile-time approach is intended to optimize the generated code for the - pragma, by possibly using fast operations such as ``memset``. + pragma, by possibly using fast operations such as ``memset``. Note that such + optimizations require using values the bytes of which all have the same + binary representation. * At bind time, the programmer has several options: @@ -3077,7 +3079,7 @@ different ways: The bind-time approach is intended to provide fast turnaround for testing with different values, without having to recompile the program. -* At execution time, the programmer can speify the invalid values using an +* At execution time, the programmer can specify the invalid values using an environment variable. See the GNAT User's Guide for details. The execution-time approach is intended to provide fast turnaround for diff --git a/gcc/ada/gnat_rm.texi b/gcc/ada/gnat_rm.texi index 8d909deaf8d..19c6290edd3 100644 --- a/gcc/ada/gnat_rm.texi +++ b/gcc/ada/gnat_rm.texi @@ -4508,7 +4508,9 @@ At compile time, the programmer can specify the invalid value for a particular family of scalar types using the optional arguments of the pragma. The compile-time approach is intended to optimize the generated code for the -pragma, by possibly using fast operations such as @code{memset}. +pragma, by possibly using fast operations such as @code{memset}. Note that such +optimizations require using values the bytes of which all have the same +binary representation. @item At bind time, the programmer has several options: @@ -4538,7 +4540,7 @@ The bind-time approach is intended to provide fast turnaround for testing with different values, without having to recompile the program. @item -At execution time, the programmer can speify the invalid values using an +At execution time, the programmer can specify the invalid values using an environment variable. See the GNAT User's Guide for details. The execution-time approach is intended to provide fast turnaround for -- 2.30.2