aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArnaud Charlet <charlet@gcc.gnu.org>2007-08-16 14:21:37 +0200
committerArnaud Charlet <charlet@gcc.gnu.org>2007-08-16 14:21:37 +0200
commitcd3cd5b19818bb30992ba42ea61da2914a95e393 (patch)
tree62a76be9e262320e038fea8f8a4d86a3242d5ab0
parenta14782e120670dfc4a9c2405b604610cf73317c5 (diff)
downloadgcc-cd3cd5b19818bb30992ba42ea61da2914a95e393.zip
gcc-cd3cd5b19818bb30992ba42ea61da2914a95e393.tar.gz
gcc-cd3cd5b19818bb30992ba42ea61da2914a95e393.tar.bz2
[multiple changes]
2007-08-16 Robert Dewar <dewar@adacore.com> * gnat_ugn.texi: Add note on preprocessing (output file not written) 2007-08-16 Thomas Quinot <quinot@adacore.com> * a-tags.adb: Minor reformatting. 2007-08-16 Bob Duff <duff@adacore.com> * sem_type.ads, sem_ch4.adb: Minor reformatting. From-SVN: r127552
-rw-r--r--gcc/ada/a-tags.adb9
-rw-r--r--gcc/ada/gnat_ugn.texi10
-rw-r--r--gcc/ada/sem_ch4.adb8
-rw-r--r--gcc/ada/sem_type.ads2
4 files changed, 18 insertions, 11 deletions
diff --git a/gcc/ada/a-tags.adb b/gcc/ada/a-tags.adb
index 5a0cf71..0b735be 100644
--- a/gcc/ada/a-tags.adb
+++ b/gcc/ada/a-tags.adb
@@ -351,8 +351,8 @@ package body Ada.Tags is
Obj_Base := Obj_Base +
Iface_Table.Ifaces_Table (Id).Offset_To_Top_Value;
- -- Otherwise we call the function generated by the expander
- -- to provide us with this value
+ -- Otherwise call the function generated by the expander to
+ -- provide the value.
else
Obj_Base := Obj_Base +
@@ -637,11 +637,10 @@ package body Ada.Tags is
-- Handle library-level tagged types
else
- -- Make a copy of the string representing the external tag with
- -- a null at the end.
+ -- Make NUL-terminated copy of external tag string
Ext_Copy (External'Range) := External;
- Ext_Copy (Ext_Copy'Last) := ASCII.NUL;
+ Ext_Copy (Ext_Copy'Last) := ASCII.NUL;
Res := External_Tag_HTable.Get (Ext_Copy'Address);
end if;
diff --git a/gcc/ada/gnat_ugn.texi b/gcc/ada/gnat_ugn.texi
index ec77d30..b35707e 100644
--- a/gcc/ada/gnat_ugn.texi
+++ b/gcc/ada/gnat_ugn.texi
@@ -6855,7 +6855,8 @@ and communicates it to the compiler using this switch.
@subsection Integrated Preprocessing
@noindent
-GNAT sources may be preprocessed immediately before compilation; the actual
+GNAT sources may be preprocessed immediately before compilation.
+In this case, the actual
text of the source is not the text of the source file, but is derived from it
through a process called preprocessing. Integrated preprocessing is specified
through switches @option{-gnatep} and/or @option{-gnateD}. @option{-gnatep}
@@ -6863,6 +6864,13 @@ indicates, through a text file, the preprocessing data to be used.
@option{-gnateD} specifies or modifies the values of preprocessing symbol.
@noindent
+Note that when integrated preprocessing is used, the output from the
+preprocessor is not written to any external file. Instead it is passed
+internally to the compiler. If you need to preserve the result of
+preprocessing in a file, then you should use @command{gnatprep}
+to perform the desired preprocessing in stand-alone mode.
+
+@noindent
It is recommended that @command{gnatmake} switch ^-s^/SWITCH_CHECK^ should be
used when Integrated Preprocessing is used. The reason is that preprocessing
with another Preprocessing Data file without changing the sources will
diff --git a/gcc/ada/sem_ch4.adb b/gcc/ada/sem_ch4.adb
index 9a70be8..6530cb4 100644
--- a/gcc/ada/sem_ch4.adb
+++ b/gcc/ada/sem_ch4.adb
@@ -1005,10 +1005,10 @@ package body Sem_Ch4 is
Analyze_Expression (L);
Analyze_Expression (R);
- -- If the entity is present, the node appears in an instance,
- -- and denotes a predefined concatenation operation. The resulting
- -- type is obtained from the arguments when possible. If the arguments
- -- are aggregates, the array type and the concatenation type must be
+ -- If the entity is present, the node appears in an instance, and
+ -- denotes a predefined concatenation operation. The resulting type is
+ -- obtained from the arguments when possible. If the arguments are
+ -- aggregates, the array type and the concatenation type must be
-- visible.
if Present (Op_Id) then
diff --git a/gcc/ada/sem_type.ads b/gcc/ada/sem_type.ads
index 0cc5e5d..d40f441 100644
--- a/gcc/ada/sem_type.ads
+++ b/gcc/ada/sem_type.ads
@@ -53,7 +53,7 @@ package Sem_Type is
-- Both these structures are initialized at the beginning of every complete
-- context.
- -- Corresponding to the set of interpretation for a given overloadable
+ -- Corresponding to the set of interpretations for a given overloadable
-- identifier, there is a set of possible types corresponding to the types
-- that the overloaded call may return. We keep a 1-to-1 correspondence
-- between interpretations and types: for user-defined subprograms the