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
0cd3c247
Commit
0cd3c247
authored
Nov 30, 1992
by
Richard Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(va_end): #undef before the declaration.
(va_arg): Alternative definition for big-endian machines. From-SVN: r2820
parent
355b2097
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
gcc/ginclude/stdarg.h
+12
-0
No files found.
gcc/ginclude/stdarg.h
View file @
0cd3c247
...
@@ -62,14 +62,26 @@ typedef void *__gnuc_va_list;
...
@@ -62,14 +62,26 @@ typedef void *__gnuc_va_list;
#define va_start(AP, LASTARG) \
#define va_start(AP, LASTARG) \
(AP = ((__gnuc_va_list) __builtin_next_arg ()))
(AP = ((__gnuc_va_list) __builtin_next_arg ()))
#undef va_end
void
va_end
(
__gnuc_va_list
);
/* Defined in libgcc.a */
void
va_end
(
__gnuc_va_list
);
/* Defined in libgcc.a */
#define va_end(AP)
#define va_end(AP)
/* We cast to void * and then to TYPE * because this avoids
/* We cast to void * and then to TYPE * because this avoids
a warning about increasing the alignment requirement. */
a warning about increasing the alignment requirement. */
#if defined (__arm__) || defined (__i386__) || defined (__ns32000__) || defined (__vax__)
/* This is for little-endian machines; small args are padded upward. */
#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) - __va_rounded_size (TYPE))))
*((TYPE *) (void *) ((char *) (AP) - __va_rounded_size (TYPE))))
#else
/* big-endian */
/* This is for big-endian machines; small args are padded downward. */
#define va_arg(AP, TYPE) \
(AP = (__gnuc_va_list) ((char *) (AP) + __va_rounded_size (TYPE)), \
*((TYPE *) (void *) ((char *) (AP) - ((sizeof (TYPE) < 4 \
? sizeof (TYPE) \
: __va_rounded_size (TYPE))))))
#endif
/* big-endian */
#endif
/* _STDARG_H */
#endif
/* _STDARG_H */
#endif
/* not alpha */
#endif
/* not alpha */
...
...
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