OSDN Git Service

* c-tree.texi (VAR_DECL): Describe representation of GCC's
authormmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 8 Nov 2000 19:25:36 +0000 (19:25 +0000)
committermmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 8 Nov 2000 19:25:36 +0000 (19:25 +0000)
extension for placing variables in particular registers.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@37322 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/c-tree.texi

index 8b554da..6c6fd05 100644 (file)
@@ -1,5 +1,8 @@
 2000-11-08  Mark Mitchell  <mark@codesourcery.com>
 
+       * c-tree.texi (VAR_DECL): Describe representation of GCC's
+       extension for placing variables in particular registers.
+
        * c-tree.texi (FUNCTION_TYPE): Clarify TYPE_ARG_TYPES for
        unprototyped C functions with no parameters.
 
index 56a2e25..3a4b6e8 100644 (file)
@@ -991,6 +991,13 @@ performed.  If the @code{DECL_INITIAL} is the @code{error_mark_node},
 there is an initializer, but it is given by an explicit statement later
 in the code; no bitwise copy is required.
 
+GCC provides an extension that allows either automatic variables, or
+global variables, to be placed in particular registers.  This extension
+is being used for a particular @code{VAR_DECL} if @code{DECL_REGISTER}
+holds for the @code{VAR_DECL}, and if @code{DECL_ASSEMBLER_NAME} is not
+equal to @code{DECL_NAME}.  In that case, @code{DECL_ASSEMBLER_NAME} is
+the name of the register into which the variable will be placed.
+
 @item PARM_DECL
 Used to represent a parameter to a function.  Treat these nodes
 similarly to @code{VAR_DECL} nodes.  These nodes only appear in the