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
d18225c4
Commit
d18225c4
authored
Mar 11, 1994
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use PVPROTO for varargs prototypes.
From-SVN: r6744
parent
bdea67fa
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
32 additions
and
24 deletions
+32
-24
gcc/combine.c
+1
-1
gcc/expr.h
+2
-2
gcc/gcc.c
+4
-2
gcc/genattrtab.c
+2
-2
gcc/mips-tfile.c
+8
-2
gcc/output.h
+1
-1
gcc/toplev.c
+14
-14
No files found.
gcc/combine.c
View file @
d18225c4
...
...
@@ -413,7 +413,7 @@ static rtx simplify_shift_const PROTO((rtx, enum rtx_code, enum machine_mode,
rtx
,
int
));
static
int
recog_for_combine
PROTO
((
rtx
*
,
rtx
,
rtx
*
));
static
rtx
gen_lowpart_for_combine
PROTO
((
enum
machine_mode
,
rtx
));
static
rtx
gen_rtx_combine
PROTO
((
enum
rtx_code
code
,
enum
machine_mode
mode
,
static
rtx
gen_rtx_combine
P
VP
ROTO
((
enum
rtx_code
code
,
enum
machine_mode
mode
,
...));
static
rtx
gen_binary
PROTO
((
enum
rtx_code
,
enum
machine_mode
,
rtx
,
rtx
));
...
...
gcc/expr.h
View file @
d18225c4
...
...
@@ -624,9 +624,9 @@ extern void emit_push_insn PROTO((rtx, enum machine_mode, tree, rtx, int,
int
,
rtx
,
int
,
rtx
,
rtx
));
/* Emit library call. */
extern
void
emit_library_call
PROTO
((
rtx
orgfun
,
int
no_queue
,
extern
void
emit_library_call
P
VP
ROTO
((
rtx
orgfun
,
int
no_queue
,
enum
machine_mode
outmode
,
int
nargs
,
...));
extern
rtx
emit_library_call_value
PROTO
((
rtx
orgfun
,
rtx
value
,
int
no_queue
,
extern
rtx
emit_library_call_value
P
VP
ROTO
((
rtx
orgfun
,
rtx
value
,
int
no_queue
,
enum
machine_mode
outmode
,
int
nargs
,
...));
/* Expand an assignment that stores the value of FROM into TO. */
...
...
gcc/gcc.c
View file @
d18225c4
...
...
@@ -62,9 +62,11 @@ compilation is specified by a string called a "spec". */
#ifndef VPROTO
#ifdef __STDC__
#define PVPROTO(ARGS) ARGS
#define VPROTO(ARGS) ARGS
#define VA_START(va_list,var) va_start(va_list,var)
#else
#define PVPROTO(ARGS) ()
#define VPROTO(ARGS) (va_alist) va_dcl
#define VA_START(va_list,var) va_start(va_list)
#endif
...
...
@@ -215,8 +217,8 @@ static void pfatal_with_name PROTO((char *));
static
void
perror_with_name
PROTO
((
char
*
));
static
void
perror_exec
PROTO
((
char
*
));
#ifdef HAVE_VPRINTF
static
void
fatal
PROTO
((
char
*
,
...));
static
void
error
PROTO
((
char
*
,
...));
static
void
fatal
P
VP
ROTO
((
char
*
,
...));
static
void
error
P
VP
ROTO
((
char
*
,
...));
#else
/* We must not provide any prototype here, even if ANSI C. */
static
void
fatal
PROTO
(());
...
...
gcc/genattrtab.c
View file @
d18225c4
...
...
@@ -359,9 +359,9 @@ static char *alternative_name;
rtx
frame_pointer_rtx
,
hard_frame_pointer_rtx
,
stack_pointer_rtx
;
rtx
arg_pointer_rtx
;
static
rtx
attr_rtx
PROTO
((
enum
rtx_code
,
...));
static
rtx
attr_rtx
P
VP
ROTO
((
enum
rtx_code
,
...));
#ifdef HAVE_VPRINTF
static
char
*
attr_printf
PROTO
((
int
,
char
*
,
...));
static
char
*
attr_printf
P
VP
ROTO
((
int
,
char
*
,
...));
#else
static
char
*
attr_printf
();
#endif
...
...
gcc/mips-tfile.c
View file @
d18225c4
...
...
@@ -618,8 +618,11 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
typedef
void
*
PTR_T
;
typedef
const
void
*
CPTR_T
;
#define __proto(x) x
#ifndef VPROTO
#define PVPROTO(ARGS) ARGS
#define VPROTO(ARGS) ARGS
#define VA_START(va_list,var) va_start(va_list,var)
#endif
#else
#if defined(_STDIO_H_) || defined(__STDIO_H__)
/* Ultrix 4.0, SGI */
...
...
@@ -633,9 +636,12 @@ typedef char *CPTR_T;
#define __proto(x) ()
#define const
#ifndef VPROTO
#define PVPROTO(ARGS) ()
#define VPROTO(ARGS) (va_alist) va_dcl
#define VA_START(va_list,var) va_start(va_list)
#endif
#endif
/* Do to size_t being defined in sys/types.h and different
in stddef.h, we have to do this by hand..... Note, these
...
...
@@ -665,8 +671,8 @@ extern PTR_T xrealloc __proto((PTR_T, Size_t));
extern
void
xfree
__proto
((
PTR_T
));
#ifdef HAVE_VPRINTF
extern
void
fatal
__proto
((
char
*
format
,
...));
extern
void
error
__proto
((
char
*
format
,
...));
extern
void
fatal
PVPROTO
((
char
*
format
,
...));
extern
void
error
PVPROTO
((
char
*
format
,
...));
#else
/* We must not provide any prototype here, even if ANSI C. */
extern
void
fatal
__proto
(());
...
...
gcc/output.h
View file @
d18225c4
...
...
@@ -32,7 +32,7 @@ extern void output_asm_insn PROTO((char *, rtx *));
/* Output a string of assembler code, substituting numbers, strings
and fixed syntactic prefixes. */
extern
void
asm_fprintf
STDIO_PROTO
(
(
FILE
*
file
,
char
*
p
,
...
));
extern
void
asm_fprintf
STDIO_PROTO
(
PVPROTO
((
FILE
*
file
,
char
*
p
,
...)
));
/* Print an integer constant expression in assembler syntax.
Addition and subtraction are the only arithmetic
...
...
gcc/toplev.c
View file @
d18225c4
...
...
@@ -110,20 +110,20 @@ extern void dump_sched_info ();
extern
void
dump_local_alloc
();
void
rest_of_decl_compilation
();
void
error_with_file_and_line
PROTO
((
char
*
file
,
int
line
,
char
*
s
,
...));
void
error_with_decl
PROTO
((
tree
decl
,
char
*
s
,
...));
void
error_for_asm
PROTO
((
rtx
insn
,
char
*
s
,
...));
void
error
PROTO
((
char
*
s
,
...));
void
fatal
PROTO
((
char
*
s
,
...));
void
warning_with_file_and_line
PROTO
((
char
*
file
,
int
line
,
char
*
s
,
...));
void
warning_with_decl
PROTO
((
tree
decl
,
char
*
s
,
...));
void
warning_for_asm
PROTO
((
rtx
insn
,
char
*
s
,
...));
void
warning
PROTO
((
char
*
s
,
...));
void
pedwarn
PROTO
((
char
*
s
,
...));
void
pedwarn_with_decl
PROTO
((
tree
decl
,
char
*
s
,
...));
void
pedwarn_with_file_and_line
PROTO
((
char
*
file
,
int
line
,
char
*
s
,
...));
void
sorry
PROTO
((
char
*
s
,
...));
void
really_sorry
PROTO
((
char
*
s
,
...));
void
error_with_file_and_line
P
VP
ROTO
((
char
*
file
,
int
line
,
char
*
s
,
...));
void
error_with_decl
P
VP
ROTO
((
tree
decl
,
char
*
s
,
...));
void
error_for_asm
P
VP
ROTO
((
rtx
insn
,
char
*
s
,
...));
void
error
P
VP
ROTO
((
char
*
s
,
...));
void
fatal
P
VP
ROTO
((
char
*
s
,
...));
void
warning_with_file_and_line
P
VP
ROTO
((
char
*
file
,
int
line
,
char
*
s
,
...));
void
warning_with_decl
P
VP
ROTO
((
tree
decl
,
char
*
s
,
...));
void
warning_for_asm
P
VP
ROTO
((
rtx
insn
,
char
*
s
,
...));
void
warning
P
VP
ROTO
((
char
*
s
,
...));
void
pedwarn
P
VP
ROTO
((
char
*
s
,
...));
void
pedwarn_with_decl
P
VP
ROTO
((
tree
decl
,
char
*
s
,
...));
void
pedwarn_with_file_and_line
P
VP
ROTO
((
char
*
file
,
int
line
,
char
*
s
,
...));
void
sorry
P
VP
ROTO
((
char
*
s
,
...));
void
really_sorry
P
VP
ROTO
((
char
*
s
,
...));
void
fancy_abort
();
#ifndef abort
void
abort
();
...
...
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