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
ae0e50e8
Commit
ae0e50e8
authored
Jul 15, 2000
by
Michael Meissner
Committed by
Michael Meissner
Jul 15, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update portability guide
From-SVN: r35041
parent
7de51554
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
5 deletions
+13
-5
gcc/ChangeLog
+5
-0
gcc/README.Portability
+8
-5
No files found.
gcc/ChangeLog
View file @
ae0e50e8
2000-07-15 Michael Meissner <meissner@redhat.com>
* README.Portability: Update integer suffixes and function
prototype sections.
2000-07-15 Neil Booth <NeilB@earthling.net>
* README.Portability: Small update.
...
...
gcc/README.Portability
View file @
ae0e50e8
...
...
@@ -155,6 +155,9 @@ ansidecl.h for the definitions of the above macros and more.
#define PARAMS(paramlist) () /* K+R C. */
#define VPARAMS(args) (va_alist) va_dcl
One aspect of using K+R style function declarations, is you cannot have
arguments whose types are char, short, or float, since without prototypes (ie,
K+R rules), these types are promoted to int, int, and double respectively.
Calling functions through pointers to functions
-----------------------------------------------
...
...
@@ -230,10 +233,6 @@ int is done as an unsigned comparison in K+R (since unsigned char
promotes to unsigned) while it is signed in ISO (since all of the
values in unsigned char fit in an int, it promotes to int).
** Not having any argument whose type is a short type (char, short,
float of any flavor) and subject to promotion. **
Trigraphs
---------
...
...
@@ -245,7 +244,11 @@ them.
Suffixes on Integer Constants
-----------------------------
**Using a 'u' suffix on integer constants.**
K+R C did not accept a 'u' suffix on integer constants. If you want to declare
a constant to be be unsigned, you must use an explicit cast.
You should never use a 'l' suffix on integer constants ('L' is fine), since it
can easily be confused with the number '1'.
Common Coding Pitfalls
...
...
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