You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
80 lines
3.5 KiB
HTML
80 lines
3.5 KiB
HTML
4 years ago
|
<html lang="en">
|
||
|
<head>
|
||
|
<title>Macros and Functions - GNU Compiler Collection (GCC) Internals</title>
|
||
|
<meta http-equiv="Content-Type" content="text/html">
|
||
|
<meta name="description" content="GNU Compiler Collection (GCC) Internals">
|
||
|
<meta name="generator" content="makeinfo 4.13">
|
||
|
<link title="Top" rel="start" href="index.html#Top">
|
||
|
<link rel="up" href="Tree-overview.html#Tree-overview" title="Tree overview">
|
||
|
<link rel="next" href="Identifiers.html#Identifiers" title="Identifiers">
|
||
|
<link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage">
|
||
|
<!--
|
||
|
Copyright (C) 1988-2015 Free Software Foundation, Inc.
|
||
|
|
||
|
Permission is granted to copy, distribute and/or modify this document
|
||
|
under the terms of the GNU Free Documentation License, Version 1.3 or
|
||
|
any later version published by the Free Software Foundation; with the
|
||
|
Invariant Sections being ``Funding Free Software'', the Front-Cover
|
||
|
Texts being (a) (see below), and with the Back-Cover Texts being (b)
|
||
|
(see below). A copy of the license is included in the section entitled
|
||
|
``GNU Free Documentation License''.
|
||
|
|
||
|
(a) The FSF's Front-Cover Text is:
|
||
|
|
||
|
A GNU Manual
|
||
|
|
||
|
(b) The FSF's Back-Cover Text is:
|
||
|
|
||
|
You have freedom to copy and modify this GNU Manual, like GNU
|
||
|
software. Copies published by the Free Software Foundation raise
|
||
|
funds for GNU development.-->
|
||
|
<meta http-equiv="Content-Style-Type" content="text/css">
|
||
|
<style type="text/css"><!--
|
||
|
pre.display { font-family:inherit }
|
||
|
pre.format { font-family:inherit }
|
||
|
pre.smalldisplay { font-family:inherit; font-size:smaller }
|
||
|
pre.smallformat { font-family:inherit; font-size:smaller }
|
||
|
pre.smallexample { font-size:smaller }
|
||
|
pre.smalllisp { font-size:smaller }
|
||
|
span.sc { font-variant:small-caps }
|
||
|
span.roman { font-family:serif; font-weight:normal; }
|
||
|
span.sansserif { font-family:sans-serif; font-weight:normal; }
|
||
|
--></style>
|
||
|
</head>
|
||
|
<body>
|
||
|
<div class="node">
|
||
|
<a name="Macros-and-Functions"></a>
|
||
|
<p>
|
||
|
Next: <a rel="next" accesskey="n" href="Identifiers.html#Identifiers">Identifiers</a>,
|
||
|
Up: <a rel="up" accesskey="u" href="Tree-overview.html#Tree-overview">Tree overview</a>
|
||
|
<hr>
|
||
|
</div>
|
||
|
|
||
|
<h4 class="subsection">10.2.1 Trees</h4>
|
||
|
|
||
|
<p><a name="index-tree-1715"></a><a name="index-TREE_005fCHAIN-1716"></a><a name="index-TREE_005fTYPE-1717"></a>
|
||
|
All GENERIC trees have two fields in common. First, <code>TREE_CHAIN</code>
|
||
|
is a pointer that can be used as a singly-linked list to other trees.
|
||
|
The other is <code>TREE_TYPE</code>. Many trees store the type of an
|
||
|
expression or declaration in this field.
|
||
|
|
||
|
<p>These are some other functions for handling trees:
|
||
|
|
||
|
<dl>
|
||
|
<dt><code>tree_size</code><a name="index-tree_005fsize-1718"></a><dd>Return the number of bytes a tree takes.
|
||
|
|
||
|
<br><dt><code>build0</code><a name="index-build0-1719"></a><dt><code>build1</code><a name="index-build1-1720"></a><dt><code>build2</code><a name="index-build2-1721"></a><dt><code>build3</code><a name="index-build3-1722"></a><dt><code>build4</code><a name="index-build4-1723"></a><dt><code>build5</code><a name="index-build5-1724"></a><dt><code>build6</code><a name="index-build6-1725"></a><dd>
|
||
|
These functions build a tree and supply values to put in each
|
||
|
parameter. The basic signature is ‘<samp><span class="samp">code, type, [operands]<!-- /@w --></span></samp>’.
|
||
|
<code>code</code> is the <code>TREE_CODE</code>, and <code>type</code> is a tree
|
||
|
representing the <code>TREE_TYPE</code>. These are followed by the
|
||
|
operands, each of which is also a tree.
|
||
|
|
||
|
</dl>
|
||
|
|
||
|
<!-- -->
|
||
|
<!-- Identifiers -->
|
||
|
<!-- -->
|
||
|
</body></html>
|
||
|
|