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
8469d290
Commit
8469d290
authored
Aug 04, 1994
by
Doug Evans
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(v9 va_start): Pass an arg to __builtin_next_arg.
(v9 va_arg): Advance over float's. From-SVN: r7856
parent
a7acd911
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
gcc/ginclude/va-sparc.h
+5
-5
No files found.
gcc/ginclude/va-sparc.h
View file @
8469d290
...
@@ -45,7 +45,7 @@ __extension__ \
...
@@ -45,7 +45,7 @@ __extension__ \
AP.__va_next_fp = (__va_freg *) AP.__va_next_o_limit; \
AP.__va_next_fp = (__va_freg *) AP.__va_next_o_limit; \
AP.__va_next_fp_limit = (AP.__va_next_fp + \
AP.__va_next_fp_limit = (AP.__va_next_fp + \
(__builtin_args_info (1) < 16 ? (16 - __builtin_args_info (1) + 1) / 2 : 0)); \
(__builtin_args_info (1) < 16 ? (16 - __builtin_args_info (1) + 1) / 2 : 0)); \
AP.__va_next_stack = (__va_greg *) __builtin_next_arg
(
); \
AP.__va_next_stack = (__va_greg *) __builtin_next_arg
(LASTARG
); \
})
})
#else
#else
/* Call __builtin_next_arg even though we aren't using its value, so that
/* Call __builtin_next_arg even though we aren't using its value, so that
...
@@ -74,7 +74,7 @@ __extension__ \
...
@@ -74,7 +74,7 @@ __extension__ \
AP.__va_next_fp = (__va_freg *) AP.__va_next_o_limit; \
AP.__va_next_fp = (__va_freg *) AP.__va_next_o_limit; \
AP.__va_next_fp_limit = (AP.__va_next_fp + \
AP.__va_next_fp_limit = (AP.__va_next_fp + \
(__builtin_args_info (1) < 16 ? (16 - __builtin_args_info (1) + 1) / 2 : 0)); \
(__builtin_args_info (1) < 16 ? (16 - __builtin_args_info (1) + 1) / 2 : 0)); \
AP.__va_next_stack = (__va_greg *) __builtin_next_arg
(
); \
AP.__va_next_stack = (__va_greg *) __builtin_next_arg
(__builtin_va_alist
); \
})
})
#else
#else
#ifdef __GCC_NEW_VARARGS__
#ifdef __GCC_NEW_VARARGS__
...
@@ -137,17 +137,17 @@ __extension__ \
...
@@ -137,17 +137,17 @@ __extension__ \
if (__type == __real_type_class)
/* float? */
\
if (__type == __real_type_class)
/* float? */
\
{ \
{ \
__va_freg *__r; \
__va_freg *__r; \
/* see PASS_IN_REG_P in sparc.h */
\
/* see PASS_IN_REG_P in
gcc's
sparc.h */
\
if (pvar.__va_next_fp < pvar.__va_next_fp_limit \
if (pvar.__va_next_fp < pvar.__va_next_fp_limit \
&& ((__r = (__va_freg *) (((__va_greg) pvar.__va_next_fp + sizeof (TYPE) - 1) & ~(__va_greg) (sizeof (TYPE) - 1))) \
&& ((__r = (__va_freg *) (((__va_greg) pvar.__va_next_fp + sizeof (TYPE) - 1) & ~(__va_greg) (sizeof (TYPE) - 1))) \
< pvar.__va_next_fp_limit)) \
< pvar.__va_next_fp_limit)) \
{ \
{ \
pvar.__va_next_fp = __r +
sizeof (TYPE) / 8;
\
pvar.__va_next_fp = __r +
(sizeof (TYPE) + 7) / 8;
\
} \
} \
else \
else \
{ \
{ \
__r = (__va_freg *) pvar.__va_next_stack; \
__r = (__va_freg *) pvar.__va_next_stack; \
pvar.__va_next_stack +=
sizeof (TYPE) / 8;
\
pvar.__va_next_stack +=
(sizeof (TYPE) + 7) / 8;
\
} \
} \
__result = __r; \
__result = __r; \
} \
} \
...
...
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