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
33a3539d
Commit
33a3539d
authored
Jan 13, 1994
by
Jim Wilson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add 64 bit support.
From-SVN: r6394
parent
bb621ad7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
0 deletions
+20
-0
gcc/ginclude/va-mips.h
+20
-0
No files found.
gcc/ginclude/va-mips.h
View file @
33a3539d
...
...
@@ -29,16 +29,30 @@ typedef char * __gnuc_va_list;
#define __va_ellipsis
#endif
#if __mips==3
#define __va_rounded_size(__TYPE) \
(((sizeof (__TYPE) + 8 - 1) / 8) * 8)
#else
#define __va_rounded_size(__TYPE) \
(((sizeof (__TYPE) + sizeof (int) - 1) / sizeof (int)) * sizeof (int))
#endif
#ifdef _STDARG_H
#if __mips==3
#define va_start(__AP, __LASTARG) (__AP = __builtin_next_arg ())
#else
#define va_start(__AP, __LASTARG) \
(__AP = ((char *) &(__LASTARG) + __va_rounded_size (__LASTARG)))
#endif
#else
#define va_alist __builtin_va_alist
#if __mips==3
/* This assumes that `long long int' is always a 64 bit type. */
#define va_dcl long long int __builtin_va_alist; __va_ellipsis
#else
#define va_dcl int __builtin_va_alist; __va_ellipsis
#endif
#define va_start(__AP) __AP = (char *) &__builtin_va_alist
#endif
...
...
@@ -49,6 +63,11 @@ void va_end (__gnuc_va_list); /* Defined in libgcc.a */
/* We cast to void * and then to TYPE * because this avoids
a warning about increasing the alignment requirement. */
#if __mips==3
#define va_arg(__AP, __type) \
((__type *) (void *) (__AP = (char *) ((((int)__AP + 8 - 1) & -8) \
+ __va_rounded_size (__type))))[-1]
#else
#ifdef __MIPSEB__
/* For big-endian machines. */
#define va_arg(__AP, __type) \
...
...
@@ -65,5 +84,6 @@ void va_end (__gnuc_va_list); /* Defined in libgcc.a */
: ((int)__AP + 4 - 1) & -4) \
+ __va_rounded_size(__type))))[-1]
#endif
#endif
#endif
/* defined (_STDARG_H) || defined (_VARARGS_H) */
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