diff options
author | Martin v. Löwis <loewis@informatik.hu-berlin.de> | 1998-10-24 03:05:35 +0000 |
---|---|---|
committer | Martin v. Löwis <loewis@gcc.gnu.org> | 1998-10-24 03:05:35 +0000 |
commit | 08bb3b69c457ab9acdd1c228f041be022f2b5291 (patch) | |
tree | 3a4d3f0c88d6f3a0b6b01c7bde2bfe85ebdee7a5 /gcc | |
parent | 2b2ea9100a04812a6b8210dbb7f20b3f28243d7d (diff) | |
download | gcc-08bb3b69c457ab9acdd1c228f041be022f2b5291.zip gcc-08bb3b69c457ab9acdd1c228f041be022f2b5291.tar.gz gcc-08bb3b69c457ab9acdd1c228f041be022f2b5291.tar.bz2 |
* gxxint.texi: Correct documentation for n, N, Q, and B.
From-SVN: r23269
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/cp/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/cp/gxxint.texi | 33 |
2 files changed, 22 insertions, 15 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index ad0a602..8bd7c7b 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,7 @@ +1998-10-24 Martin von Löwis <loewis@informatik.hu-berlin.de> + + * gxxint.texi: Correct documentation for n, N, Q, and B. + 1998-10-23 Martin von Löwis <loewis@informatik.hu-berlin.de> * parse.y (condition): Convert VAR_DECL from reference to indirect diff --git a/gcc/cp/gxxint.texi b/gcc/cp/gxxint.texi index f23b85d..3b8242d 100644 --- a/gcc/cp/gxxint.texi +++ b/gcc/cp/gxxint.texi @@ -1595,18 +1595,18 @@ as @samp{P} followed by the mangling of the class name. @subsection Squangled type compression -Squangling (enabled with the @samp{-fsquangle} option), utilizes -the @samp{B} code to indicate reuse of a previously -seen type within an indentifier. Types are recognized in a left to -right manner and given increasing values, which are -appended to the code in the standard manner. Ie, multiple digit numbers -are delimited by @samp{_} characters. A type is considered to be any -non primitive type, regardless of whether its a parameter, template -parameter, or entire template. Certain codes are considered modifiers -of a type, and are not included as part of the type. These are the -@samp{C}, @samp{V}, @samp{P}, @samp{A}, @samp{R}, and @samp{U} codes, -denoting constant, volatile, pointer, array, reference, and unsigned. -These codes may precede a @samp{B} type in order to make the required +Squangling (enabled with the @samp{-fsquangle} option), utilizes the +@samp{B} code to indicate reuse of a previously seen type within an +indentifier. Types are recognized in a left to right manner and given +increasing values, which are appended to the code in the standard +manner. Ie, multiple digit numbers are delimited by @samp{_} +characters. A type is considered to be any non primitive type, +regardless of whether its a parameter, template parameter, or entire +template. Certain codes are considered modifiers of a type, and are not +included as part of the type. These are the @samp{C}, @samp{V}, +@samp{P}, @samp{A}, @samp{R}, @samp{U} and @samp{u} codes, denoting +constant, volatile, pointer, array, reference, unsigned, and restrict. +These codes may precede a @samp{B} type in order to make the required modifications to the type. For example: @@ -1784,17 +1784,20 @@ Used by squangling to compress qualified names. Encodes the C++ @code{long} type. @item n -Used with squangling. +Immediate repeated type. Followed by the repeat count. @item N -Namespaces. +Repeated type. Followed by the repeat count of the repeated type, +followed by the type index of the repeated type. Due to a bug in +g++ 2.7.2, this is only generated if index is 0. Superceded by +@samp{n} when squangling. @item P Indicates a pointer type. Followed by the type pointed to. @item Q Used to mangle qualified names, which arise from nested classes. -Should also be used for namespaces (?). +Also used for namespaces. In Java used to mangle package-qualified names, and inner classes. @item r |