This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
PATCH: c-tree.texi and VAR_DECLs
- To: gcc-patches at gcc dot gnu dot org
- Subject: PATCH: c-tree.texi and VAR_DECLs
- From: Mark Mitchell <mark at codesourcery dot com>
- Date: Wed, 08 Nov 2000 11:26:04 -0800
- Organization: CodeSourcery, LLC
This patch describes how the `register int a asm ("foo")' extension is
represented in the AST.
--
Mark Mitchell mark@codesourcery.com
CodeSourcery, LLC http://www.codesourcery.com
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.
Index: c-tree.texi
===================================================================
RCS file: /cvs/gcc/egcs/gcc/c-tree.texi,v
retrieving revision 1.4
diff -c -p -r1.4 c-tree.texi
*** c-tree.texi 2000/11/08 19:05:08 1.4
--- c-tree.texi 2000/11/08 19:24:22
*************** performed. If the @code{DECL_INITIAL} i
*** 991,996 ****
--- 991,1003 ----
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