summaryrefslogtreecommitdiff
path: root/gcc/toplev.c
diff options
context:
space:
mode:
authorghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>1998-06-22 05:32:38 +0000
committerghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>1998-06-22 05:32:38 +0000
commit77d71bdba925ab1eb35a171ab48bdc20de4d1417 (patch)
treecad4049526361147cf85cf7b5d756642a9cf9c67 /gcc/toplev.c
parentad6c9a5853f72263ee79ceb7afb39e37e8697d85 (diff)
downloadgcc-77d71bdba925ab1eb35a171ab48bdc20de4d1417.tar.gz
Warning fixes:
* reload1.c (reload_cse_regs): Cast first arg of `bzero' to char *. * sdbout.c: Include output.h and toplev.h. (PUT_SDB_INT_VAL): Use HOST_WIDE_INT_PRINT_DEV to print argument `a'. Cast `a' to HOST_WIDE_INT to force it to always be so. (PUT_SDB_SIZE): Likewise. * sdbout.h (sdbout_mark_begin_function): Add prototype. * stmt.c (check_for_full_enumeration_handling): Cast argument of `warning' to long and use %ld specifier. * toplev.c (main): Likewise for `fprintf'. * toplev.h (output_file_directive): Add prototype. * unroll.c (unroll_loop): Use HOST_WIDE_INT_PRINT_DEC specifier in call to `fprintf'. (precondition_loop_p): Likewise. * varasm.c Include sdbout.h. (assemble_static_space): Move sometimes-unused variable `rounded' into the scope in which it is used. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@20651 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/toplev.c')
-rw-r--r--gcc/toplev.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/toplev.c b/gcc/toplev.c
index dc2effdb966..fb0245a0c3a 100644
--- a/gcc/toplev.c
+++ b/gcc/toplev.c
@@ -4410,8 +4410,7 @@ main (argc, argv, envp)
{
char *lim = (char *) sbrk (0);
- fprintf (stderr, "Data size %d.\n",
- lim - (char *) &environ);
+ fprintf (stderr, "Data size %ld.\n", (long)(lim - (char *) &environ));
fflush (stderr);
#ifndef __MSDOS__