aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorGeoff Keating <geoffk@cygnus.com>2000-09-08 04:57:47 +0000
committerGeoffrey Keating <geoffk@gcc.gnu.org>2000-09-08 04:57:47 +0000
commitc5d71f39e016e8eaf03b304c9694615919be21b2 (patch)
treedc660067f5327a6cc00b7ab5f77f8ed817a8b88a /gcc
parent4c0d0505d92e0d2eea36b3913a301968bfc6e1da (diff)
downloadgcc-c5d71f39e016e8eaf03b304c9694615919be21b2.zip
gcc-c5d71f39e016e8eaf03b304c9694615919be21b2.tar.gz
gcc-c5d71f39e016e8eaf03b304c9694615919be21b2.tar.bz2
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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog7
-rw-r--r--gcc/config/rs6000/rs6000.h5
-rw-r--r--gcc/config/rs6000/sol-c0.c5
3 files changed, 13 insertions, 4 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 9e2afe1..a3cc8c4 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,10 @@
+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>
* sh.md (cmpeqsi_ior_t, cmpeqsi_and_t): Remove.
diff --git a/gcc/config/rs6000/rs6000.h b/gcc/config/rs6000/rs6000.h
index be10201..fd85540 100644
--- a/gcc/config/rs6000/rs6000.h
+++ b/gcc/config/rs6000/rs6000.h
@@ -1423,8 +1423,9 @@ typedef struct rs6000_args
#define RS6000_ARG_SIZE(MODE, TYPE, NAMED) \
(! (NAMED) ? 0 \
: (MODE) != BLKmode \
- ? (GET_MODE_SIZE (MODE) + (UNITS_PER_WORD - 1)) / UNITS_PER_WORD \
- : (int_size_in_bytes (TYPE) + (UNITS_PER_WORD - 1)) / UNITS_PER_WORD)
+ ? (GET_MODE_SIZE (MODE) + (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
for a call to a function whose data type is FNTYPE.
diff --git a/gcc/config/rs6000/sol-c0.c b/gcc/config/rs6000/sol-c0.c
index a31876c..f7ccb7d 100644
--- a/gcc/config/rs6000/sol-c0.c
+++ b/gcc/config/rs6000/sol-c0.c
@@ -33,7 +33,7 @@ extern int atexit (void (*__func) (void));
extern void __init (void) __attribute__ ((__longcall__));
extern void __fini (void) __attribute__ ((__longcall__));
extern void _start(int argc, char *argv[], char *envp[], void *auxp,
- void (*termfunc)());
+ void (*termfunc)(void));
extern void exit(int);
extern int main (int argc, char *argv[], char *envp[], void *auxp);
@@ -84,7 +84,8 @@ deregister (void)
/* Start function. */
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 dummy = 0;