diff options
author | Kaveh R. Ghazi <ghazi@caip.rutgers.edu> | 1998-06-22 05:32:38 +0000 |
---|---|---|
committer | Kaveh Ghazi <ghazi@gcc.gnu.org> | 1998-06-22 05:32:38 +0000 |
commit | e016950d0c095ffdb36c918c7965148e344ca617 (patch) | |
tree | cad4049526361147cf85cf7b5d756642a9cf9c67 /gcc/sdbout.c | |
parent | 296433e1a9e3c644fec1f1805dd595555683d9a0 (diff) | |
download | gcc-e016950d0c095ffdb36c918c7965148e344ca617.zip gcc-e016950d0c095ffdb36c918c7965148e344ca617.tar.gz gcc-e016950d0c095ffdb36c918c7965148e344ca617.tar.bz2 |
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.
From-SVN: r20651
Diffstat (limited to 'gcc/sdbout.c')
-rw-r--r-- | gcc/sdbout.c | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/gcc/sdbout.c b/gcc/sdbout.c index 20a71f3..62559a9 100644 --- a/gcc/sdbout.c +++ b/gcc/sdbout.c @@ -52,6 +52,8 @@ AT&T C compiler. From the example below I would conclude the following: #include "flags.h" #include "insn-config.h" #include "reload.h" +#include "output.h" +#include "toplev.h" /* Mips systems use the SDB functions to dump out symbols, but do not supply usable syms.h include files. Which syms.h file to use is a @@ -171,7 +173,13 @@ static void sdbout_reg_parms PROTO((tree)); #endif #ifndef PUT_SDB_INT_VAL -#define PUT_SDB_INT_VAL(a) fprintf (asm_out_file, "\t.val\t%d%s", (a), SDB_DELIM) +#define PUT_SDB_INT_VAL(a) \ + do { \ + fputs ("\t.val\t", asm_out_file); \ + fprintf (asm_out_file, HOST_WIDE_INT_PRINT_DEC, (HOST_WIDE_INT)(a)); \ + fprintf (asm_out_file, "%s", SDB_DELIM); \ + } while (0) + #endif #ifndef PUT_SDB_VAL @@ -201,7 +209,12 @@ do { fprintf (asm_out_file, "\t.def\t"); \ #endif #ifndef PUT_SDB_SIZE -#define PUT_SDB_SIZE(a) fprintf(asm_out_file, "\t.size\t%d%s", a, SDB_DELIM) +#define PUT_SDB_SIZE(a) \ + do { \ + fputs ("\t.size\t", asm_out_file); \ + fprintf (asm_out_file, HOST_WIDE_INT_PRINT_DEC, (HOST_WIDE_INT)(a)); \ + fprintf (asm_out_file, "%s", SDB_DELIM); \ + } while(0) #endif #ifndef PUT_SDB_START_DIM |