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
b67b4e47
Commit
b67b4e47
authored
Oct 09, 1992
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*** empty log message ***
From-SVN: r2378
parent
a74467d4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
16 deletions
+16
-16
gcc/ginclude/va-alpha.h
+16
-16
No files found.
gcc/ginclude/va-alpha.h
View file @
b67b4e47
...
@@ -94,9 +94,9 @@ __extension__ \
...
@@ -94,9 +94,9 @@ __extension__ \
/* Get a pointer to the value. If we want a float instead of \
/* Get a pointer to the value. If we want a float instead of \
a double, we have to make one and point to it instead. */
\
a double, we have to make one and point to it instead. */
\
\
\
__rv = (void *) & (
__va
.__va_arg < 6 \
__rv = (void *) & (
(__va)
.__va_arg < 6 \
?
__va.__va_fregs[__va
.__va_arg] \
?
(__va).__va_fregs[(__va)
.__va_arg] \
:
__va.__va_stack[__va.__va_arg - 6]);
\
:
(__va).__va_stack[(__va).__va_arg - 6]);
\
\
\
if (sizeof (__type) == sizeof (float)) \
if (sizeof (__type) == sizeof (float)) \
{ \
{ \
...
@@ -120,23 +120,23 @@ __extension__ \
...
@@ -120,23 +120,23 @@ __extension__ \
\
\
/* Force this on the stack if it's alignment isn't right. */
\
/* Force this on the stack if it's alignment isn't right. */
\
\
\
if (
__va
.__va_arg < 6) \
if (
(__va)
.__va_arg < 6) \
switch (sizeof (__type)) \
switch (sizeof (__type)) \
{ \
{ \
case sizeof (char): \
case sizeof (char): \
break; \
break; \
case sizeof (short): \
case sizeof (short): \
if (__alignof__ (__type) < sizeof (short)) \
if (__alignof__ (__type) < sizeof (short)) \
__va
.__va_arg = 6; \
(__va)
.__va_arg = 6; \
break; \
break; \
case 3: \
case 3: \
case sizeof (int): \
case sizeof (int): \
if (__alignof__ (__type) < sizeof (int)) \
if (__alignof__ (__type) < sizeof (int)) \
__va
.__va_arg = 6; \
(__va)
.__va_arg = 6; \
break; \
break; \
default: \
default: \
if (__alignof__ (__type) < sizeof (long)) \
if (__alignof__ (__type) < sizeof (long)) \
__va
.__va_arg = 6; \
(__va)
.__va_arg = 6; \
break; \
break; \
} \
} \
\
\
...
@@ -145,20 +145,20 @@ __extension__ \
...
@@ -145,20 +145,20 @@ __extension__ \
passed both in registers and in memory. */
\
passed both in registers and in memory. */
\
\
\
if (sizeof (__type) <= sizeof (long) \
if (sizeof (__type) <= sizeof (long) \
||
__va
.__va_arg >= 6 \
||
(__va)
.__va_arg >= 6 \
||
__va.__va_arg + __va_nwords (__type) < 6)
\
||
(__va).__va_arg + __va_nwords (__type) < 6)
\
__rv = (void *) & (
__va
.__va_arg < 6 \
__rv = (void *) & (
(__va)
.__va_arg < 6 \
?
__va.__va_iregs[__va
.__va_arg] \
?
(__va).__va_iregs[(__va)
.__va_arg] \
:
__va.__va_stack[__va
.__va_arg - 6]); \
:
(__va).__va_stack[(__va)
.__va_arg - 6]); \
else \
else \
{ \
{ \
long __obj[__va_nwords (__type)]; \
long __obj[__va_nwords (__type)]; \
int __i; \
int __i; \
\
\
for (__i = 0; __i < __va_nwords (__type); __i++) \
for (__i = 0; __i < __va_nwords (__type); __i++) \
__obj[__i] = (
__va
.__va_arg < 6 \
__obj[__i] = (
(__va)
.__va_arg < 6 \
?
__va.__va_iregs[__va
.__va_arg] \
?
(__va).__va_iregs[(__va)
.__va_arg] \
:
__va.__va_stack[__va
.__va_arg - 6]); \
:
(__va).__va_stack[(__va)
.__va_arg - 6]); \
\
\
__rv = (void *) &__obj[0]; \
__rv = (void *) &__obj[0]; \
} \
} \
...
@@ -177,7 +177,7 @@ __extension__ \
...
@@ -177,7 +177,7 @@ __extension__ \
abort (); \
abort (); \
} \
} \
\
\
__va
.__va_arg += __va_nwords (__type); \
(__va)
.__va_arg += __va_nwords (__type); \
\
\
__rv; \
__rv; \
}))
}))
...
...
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