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
14a782c8
Commit
14a782c8
authored
Aug 06, 2009
by
Richard Earnshaw
Committed by
Richard Earnshaw
Aug 06, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* doc/extend.texi (pcs): Document new attribute for ARM.
From-SVN: r150531
parent
0f1a24df
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
0 deletions
+26
-0
gcc/ChangeLog
+4
-0
gcc/doc/extend.texi
+22
-0
No files found.
gcc/ChangeLog
View file @
14a782c8
2009-08-06 Richard Earnshaw <rearnsha@arm.com>
2009-08-06 Richard Earnshaw <rearnsha@arm.com>
* doc/extend.texi (pcs): Document new attribute for ARM.
2009-08-06 Richard Earnshaw <rearnsha@arm.com>
* arm.c (pcs_attribute_args): Comment out unsupported attribute
* arm.c (pcs_attribute_args): Comment out unsupported attribute
variants.
variants.
...
...
gcc/doc/extend.texi
View file @
14a782c8
...
@@ -2830,6 +2830,28 @@ compiled with more aggressive optimization options that produce faster
...
@@ -2830,6 +2830,28 @@ compiled with more aggressive optimization options that produce faster
and larger code, while other functions can be called with less
and larger code, while other functions can be called with less
aggressive options.
aggressive options.
@item pcs
@cindex @code{pcs} function attribute
The @code{pcs} attribute can be used to control the calling convention
used for a function on ARM. The attribute takes an argument that specifies
the calling convention to use.
When compiling using the AAPCS ABI (or a variant of that) then valid
values for the argument are @code{"aapcs"} and @code{"aapcs-vfp"}. In
order to use a variant other than @code{"aapcs"} then the compiler must
be permitted to use the appropriate co-processor registers (i.e., the
VFP registers must be available in order to use @code{"aapcs-vfp"}).
For example,
@smallexample
/* Argument passed in r0, and result returned in r0+r1. */
double f2d (float) __attribute__((pcs("aapcs")));
@end smallexample
Variadic functions always use the @code{"aapcs"} calling convention and
the compiler will reject attempts to specify an alternative.
@item pure
@item pure
@cindex @code{pure} function attribute
@cindex @code{pure} function attribute
Many functions have no effects except the return value and their
Many functions have no effects except the return value and their
...
...
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