aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Myers <jsm28@cam.ac.uk>2001-04-02 08:39:39 +0100
committerJoseph Myers <jsm28@gcc.gnu.org>2001-04-02 08:39:39 +0100
commitc6955d85188d84404ae1fdfe594e59166d90b755 (patch)
tree06f7a1594a30b9dd940e2b610258f680a185ce64
parent6c13e193585479d2159ccb3184b801adc0dc85a3 (diff)
downloadgcc-c6955d85188d84404ae1fdfe594e59166d90b755.zip
gcc-c6955d85188d84404ae1fdfe594e59166d90b755.tar.gz
gcc-c6955d85188d84404ae1fdfe594e59166d90b755.tar.bz2
* c-tree.texi: Document representation of wide strings.
From-SVN: r40998
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/c-tree.texi10
2 files changed, 13 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 0ce5d26..424b4c7 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@
+2001-04-02 Joseph S. Myers <jsm28@cam.ac.uk>
+
+ * c-tree.texi: Document representation of wide strings.
+
2001-04-01 Richard Henderson <rth@redhat.com>
* except.h (expand_builtin_dwarf_fp_regnum): Declare.
diff --git a/gcc/c-tree.texi b/gcc/c-tree.texi
index c62070a..820fc41 100644
--- a/gcc/c-tree.texi
+++ b/gcc/c-tree.texi
@@ -1868,7 +1868,15 @@ embedded @code{NUL} characters. Therefore, the
@code{TREE_STRING_LENGTH} includes the trailing @code{NUL} if it is
present.
-FIXME: How are wide strings represented?
+For wide string constants, the @code{TREE_STRING_LENGTH} is the number
+of wide characters in the string, and the @code{TREE_STRING_POINTER}
+points to an array of the bytes of the string, as represented on the
+target system (that is, as integers in the target endianness). Wide and
+non-wide string constants are distinguished only by the @code{TREE_TYPE}
+of the @code{STRING_CST}.
+
+FIXME: The formats of string constants are not well-defined when the
+target system bytes are not the same width as host system bytes.
@item PTRMEM_CST
These nodes are used to represent pointer-to-member constants. The