diff options
author | kenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4> | 1994-06-14 22:19:28 +0000 |
---|---|---|
committer | kenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4> | 1994-06-14 22:19:28 +0000 |
commit | 748e6d743f1926ac62e1ef6915940a30f78ddb83 (patch) | |
tree | a7bb6982dd7325e985889dd58de3ba6d06851867 /gcc/toplev.c | |
parent | ba19d940e36d1b7503352247286a7ee91e45202e (diff) | |
download | gcc-748e6d743f1926ac62e1ef6915940a30f78ddb83.tar.gz |
Cast pointer operands to bzero, bcopy, and bcmp to (char *).
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@7472 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/toplev.c')
-rw-r--r-- | gcc/toplev.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/gcc/toplev.c b/gcc/toplev.c index 0cdc52077a4..2cd794379a9 100644 --- a/gcc/toplev.c +++ b/gcc/toplev.c @@ -1798,7 +1798,7 @@ set_float_handler (handler) { float_handled = (handler != 0); if (handler) - bcopy (handler, float_handler, sizeof (float_handler)); + bcopy ((char *) handler, (char *) float_handler, sizeof (float_handler)); } /* Specify, in HANDLER, where to longjmp to when a floating arithmetic @@ -1813,8 +1813,10 @@ push_float_handler (handler, old_handler) float_handled = 1; if (was_handled) - bcopy (float_handler, old_handler, sizeof (float_handler)); - bcopy (handler, float_handler, sizeof (float_handler)); + bcopy ((char *) float_handler, (char *) old_handler, + sizeof (float_handler)); + + bcopy ((char *) handler, (char *) float_handler, sizeof (float_handler)); return was_handled; } @@ -1828,7 +1830,7 @@ pop_float_handler (handled, handler) { float_handled = handled; if (handled) - bcopy (handler, float_handler, sizeof (float_handler)); + bcopy ((char *) handler, (char *) float_handler, sizeof (float_handler)); } /* Signals actually come here. */ @@ -3877,6 +3879,9 @@ You Lose! You must define PREFERRED_DEBUGGING_TYPE! #ifndef VMS if (flag_print_mem) { +#ifdef __alpha + char *sbrk (); +#endif char *lim = (char *) sbrk (0); fprintf (stderr, "Data size %d.\n", |