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
ce883c1f
Commit
ce883c1f
authored
Oct 17, 1994
by
Jim Wilson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(va_arg): Add little endian mips3 support.
From-SVN: r8296
parent
686667bf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
2 deletions
+15
-2
gcc/ginclude/va-mips.h
+15
-2
No files found.
gcc/ginclude/va-mips.h
View file @
ce883c1f
...
@@ -59,11 +59,24 @@ void va_end (__gnuc_va_list); /* Defined in libgcc.a */
...
@@ -59,11 +59,24 @@ void va_end (__gnuc_va_list); /* Defined in libgcc.a */
/* 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. */
/* The __mips==3 cases are reversed from the 32 bit cases, because the standard
32 bit calling convention left-aligns all parameters smaller than a word,
whereas the __mips==3 calling convention does not (and hence they are
right aligned). */
#if __mips==3
#if __mips==3
#ifdef __MIPSEB__
#define va_arg(__AP, __type) \
#define va_arg(__AP, __type) \
((__type *) (void *) (__AP = (char *) ((((int)__AP + 8 - 1) & -8)
\
((__type *) (void *) (__AP = (char *) ((((int)__AP + 8 - 1) & -8) \
+ __va_rounded_size (__type))))[-1]
+ __va_rounded_size (__type))))[-1]
#else
#else
#define va_arg(__AP, __type) \
((__AP = (char *) ((((int)__AP + 8 - 1) & -8) \
+ __va_rounded_size (__type))), \
*(__type *) (void *) (__AP - __va_rounded_size (__type)))
#endif
#else
/* not __mips==3 */
#ifdef __MIPSEB__
#ifdef __MIPSEB__
/* For big-endian machines. */
/* For big-endian machines. */
#define va_arg(__AP, __type) \
#define va_arg(__AP, __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