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
117aea7a
Commit
117aea7a
authored
Mar 23, 1994
by
Jim Wilson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(va_start): Pass LASTARG as a parameter to
builtin_next_arg. From-SVN: r6855
parent
c4dfe0fc
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
11 additions
and
12 deletions
+11
-12
gcc/ginclude/stdarg.h
+1
-1
gcc/ginclude/va-h8300.h
+2
-1
gcc/ginclude/va-i860.h
+1
-1
gcc/ginclude/va-i960.h
+1
-1
gcc/ginclude/va-mips.h
+1
-6
gcc/ginclude/va-sparc.h
+5
-2
No files found.
gcc/ginclude/stdarg.h
View file @
117aea7a
...
...
@@ -67,7 +67,7 @@ typedef void *__gnuc_va_list;
(((sizeof (TYPE) + sizeof (int) - 1) / sizeof (int)) * sizeof (int))
#define va_start(AP, LASTARG) \
(AP = ((__gnuc_va_list) __builtin_next_arg ()))
(AP = ((__gnuc_va_list) __builtin_next_arg (
LASTARG
)))
#undef va_end
void
va_end
(
__gnuc_va_list
);
/* Defined in libgcc.a */
...
...
gcc/ginclude/va-h8300.h
View file @
117aea7a
...
...
@@ -30,7 +30,8 @@ typedef void *__gnuc_va_list;
#ifdef _STDARG_H
#define va_start(AP,LASTARG) (AP = ((__gnuc_va_list) __builtin_next_arg ()))
#define va_start(AP,LASTARG) \
(AP = ((__gnuc_va_list) __builtin_next_arg (LASTARG)))
#else
/* _VARARGS_H */
...
...
gcc/ginclude/va-i860.h
View file @
117aea7a
...
...
@@ -61,7 +61,7 @@ typedef struct {
((pvar) = *(__gnuc_va_list *) __builtin_saveregs (), \
(pvar).__ireg_used = __builtin_args_info (0) / 4, \
(pvar).__freg_used = __builtin_args_info (1) / 4, \
(pvar).__mem_ptr = __builtin_next_arg ())
(pvar).__mem_ptr = __builtin_next_arg (
firstarg
))
#endif
/* _STDARG_H */
...
...
gcc/ginclude/va-i960.h
View file @
117aea7a
...
...
@@ -39,7 +39,7 @@ typedef unsigned __gnuc_va_list[2];
#define va_start(AP, LASTARG) \
__extension__ \
({ __asm__ ("st g14,%0" : "=m" (*(AP))); \
(AP)[1] = (unsigned) __builtin_next_arg () - *AP; })
(AP)[1] = (unsigned) __builtin_next_arg (
LASTARG
) - *AP; })
#else
#define va_alist __builtin_va_alist
...
...
gcc/ginclude/va-mips.h
View file @
117aea7a
...
...
@@ -38,12 +38,7 @@ typedef char * __gnuc_va_list;
#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
#define va_start(__AP, __LASTARG) (__AP = __builtin_next_arg (__LASTARG))
#else
#define va_alist __builtin_va_alist
...
...
gcc/ginclude/va-sparc.h
View file @
117aea7a
...
...
@@ -23,11 +23,14 @@ typedef void * __gnuc_va_list;
#ifdef _STDARG_H
/* Call __builtin_next_arg even though we aren't using its value, so that
we can verify that LASTARG is correct. */
#ifdef __GCC_NEW_VARARGS__
#define va_start(AP, LASTARG) (AP = (char *) __builtin_saveregs ())
#define va_start(AP, LASTARG) \
(__builtin_next_arg (LASTARG), AP = (char *) __builtin_saveregs ())
#else
#define va_start(AP, LASTARG) \
(__builtin_saveregs (), AP = ((char *) __builtin_next_arg ()))
(__builtin_saveregs (), AP = ((char *) __builtin_next_arg (
LASTARG
)))
#endif
#else
...
...
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