Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
b41df7f6
Commit
b41df7f6
authored
Jul 09, 2001
by
Joseph Myers
Committed by
Joseph Myers
Jul 09, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* doc/c-tree.texi: Document representation of attributes.
From-SVN: r43854
parent
648c546a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
39 additions
and
0 deletions
+39
-0
gcc/ChangeLog
+4
-0
gcc/doc/c-tree.texi
+35
-0
No files found.
gcc/ChangeLog
View file @
b41df7f6
2001-07-09 Joseph S. Myers <jsm28@cam.ac.uk>
* doc/c-tree.texi: Document representation of attributes.
2001-07-08 Joseph S. Myers <jsm28@cam.ac.uk>
* doc/tm.texi: Update some places for the rename of target to
...
...
gcc/doc/c-tree.texi
View file @
b41df7f6
...
...
@@ -53,6 +53,7 @@ should submit your patches for inclusion in GCC@.
*
Scopes
::
Namespaces
and
classes
.
*
Functions
::
Overloading
,
function
bodies
,
and
linkage
.
*
Declarations
::
Type
declarations
and
variables
.
*
Attributes
::
Declaration
and
type
attributes
.
*
Expression
trees
::
From
@code
{
typeid
}
to
@code
{
throw
}.
@end
menu
...
...
@@ -1657,6 +1658,40 @@ The @code{WHILE_BODY} is the body of the loop.
@end
table
@c
---------------------------------------------------------------------
@c
Attributes
@c
---------------------------------------------------------------------
@node
Attributes
@section
Attributes
in
trees
@cindex
attributes
Attributes
,
as
specified
using
the
@code{
__attribute__
}
keyword
,
are
represented
internally
as
a
@code{
TREE_LIST
}
.
The
@code{
TREE_PURPOSE
}
is
the
name
of
the
attribute
,
as
an
@code{
IDENTIFIER_NODE
}
.
The
@code{
TREE_VALUE
}
is
a
@code{
TREE_LIST
}
of
the
arguments
of
the
attribute
,
if
any
,
or
@code{
NULL_TREE
}
if
there
are
no
arguments
;
the
arguments
are
stored
as
the
@code{
TREE_VALUE
}
of
successive
entries
in
the
list
,
and
may
be
identifiers
or
expressions
.
The
@code{
TREE_CHAIN
}
of
the
attribute
is
the
next
attribute
in
a
list
of
attributes
applying
to
the
same
declaration
or
type
,
or
@code{
NULL_TREE
}
if
there
are
no
further
attributes
in
the
list
.
Attributes
may
be
attached
to
declarations
and
to
types
;
these
attributes
may
be
accessed
with
the
following
macros
.
At
present
only
machine
-
dependent
attributes
are
stored
in
this
way
(
other
attributes
cause
changes
to
the
declaration
or
type
or
to
other
internal
compiler
data
structures
,
but
are
not
themselves
stored
along
with
the
declaration
or
type
),
but
in
future
all
attributes
may
be
stored
like
this
.
@deftypefn
{
Tree
Macro
}
tree
DECL_MACHINE_ATTRIBUTES
(
tree
@var{
decl
}
)
This
macro
returns
the
attributes
on
the
declaration
@var{
decl
}
.
@end
deftypefn
@deftypefn
{
Tree
Macro
}
tree
TYPE_ATTRIBUTES
(
tree
@var{
type
}
)
This
macro
returns
the
attributes
on
the
type
@var{
type
}
.
@end
deftypefn
@c
---------------------------------------------------------------------
@c
Expressions
@c
---------------------------------------------------------------------
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment