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
5840cf94
Commit
5840cf94
authored
Mar 04, 1992
by
Jim Wilson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*** empty log message ***
From-SVN: r393
parent
724d9f3d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
10 deletions
+12
-10
gcc/ginclude/stdarg.h
+4
-6
gcc/ginclude/va-sparc.h
+8
-4
No files found.
gcc/ginclude/stdarg.h
View file @
5840cf94
...
...
@@ -22,6 +22,9 @@
#ifdef __mips__
#include "va-mips.h"
#else
#ifdef __sparc__
#include "va-sparc.h"
#else
#ifdef _HIDDEN_VA_LIST
/* On OSF1, this means varargs.h is "half-loaded". */
#undef _VA_LIST
...
...
@@ -43,14 +46,8 @@ typedef char *va_list;
#define __va_rounded_size(TYPE) \
(((sizeof (TYPE) + sizeof (int) - 1) / sizeof (int)) * sizeof (int))
#ifndef __sparc__
#define va_start(AP, LASTARG) \
(AP = ((char *) __builtin_next_arg ()))
#else
#define va_start(AP, LASTARG) \
(__builtin_saveregs (), \
AP = ((char *) __builtin_next_arg ()))
#endif
void
va_end
(
va_list
);
/* Defined in libgcc.a */
#define va_end(AP)
...
...
@@ -59,6 +56,7 @@ void va_end (va_list); /* Defined in libgcc.a */
(AP += __va_rounded_size (TYPE), \
*((TYPE *) (AP - __va_rounded_size (TYPE))))
#endif
/* not sparc */
#endif
/* not mips */
#endif
/* not hp9000s800 */
#endif
/* not i860 */
...
...
gcc/ginclude/va-sparc.h
View file @
5840cf94
...
...
@@ -20,10 +20,14 @@ typedef char * __va___list;
/* The ... causes current_function_varargs to be set in cc1. */
#define va_dcl int __builtin_va_alist; __va_ellipsis
/* The difference is to store the stack address in both components
instead of in AP itself. */
#ifdef _STDARG_H
#define va_start(AP, LASTARG) \
(__builtin_saveregs (), AP = ((char *) __builtin_next_arg ()))
#else
#define va_start(AP) \
(__builtin_saveregs (), (AP) = ((char *) &__builtin_va_alist))
#endif
#define va_end(pvar)
#define __va_rounded_size(TYPE) \
...
...
@@ -43,6 +47,6 @@ __extension__ \
({ TYPE __va_temp; \
((__builtin_classify_type (__va_temp) >= 12) \
? ((pvar) += __va_rounded_size (TYPE *), \
**(TYPE **) (
pvar) - __va_rounded_size (TYPE *))
\
: ((pvar) += __va_rounded_size (TYPE), \
**(TYPE **) (
(pvar) - __va_rounded_size (TYPE *)))
\
: ((pvar) += __va_rounded_size (TYPE),
\
*((TYPE *) ((pvar) - __va_rounded_size (TYPE)))));})
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