Commit c5d71f39 by Geoff Keating Committed by Geoffrey Keating

sol-c0.c (_start): Declare `termfunc' parameter with a prototype.

	* config/rs6000/sol-c0.c (_start): Declare `termfunc' parameter
	with a prototype.
	* config/rs6000/rs6000.h (RS6000_ARG_SIZE): Use cast to suppress
	warning.

From-SVN: r36260
parent 4c0d0505
2000-09-07 Geoff Keating <geoffk@cygnus.com>
* config/rs6000/sol-c0.c (_start): Declare `termfunc' parameter
with a prototype.
* config/rs6000/rs6000.h (RS6000_ARG_SIZE): Use cast to suppress
warning.
Fri Sep 8 03:26:38 2000 J"orn Rennecke <amylaar@redhat.co.uk> Fri Sep 8 03:26:38 2000 J"orn Rennecke <amylaar@redhat.co.uk>
* sh.md (cmpeqsi_ior_t, cmpeqsi_and_t): Remove. * sh.md (cmpeqsi_ior_t, cmpeqsi_and_t): Remove.
......
...@@ -1423,8 +1423,9 @@ typedef struct rs6000_args ...@@ -1423,8 +1423,9 @@ typedef struct rs6000_args
#define RS6000_ARG_SIZE(MODE, TYPE, NAMED) \ #define RS6000_ARG_SIZE(MODE, TYPE, NAMED) \
(! (NAMED) ? 0 \ (! (NAMED) ? 0 \
: (MODE) != BLKmode \ : (MODE) != BLKmode \
? (GET_MODE_SIZE (MODE) + (UNITS_PER_WORD - 1)) / UNITS_PER_WORD \ ? (GET_MODE_SIZE (MODE) + (UNITS_PER_WORD - 1)) / UNITS_PER_WORD \
: (int_size_in_bytes (TYPE) + (UNITS_PER_WORD - 1)) / UNITS_PER_WORD) : ((unsigned HOST_WIDE_INT) int_size_in_bytes (TYPE) \
+ (UNITS_PER_WORD - 1)) / UNITS_PER_WORD)
/* Initialize a variable CUM of type CUMULATIVE_ARGS /* Initialize a variable CUM of type CUMULATIVE_ARGS
for a call to a function whose data type is FNTYPE. for a call to a function whose data type is FNTYPE.
......
...@@ -33,7 +33,7 @@ extern int atexit (void (*__func) (void)); ...@@ -33,7 +33,7 @@ extern int atexit (void (*__func) (void));
extern void __init (void) __attribute__ ((__longcall__)); extern void __init (void) __attribute__ ((__longcall__));
extern void __fini (void) __attribute__ ((__longcall__)); extern void __fini (void) __attribute__ ((__longcall__));
extern void _start(int argc, char *argv[], char *envp[], void *auxp, extern void _start(int argc, char *argv[], char *envp[], void *auxp,
void (*termfunc)()); void (*termfunc)(void));
extern void exit(int); extern void exit(int);
extern int main (int argc, char *argv[], char *envp[], void *auxp); extern int main (int argc, char *argv[], char *envp[], void *auxp);
...@@ -84,7 +84,8 @@ deregister (void) ...@@ -84,7 +84,8 @@ deregister (void)
/* Start function. */ /* Start function. */
void void
_start(int argc, char *argv[], char *envp[], void *auxp, void (*termfunc)()) _start(int argc, char *argv[], char *envp[], void *auxp,
void (*termfunc)(void))
{ {
int ret; int ret;
int dummy = 0; int dummy = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment