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
92c874f7
Commit
92c874f7
authored
Apr 30, 1995
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(va_arg): Don't assume __va_rounded_size (char) has the value of 4.
From-SVN: r9550
parent
303a5e00
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
gcc/ginclude/stdarg.h
+3
-3
gcc/ginclude/varargs.h
+3
-3
No files found.
gcc/ginclude/stdarg.h
View file @
92c874f7
...
@@ -84,9 +84,9 @@ void va_end (__gnuc_va_list); /* Defined in libgcc.a */
...
@@ -84,9 +84,9 @@ void va_end (__gnuc_va_list); /* Defined in libgcc.a */
/* This is for big-endian machines; small args are padded downward. */
/* This is for big-endian machines; small args are padded downward. */
#define va_arg(AP, TYPE) \
#define va_arg(AP, TYPE) \
(AP = (__gnuc_va_list) ((char *) (AP) + __va_rounded_size (TYPE)), \
(AP = (__gnuc_va_list) ((char *) (AP) + __va_rounded_size (TYPE)), \
*((TYPE *) (void *) ((char *) (AP)
- ((sizeof (TYPE) < 4
\
*((TYPE *) (void *) ((char *) (AP)
\
? sizeof (TYPE)
\
- ((sizeof (TYPE) < __va_rounded_size (char)
\
: __va_rounded_size (TYPE))))))
? sizeof (TYPE)
: __va_rounded_size (TYPE))))))
#endif
/* big-endian */
#endif
/* big-endian */
#endif
/* _STDARG_H */
#endif
/* _STDARG_H */
...
...
gcc/ginclude/varargs.h
View file @
92c874f7
...
@@ -103,9 +103,9 @@ typedef void *__gnuc_va_list;
...
@@ -103,9 +103,9 @@ typedef void *__gnuc_va_list;
/* This is for big-endian machines; small args are padded downward. */
/* This is for big-endian machines; small args are padded downward. */
#define va_arg(AP, TYPE) \
#define va_arg(AP, TYPE) \
(AP = (__gnuc_va_list) ((char *) (AP) + __va_rounded_size (TYPE)), \
(AP = (__gnuc_va_list) ((char *) (AP) + __va_rounded_size (TYPE)), \
*((TYPE *) (void *) ((char *) (AP)
- ((sizeof (TYPE) < 4
\
*((TYPE *) (void *) ((char *) (AP)
\
? sizeof (TYPE)
\
- ((sizeof (TYPE) < __va_rounded_size (char)
\
: __va_rounded_size (TYPE))))))
? sizeof (TYPE)
: __va_rounded_size (TYPE))))))
#endif
/* big-endian */
#endif
/* big-endian */
#endif
/* not h8300 */
#endif
/* not h8300 */
...
...
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